gov

Real-time water data from USGS NWIS stream / river /...

Real-time water data from USGS NWIS stream / river / groundwater gauges within a bounding box around lat/lon. Returns each site's latest reading per requested variable: streamflow (00060, ft³/s), gage height (00065, ft), water temperature (00010, °C), precipitation (00045, in), and others. Each reading: site code + name, lat/lon, variable name + description + unit, value (or null if no data / sentinel), qualifier codes (e.g., 'P' = provisional, 'A' = approved), observed timestamp. Free public-domain data from waterservices.usgs.gov.

get/api/gov/usgs-water

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/gov/usgs-water
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

latnumber required

Center latitude (decimal degrees).

lonnumber required

Center longitude (decimal degrees).

radiusnumber

Half-side of bounding box, in decimal degrees. Default 0.5 (~35 mi).

variablesstring

Comma-separated USGS parameter codes (5-digit). Default "00060,00065,00010" (streamflow, gage height, water temp).

limitinteger

Max readings to return (1-100). Default 25.

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.