Retrieve hourly weather forecast data from the NOAA weather.gov API

domain: weather.gov · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. GET https://api.weather.gov/points/{latitude},{longitude} using WGS84 decimal coordinates to retrieve the metadata for that location, including the 'forecast' and 'forecastHourly' URLs specific to the grid cell
  2. Follow the 'forecastHourly' URL from the previous response to GET the hourly forecast JSON for the next 7 days, which includes temperature, wind speed, precipitation probability, and weather description per hour
  3. Set an 'Accept: application/geo+json' or 'Accept: application/ld+json' header to receive structured data; requests without an Accept header may return unexpected formats
  4. Cache the grid point metadata response (step 1) by coordinate since the gridpoint assignment rarely changes; only re-fetch the forecast URL (step 2) to get fresh weather data
  5. Parse 'properties.periods' from the forecast response, extracting 'startTime', 'temperature', 'windSpeed', 'shortForecast', and 'probabilityOfPrecipitation' for each period

Known gotchas

Related routes

Retrieve free weather data for renewables forecasting using the Open-Meteo API
api.open-meteo.com · 5 steps · unrated
Retrieve NOAA heating/cooling degree day data for load forecasting
noaa.gov · 6 steps · unrated
Retrieve raw numerical forecast grid data (not just narrative forecasts) for a location from the NWS /gridpoints endpoint
api.weather.gov · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans