Weather
NWS Forecast logo

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 / call

    Returns 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 / call

    Returns 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 / call

    Returns 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 / call

    Returns national forecast chart images with titles and sections.

  • Portal Homepage

    act_forecast_weather_gov_portal_homepageread1 credit / call

    Returns 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

All Weather sites