Overview
The National Weather Service API is the U.S. government's public web service for forecasts, weather alerts and observations. It is served from api.weather.gov, and the NWS describes the data as open and free to use for any purpose.
Getting a forecast takes two steps. You first call the points endpoint with a latitude and longitude, which tells you which forecast office and grid square covers that spot and returns the URLs to use. You then request the forecast in 12-hour periods, the hourly forecast, or the raw grid data, each covering about the next seven days on a grid of roughly 2.5 km. Other endpoints list active alerts, for example for a whole state, and recent observations from weather stations.
Responses are GeoJSON by default, with JSON-LD, DWML, CAP and ATOM available for some endpoints through the Accept header. No key is needed today: you only have to send a User-Agent header that identifies your application, and the NWS says an API key may be introduced later. Rate limits exist but are not published. An OpenAPI specification is provided for tooling.
Categories
Features
- Point forecasts in 12-hour periods for about seven days
- Hourly forecasts and raw gridded forecast data
- Active weather alerts by state or area, plus alerts from the past week
- Station observations with about seven days retained
- Lookup from latitude and longitude to forecast office and grid
- GeoJSON by default, with JSON-LD, DWML, CAP and ATOM on some endpoints
- OpenAPI specification at api.weather.gov/openapi.json
- Cache-friendly responses that expire with the data's life cycle
Privacy
See the official privacy policy. No account or key is required; the NWS asks that requests include a User-Agent header identifying the application, and suggests adding a contact website or email.
Pros & Cons
Pros
- Free, with data open for any use
- No API key or sign-up, only an identifying User-Agent header
- Official source for U.S. forecasts and alerts
- Standard formats that work with mapping and alerting tools
Cons
- Run by the U.S. weather service and built around its forecast offices, so it is not a global weather API
- Rate limits are not published
- A forecast needs two requests, points first and then the forecast
- Observations can lag by up to about 20 minutes, and radar endpoints give status data rather than imagery
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
Weather APIs · OpenWeatherMapCurrent weather, forecasts, and historical data via API.
Freemium API -
Weather APIs · WeatherAPI.com
Provides weather forecast and history data via API.
Freemium API -
Weather APIs · Tomorrow.io
Provides weather forecast data via API.
Freemium API -
Weather APIs · Visual Crossing
Provides historical and forecast weather data via API.
Freemium No Signup Web API