retrieve usgs daily streamflow/gage summary values and discover monitoring site metadata

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

Steps

  1. For site discovery, call GET https://waterservices.usgs.gov/nwis/site/ with one major filter (sites, stateCd, huc, bBox, or countyCd) plus optional siteType/siteStatus/parameterCd filters
  2. Set seriesCatalogOutput=true on the site service to get period-of-record date ranges per site/parameter/statistic (cannot be combined with siteOutput=expanded)
  3. For daily data, call GET https://waterservices.usgs.gov/nwis/dv/ with the same kind of major filter plus parameterCd (e.g. 00060=discharge cfs) and statCd (e.g. 00003=mean)
  4. Set date range via startDT/endDT (ISO-8601 dates) or period (ISO-8601 duration, e.g. P7D) on the dv service — omit both to get only the latest value
  5. Set format=json|waterml,1.1|waterml,2.0|rdb on either service (default is rdb for site, waterml for dv)
  6. Parse the dv service's timeSeries name attribute pattern agencyCd:siteNo:parameterCd:statisticCd to identify what each returned value represents

Known gotchas

Related routes

Retrieve recent instantaneous streamflow/gauge-height readings for USGS monitoring sites using the Water Services Instantaneous Values API
waterservices.usgs.gov · 5 steps · unrated
Look up USGS monitoring site metadata (location, drainage area, available parameters) via the legacy NWIS Site Service
waterservices.usgs.gov · 5 steps · unrated
Pull historical daily mean streamflow/water-level values from the legacy USGS NWIS Daily Values service
waterservices.usgs.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