NWS Forecast API
forecast.weather.gov
National Weather Service - location forecasts, hourly views, text forecasts, and maps.
- Actions
- 5
- Category
- Weather
- Login
- Not required
- Output
- JSON
Call the NWS Forecast API
Submit a task, then poll the job until it settles. This example runs act_forecast_weather_gov_hourly_forecast_graphical.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "act_forecast_weather_gov_hourly_forecast_graphical",
"params": {
"lat": "40.713",
"lon": "-74.0072"
}
}'5 actions on forecast.weather.gov
Read
Hourly Forecast
act_forecast_weather_gov_hourly_forecast_graphicalread1 credit / callReturns an hourly forecast by coordinates: temperature, wind, humidity, and precipitation.
- lat
- string · required
- lon
- string · required
Location Forecast Details
act_forecast_weather_gov_location_forecast_detailread1 credit / callReturns current conditions and a seven-day forecast by coordinates.
- lat
- string · required
- lon
- string · required
Location Text Forecast
act_forecast_weather_gov_location_forecast_textread1 credit / callReturns a seven-day text forecast by coordinates with per-period descriptions.
- lat
- string · required
- lon
- string · required
National Forecast Maps
act_forecast_weather_gov_national_forecast_mapsread1 credit / callReturns national forecast chart images with titles and sections.
Portal Homepage
act_forecast_weather_gov_portal_homepageread1 credit / callReturns the weather portal homepage with navigation sections and agency links.
NWS Forecast API questions
- Is there an API for NWS Forecast?
- NWS Forecast does not offer a public data API for this, but Anakin Wire provides 5 maintained endpoints for forecast.weather.gov. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape NWS Forecast data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when forecast.weather.gov changes its markup, Anakin updates the action.
- Do I need a NWS Forecast account?
- No. Every NWS Forecast action listed here runs anonymously — no account and no credentials required.
- What does the NWS Forecast API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Weather APIs
7Timer
7Timer - numerical weather, astronomy, cloud-cover, and meteogram forecasts worldwide.
Bureau of Meteorology (Australia)
Australia's weather service - forecasts, observations, radar, and severe weather warnings.
EU PVGIS
EU PVGIS - solar PV output and hourly irradiance and wind time-series.
IQAir
IQAir - global air quality with location search, AQI dashboards, forecasts, and rankings.
Open-Meteo
Open-Meteo - weather, historical, air quality, geocoding, and marine data.
OpenAQ
OpenAQ - open air quality data with monitoring stations and pollutant readings.