Migrate a USGS water-data query from legacy WaterServices to the modernized OGC API (Features) collections

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

  1. Review the official migration guide at api.waterdata.usgs.gov/docs/ogcapi/migration/ to map legacy IV/DV/site parameters to OGC API equivalents
  2. Query the 'continuous' collection (api.waterdata.usgs.gov/ogcapi/v0/collections/continuous) for time-series values that previously came from /nwis/iv
  3. Use OGC API - Features query patterns (bbox, datetime, filter) rather than legacy comma-separated site/parameter arguments
  4. Update code using the R dataRetrieval readNWIS() functions or the Python dataretrieval nwis module to their modernized equivalents, per USGS's stated requirement
  5. Validate output parity against the legacy service for a known site/date range before cutting production usage over

Known gotchas

Related routes

Migrate discrete groundwater-level queries from USGS legacy /gwlevels to the new /field-measurements API
api.waterdata.usgs.gov · 5 steps · unrated
Recognize that the legacy USGS NWIS /gwlevels service is fully decommissioned and migrate to the field-measurements OGC API
waterservices.usgs.gov · 5 steps · unrated
Retrieve historical groundwater-level field measurements for a USGS monitoring location using the modernized api.waterdata.usgs.gov OGC API (the legacy waterservices.usgs.gov /gwlevels endpoint is decommissioned)
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