APIs / National Weather Service / Get the 7-day NWS forecast for a US point
National Weather Service: Get the 7-day NWS forecast for a US point
The National Weather Service 7-day forecast for a US latitude and longitude: day and night periods with temperature, wind, rain chance and text.
GET /v1/weather-gov/forecast
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
lat | number | Required | Any Latitude, such as 38.8894. US and its territories only. |
lon | number | Required | Any Longitude, such as -77.0352. |
units | string | Optional | us, si us (Fahrenheit, mph) or si (Celsius, km/h). Default us. |
Example request
National Weather Service
GET/v1/weather-gov/forecast?lat=38.8894&lon=-77.0352
{
"success": true,
"data": {
"location": {
"latitude": 38.8894,
"longitude": -77.0352,
"city": "Washington",
"state": "DC",
"time_zone": "America/New_York",
"grid_id": "LWX",
"grid_x": 97,
"grid_y": 71,
"forecast_zone": "DCZ001",
"county_zone": "DCC001",
"radar_station": "KLWX"
},
"units": "us",
"generated_at": "2026-12-06T09:07:04+00:00",
"updated_at": "2026-12-06T08:52:55+00:00",
"elevation_m": 6.096,
"count": 14,
"periods": [
{
"number": 1,
"name": "Overnight",
"start_time": "2026-12-06T04:00:00-05:00",
"end_time": "2026-12-06T06:00:00-05:00",
"is_daytime": false,
"temperature": 49,
"temperature_unit": "F",
"precipitation_probability": 1,
"wind_speed": "5 mph",
"wind_direction": "NE",
"short_forecast": "Cloudy",
"detailed_forecast": "Cloudy, with a low around 49. Northeast wind around 5 mph.",
"icon_url": "https://api.weather.gov/icons/land/night/ovc?size=medium"
},
{
"number": 2,
"name": "Sunday",
"start_time": "2026-12-06T06:00:00-05:00",
"end_time": "2026-12-06T18:00:00-05:00",
"is_daytime": true,
"temperature": 59,
"temperature_unit": "F",
"precipitation_probability": 16,
"wind_speed": "5 to 8 mph",
"wind_direction": "E",
"short_forecast": "Mostly Cloudy then Patchy Drizzle",
"detailed_forecast": "Patchy drizzle after 2pm. Mostly cloudy, with a high near 59. East wind 5 to 8 mph. Chance of precipitation is 20%.",
"icon_url": "https://api.weather.gov/icons/land/day/bkn/rain,20?size=medium"
},
{
"number": 3,
"name": "Sunday Night",
"start_time": "2026-12-06T18:00:00-05:00",
"end_time": "2026-12-07T06:00:00-05:00",
"is_daytime": false,
"temperature": 56,
"temperature_unit": "F",
"precipitation_probability": 100,
"wind_speed": "9 to 13 mph",
"wind_direction": "S",
"short_forecast": "Rain",
"detailed_forecast": "Rain before 10pm, then rain and patchy fog between 10pm and 5am. Cloudy. Low around 56, with temperatures rising to around 62 overnight. South wind 9 to 13 mph, with gusts as high as 24 mph. Chance of precipitation is 100%. New rainfall amo…",
"icon_url": "https://api.weather.gov/icons/land/night/rain,100/rain,90?size=medium"
}
]
},
"meta": {
"request_id": "req_644dd5157dc847918096f61cc16dac8f",
"credits_charged": 1,
"credits_remaining": 482
}
}200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
data has these 6 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
location | object |
units | string |
generated_at | string |
updated_at | string |
elevation_m | number |
periods | object[] |