Retrieve recent instantaneous streamflow/gauge-height readings for USGS monitoring sites using the Water Services Instantaneous Values API

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

Steps

  1. Call GET https://waterservices.usgs.gov/nwis/iv/ with exactly one major filter (sites, stateCd, huc, bBox, or counties) plus parameterCd (e.g. 00060 for discharge, 00065 for gauge height).
  2. Choose a response format via the format parameter: waterml (XML), json, or the legacy rdb (tab-delimited).
  3. Request a startDT/endDT or period (e.g. P7D) to bound the query, noting data is available from October 1, 2007 onward through this service.
  4. Parse per-site time series, handling the roughly 15-60 minute update cadence from streamgage sensors.
  5. Note the planned decommissioning of waterservices.usgs.gov in early 2027 and plan migration to the newer api.waterdata.usgs.gov endpoints.

Known gotchas

Related routes

retrieve usgs daily streamflow/gage summary values and discover monitoring site metadata
waterservices.usgs.gov · 6 steps · unrated
Pull real-time streamflow/gage data from the legacy USGS NWIS Instantaneous Values service while planning for its 2027 decommission
waterservices.usgs.gov · 5 steps · unrated
Retrieve continuous (sensor) groundwater levels from the USGS Water Data API
api.waterdata.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