Pull daily-summary groundwater levels from the USGS Water Data API
domain: api.waterdata.usgs.gov · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Daily-summary groundwater levels replace the old /nwis/dv endpoint and are served from GET https://api.waterdata.usgs.gov/ogcapi/v0/collections/daily/items.
Filter with monitoring_location_id and parameter_code; use the bbox argument if you want daily values across a spatial region - this is the one migrated endpoint that supports bbox directly.
For the single most recent daily value per series, use /ogcapi/v0/collections/latest-daily/items.
Join to /time-series-metadata via time_series_id (called id there) to recover the parameter name/description/statistic type dropped from the flattened /daily rows.
Inspect the collection's schema or OpenAPI page for available output formats before scripting a parser.
Known gotchas
Only /daily supports the bbox spatial filter among the migrated groundwater endpoints - /continuous and /field-measurements require resolving monitoring_location_ids first via /monitoring-locations.
statistic_id in /daily and /time-series-metadata replaces the old numeric options->optionCode; cross-reference /statistic-codes to get the human-readable statistic name (mean, min, max, etc.).
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?