# USGS river network: gauges upstream or downstream

Uses the USGS Network Linked Data Index to find USGS monitoring sites upstream or downstream of a river gauge along the stream network within a distance.

- No API key needed to call
- Source: [USGS Network Linked Data Index \(NLDI\)](https://labs.waterdata.usgs.gov/about-nldi/)
- Licence and terms: [US Government work \(17 U.S.C. 105\)](https://www.usgs.gov/information-policies-and-instructions/copyrights-and-credits)
- Coverage: United States
- Answers are shared and cached for 21600 seconds.

## Questions you can ask

- Which USGS gauges are upstream of the Yahara River at Windsor? (operation `nldi_sites_along_river`)

## Operations

### USGS sites upstream or downstream of a gauge

Answers: which other USGS stream monitoring sites lie upstream \(tributaries or main stem\) or downstream of this gauge within a distance along the river network, with site id, name and position?

- `site`: required, string, USGS site id such as USGS-05428500 \(Yahara River at Windsor, Wisconsin\).
- `mode`: required, string, UT \| UM \| DM \| DD, default UT, UT upstream with tributaries, UM upstream main stem only, DM downstream main stem, DD downstream with diversions.
- `distance_km`: optional, integer, default 50, Distance along the river in kilometres, 1 to 200.

Example: Which USGS gauges are upstream of the Yahara River at Windsor?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"nldi","operation":"nldi_sites_along_river","params":{"site":"USGS-05428500","mode":"UT","distance_km":50}}}
```

Over HTTP:

```
curl '/v1/connectors/nldi/nldi_sites_along_river?site=USGS-05428500&mode=UT&distance_km=50'
```

## Source notice

Source: US Geological Survey. USGS: "USGS-authored or produced data and information are considered to be in the U.S. Public Domain." \(usgs.gov copyrights and credits\). Provisional data are subject to revision. Not endorsed by the USGS.

## Missing something?

Tell us what data, endpoint or feature you wish we had. It is free and needs no signup: call the MCP tool request_capability, or POST a short description to https://agentnative.dennery.ai/v1/capabilities/request.
