> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# USGS Water Data

> US stream gauge readings (discharge, gage height, water temperature and more): latest and historical instantaneous values, daily statistics and monitoring-location metadata from the USGS Water Data OGC APIs.

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/usgswater.webp?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=afda5e3d87b4a3baf7cc86a7cb104502)

[Web Catalog · Environment](https://docs.webrouter.net/data-apis.md?category=environment)

Key optional

Endpoints

5

Auth

Key in header

[Vendor docs](https://api.waterdata.usgs.gov/docs/)

## Setup

| Variable | | What it is |
| - | - | - |
| `USGS_API_KEY` | some calls | Optional free api.data.gov key from api.waterdata.usgs.gov/signup/, for higher rate limits than the anonymous allowance. Sent in the X-Api-Key header. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Keyless works, at a lower rate limit; a free key raises it.
* Answers are GeoJSON FeatureCollections: values sit in features\[].properties; follow the links entry with rel=next to page. Default page size is only 10 - set limit.
* Always filter by monitoring\_location\_id, bbox or state; USGS asks automated clients not to sweep the items endpoints unfiltered.
* Values are strings in the unit given by unit\_of\_measure; approval\_status tells provisional from approved data.

## Endpoints

GET

Get the latest gauge readings

Most recent instantaneous value per time series: current flow, gage height and so on.

[Open](#usgswater-latest)

GET

Get instantaneous readings over time

Sensor readings (typically every 15 minutes) for a period.

[Open](#usgswater-continuous)

GET

Get daily values

Daily statistics (mean, min, max) per time series.

[Open](#usgswater-daily)

GET

Search monitoring locations

Gauges and wells with their name, coordinates, state, county, drainage area and site type.

[Open](#usgswater-locations-search)

GET

List parameter codes

The 5-digit parameter codes, what each measures and its unit.

[Open](#usgswater-parameter-codes)

### Get the latest gauge readings

GET

`/collections/latest-continuous/items`

`usgswater.latest`

Most recent instantaneous value per time series: current flow, gage height and so on.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`monitoring_location_id`</td><td>string</td><td>query</td><td>Agency code and site number, e.g. USGS-01646500; comma-separated for several. Example `USGS-01646500`</td></tr>
    <tr><td>`parameter_code`</td><td>string</td><td>query</td><td>5-digit parameter code(s), comma-separated, e.g. 00060 for discharge; look codes up with usgswater.parameter\_codes. Example `00060`</td></tr>

    <tr>
      <td>
        `time`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        RFC 3339 date-time, interval (start/end, open with ..) or ISO 8601 duration such as P7D or PT36H.
      </td>
    </tr>

    <tr>
      <td>
        `bbox`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        minLon,minLat,maxLon,maxLat.
      </td>
    </tr>

    <tr>
      <td>
        `state_name`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        State name, e.g. Colorado.
      </td>
    </tr>

    <tr>
      <td>
        `county_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        County code.
      </td>
    </tr>

    <tr>
      <td>
        `site_type_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Site type code, e.g. ST for stream.
      </td>
    </tr>

    <tr>
      <td>
        `properties`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated properties to return.
      </td>
    </tr>

    <tr>
      <td>
        `skipGeometry`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Drop each feature's geometry, default false.
      </td>
    </tr>

    <tr>
      <td>
        `sortby`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated properties, +asc or -desc, e.g. -time.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, default 10, max 50000.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items to skip, default 0.
      </td>
    </tr>

    <tr><td>`f`</td><td>string</td><td>query</td><td>Format, default json (GeoJSON). One of `json`, `jsonld`, `csv`, `html`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api.waterdata.usgs.gov/docs/ogcapi/)

```python Python theme={null}
router.call_data_api("usgswater.latest", {'monitoring_location_id': 'USGS-01646500', 'parameter_code': '00060'})
```

```text MCP theme={null}
call_data_api(endpoint="usgswater.latest", params={"monitoring_location_id": "USGS-01646500", "parameter_code": "00060"})
```

### Get instantaneous readings over time

GET

`/collections/continuous/items`

`usgswater.continuous`

Sensor readings (typically every 15 minutes) for a period.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`monitoring_location_id`</td><td>string</td><td>query</td><td>Agency code and site number, e.g. USGS-01646500; comma-separated for several. Example `USGS-01646500`</td></tr>
    <tr><td>`parameter_code`</td><td>string</td><td>query</td><td>5-digit parameter code(s), comma-separated, e.g. 00060 for discharge; look codes up with usgswater.parameter\_codes. Example `00060`</td></tr>

    <tr>
      <td>
        `time`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        RFC 3339 date-time, interval (start/end, open with ..) or ISO 8601 duration such as P7D or PT36H.
      </td>
    </tr>

    <tr>
      <td>
        `bbox`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        minLon,minLat,maxLon,maxLat.
      </td>
    </tr>

    <tr>
      <td>
        `state_name`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        State name, e.g. Colorado.
      </td>
    </tr>

    <tr>
      <td>
        `county_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        County code.
      </td>
    </tr>

    <tr>
      <td>
        `site_type_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Site type code, e.g. ST for stream.
      </td>
    </tr>

    <tr>
      <td>
        `properties`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated properties to return.
      </td>
    </tr>

    <tr>
      <td>
        `skipGeometry`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Drop each feature's geometry, default false.
      </td>
    </tr>

    <tr>
      <td>
        `sortby`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated properties, +asc or -desc, e.g. -time.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, default 10, max 50000.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items to skip, default 0.
      </td>
    </tr>

    <tr><td>`f`</td><td>string</td><td>query</td><td>Format, default json (GeoJSON). One of `json`, `jsonld`, `csv`, `html`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api.waterdata.usgs.gov/docs/ogcapi/)

```python Python theme={null}
router.call_data_api("usgswater.continuous", {'monitoring_location_id': 'USGS-01646500', 'parameter_code': '00060'})
```

```text MCP theme={null}
call_data_api(endpoint="usgswater.continuous", params={"monitoring_location_id": "USGS-01646500", "parameter_code": "00060"})
```

> [!NOTE]
>
> * Large: use a short time window and a high limit, then page.

### Get daily values

GET

`/collections/daily/items`

`usgswater.daily`

Daily statistics (mean, min, max) per time series.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`monitoring_location_id`</td><td>string</td><td>query</td><td>Agency code and site number, e.g. USGS-01646500; comma-separated for several. Example `USGS-01646500`</td></tr>
    <tr><td>`parameter_code`</td><td>string</td><td>query</td><td>5-digit parameter code(s), comma-separated, e.g. 00060 for discharge; look codes up with usgswater.parameter\_codes. Example `00060`</td></tr>
    <tr><td>`statistic_id`</td><td>string</td><td>query</td><td>Statistic code(s): 00001 max, 00002 min, 00003 mean. Example `00003`</td></tr>

    <tr>
      <td>
        `time`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        RFC 3339 date-time, interval (start/end, open with ..) or ISO 8601 duration such as P7D or PT36H.
      </td>
    </tr>

    <tr>
      <td>
        `bbox`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        minLon,minLat,maxLon,maxLat.
      </td>
    </tr>

    <tr>
      <td>
        `state_name`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        State name, e.g. Colorado.
      </td>
    </tr>

    <tr>
      <td>
        `county_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        County code.
      </td>
    </tr>

    <tr>
      <td>
        `site_type_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Site type code, e.g. ST for stream.
      </td>
    </tr>

    <tr>
      <td>
        `properties`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated properties to return.
      </td>
    </tr>

    <tr>
      <td>
        `skipGeometry`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Drop each feature's geometry, default false.
      </td>
    </tr>

    <tr>
      <td>
        `sortby`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated properties, +asc or -desc, e.g. -time.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, default 10, max 50000.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items to skip, default 0.
      </td>
    </tr>

    <tr><td>`f`</td><td>string</td><td>query</td><td>Format, default json (GeoJSON). One of `json`, `jsonld`, `csv`, `html`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api.waterdata.usgs.gov/docs/ogcapi/)

```python Python theme={null}
router.call_data_api("usgswater.daily", {'monitoring_location_id': 'USGS-01646500', 'parameter_code': '00060', 'statistic_id': '00003'})
```

```text MCP theme={null}
call_data_api(endpoint="usgswater.daily", params={"monitoring_location_id": "USGS-01646500", "parameter_code": "00060", "statistic_id": "00003"})
```

### Search monitoring locations

GET

`/collections/monitoring-locations/items`

`usgswater.locations.search`

Gauges and wells with their name, coordinates, state, county, drainage area and site type.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Monitoring location id(s), e.g. USGS-01646500.
      </td>
    </tr>

    <tr><td>`q`</td><td>string</td><td>query</td><td>Full-text search over name, number, state, county and site type; case-insensitive prefix match, at least 2 characters. Example `potomac`</td></tr>

    <tr>
      <td>
        `state_name`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        State name, e.g. Colorado.
      </td>
    </tr>

    <tr>
      <td>
        `county_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        County code.
      </td>
    </tr>

    <tr>
      <td>
        `site_type_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Site type code, e.g. ST for stream.
      </td>
    </tr>

    <tr>
      <td>
        `bbox`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        minLon,minLat,maxLon,maxLat.
      </td>
    </tr>

    <tr>
      <td>
        `properties`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated properties to return.
      </td>
    </tr>

    <tr>
      <td>
        `skipGeometry`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Drop each feature's geometry, default false.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, default 10, max 50000.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items to skip, default 0.
      </td>
    </tr>

    <tr><td>`f`</td><td>string</td><td>query</td><td>Format, default json (GeoJSON). One of `json`, `jsonld`, `csv`, `html`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api.waterdata.usgs.gov/docs/ogcapi/)

```python Python theme={null}
router.call_data_api("usgswater.locations.search", {'q': 'potomac'})
```

```text MCP theme={null}
call_data_api(endpoint="usgswater.locations.search", params={"q": "potomac"})
```

### List parameter codes

GET

`/collections/parameter-codes/items`

`usgswater.parameter_codes`

The 5-digit parameter codes, what each measures and its unit.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, default 10, max 50000.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items to skip, default 0.
      </td>
    </tr>

    <tr><td>`f`</td><td>string</td><td>query</td><td>Format, default json (GeoJSON). One of `json`, `jsonld`, `csv`, `html`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api.waterdata.usgs.gov/docs/ogcapi/) · Same job: [AlienVault OTX (LevelBlue Open Threat Exchange)](https://docs.webrouter.net/data-apis/alienvault-otx.md#alienvault-otx-indicator-types-list), [CIRCL hashlookup](https://docs.webrouter.net/data-apis/circl-hashlookup.md#circl-hashlookup-info), [ClinicalTrials.gov](https://docs.webrouter.net/data-apis/clinicaltrials-gov.md#clinicaltrials-gov-studies-enums), [crates.io](https://docs.webrouter.net/data-apis/crates-io.md#crates-io-categories-list), [Event Registry (NewsAPI.ai)](https://docs.webrouter.net/data-apis/event-registry.md#event-registry-suggest-concepts), [Have I Been Pwned](https://docs.webrouter.net/data-apis/haveibeenpwned.md#haveibeenpwned-data-classes-list)

```python Python theme={null}
router.call_data_api("usgswater.parameter_codes")
```

```text MCP theme={null}
call_data_api(endpoint="usgswater.parameter_codes")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.