Request historical weather/climate data via the NOAA Climate Data Online (CDO) API v2

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

Steps

  1. Request a free API token from the CDO token request page and include it in the token HTTP header on all requests
  2. GET https://www.ncei.noaa.gov/cdo-web/api/v2/datasets to identify the appropriate dataset id (e.g. GHCND for daily summaries)
  3. GET /v2/stations or /v2/locations to identify the target station or location ID relevant to the query
  4. GET /v2/data with parameters datasetid, stationid (or locationid), startdate, enddate, and optionally datatypeid to request the actual observations
  5. Page through large result sets using the limit and offset parameters (JSON responses include metadata.resultset for total count)
  6. Throttle requests to stay within the token's rate limit

Known gotchas

Related routes

Retrieve heating degree days from NOAA's Climate Data Online (CDO) API
www.ncdc.noaa.gov · 5 steps · unrated
Pull daily temperature data from NOAA's Climate Data Online (CDO) API v2 to compute heating/cooling degree days for utility weather-normalization
ncdc.noaa.gov · 5 steps · unrated
pull a multi-year historical hourly weather archive for a site using the Open-Meteo Historical Weather API to compute heating/cooling degree days
open-meteo.com · 6 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