USGS Real-Time River Streamflow & Gage Height
Retrieve real-time instantaneous river discharge (ft3/s) and gage height observations from USGS National Water Information System stations.
curl -sG "https://api.agentapigate.ai/v1/geo/usgs/water_streamflow" \ --data-urlencode "sites=01646500" \ --data-urlencode "parameter_cd=00060,00065" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# USGS Real-Time River Streamflow & Gage Height (`geo.usgs.water_streamflow`) **sites**: 01646500 · **count**: 2 ## series - [1] site_code: 01646500, sourceInfo: siteName: POTOMAC RIVER NEAR WASH, DC LITTLE FALLS PUMP STA, geoLocation: latitude: 38.94977778, longitude: -77.12763889, srs: EPSG:4326, variable: variableCode: 00060, variableName: Streamflow, ft3/s, unit: ft3/s, latest_value: 7820 - [2] site_code: 01646500, sourceInfo: siteName: POTOMAC RIVER NEAR WASH, DC LITTLE FALLS PUMP STA, geoLocation: latitude: 38.94977778, longitude: -77.12763889, srs: EPSG:4326, variable: variableCode: 00065, variableName: Gage height, ft, unit: ft, latest_value: 3.73
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:geo.usgs.water_streamflow · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| sites | string | optional | 01646500 | Comma-separated 8-to-15 digit USGS monitoring station IDs (e.g. "01646500" Potomac River at Little Falls) |
| parameter_cd | string | optional | 00060,00065 | USGS parameter codes (default "00060,00065" for discharge ft3/s and gage height ft) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0020 / call | $0/mo · Balance never expires |
| Remote MCP Tool | geo_usgs_water_streamflow | OAuth 2.1 Hub & /mcp/intel |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 5318 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 1254t → 178t (-86%) | Partner credit: eligible |
| Data Attribution | Source: U.S. Geological Survey National Water Information System Instantaneous Values API (waterservices.usgs.gov — US Public Domain) | |
More geo.usgs Sibling Endpoints
Retrieve real-time global seismic events from official USGS Earthquake Hazards GeoJSON feed with magnitude, depth_km, coordinates, tsunami flag, and PAGER alert level.
Count global or regional earthquakes matching magnitude, depth, and time-window thresholds via the USGS FDSN seismic catalog.
Frequently Asked Questions
How do I call USGS Real-Time River Streamflow & Gage Height (geo.usgs.water_streamflow) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/geo/usgs/water_streamflow with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool geo_usgs_water_streamflow on https://mcp.agentapigate.ai/mcp.
What does geo.usgs.water_streamflow cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.002 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on geo.usgs.water_streamflow?
Passing ?format=md transforms the response into normalized Markdown (~178 tokens vs ~1254 raw tokens, saving 86% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only intel endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["intel"], optional allowed_endpoints: ["geo.usgs.water_streamflow"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.