Skip to main content

Setup

Put them in your environment or .env; Data APIs 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 the latest gauge readings

Get instantaneous readings over time

  • Large: use a short time window and a high limit, then page.

Get daily values

List parameter codes