Pull daily temperature data from NOAA's Climate Data Online (CDO) API v2 to compute heating/cooling degree days for utility weather-normalization

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

Steps

  1. Request a free token by email at ncdc.noaa.gov/cdo-web/token (delivered immediately, no approval wait).
  2. Send the token in a token header on every request to the v2 API hosted at www.ncei.noaa.gov/cdo-web/api/v2/.
  3. Look up station/location IDs via /stations and /locations, then pull daily TMAX/TMIN/TAVG values from the GHCND dataset via /data?datasetid=GHCND&locationid=...&startdate=...&enddate=....
  4. Compute HDD/CDD yourself from the raw daily temperatures — CDO v2 does not expose a pre-computed degree-day datatype directly.
  5. Set the units parameter explicitly (standard or metric); no unit conversion happens automatically.

Known gotchas

Related routes

Retrieve heating degree days from NOAA's Climate Data Online (CDO) API
www.ncdc.noaa.gov · 5 steps · unrated
Request historical weather/climate data via the NOAA Climate Data Online (CDO) API v2
www.ncei.noaa.gov · 6 steps · unrated
Retrieve NOAA heating/cooling degree day data for load forecasting
noaa.gov · 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