Skip to content

USGS Water Services API

7 endpointsGovernment & Open DataUSsocial:read5 real examples

Returns USGS water monitoring sites and their instant values, daily means and long-term daily statistics.

View as Markdown
GET/usgswater/instantValuesThe measurements of a site over the last hours, every 5 to 60 minutes.
GET/usgswater/dailyValuesThe daily mean of a site between two dates.
GET/usgswater/sitesThe active USGS monitoring sites of a US state: rivers, lakes, wells and others, with their position.
GET/usgswater/sitesNearThe active USGS monitoring sites around a point, nearest first, with their distance: rivers, lakes, wells and weather stations.
GET/usgswater/siteOne USGS monitoring site by its number: name, type, agency and position.
GET/usgswater/dailyStatsLong-term statistics of one site for each day of the year: the min, mean, median and max of all past years.
GET/usgswater/peakFlowsThe highest streamflow of each year at a river site since its records began, newest first: flood history.

instantValues

GET/v1/usgswater/instantValues

The measurements of a site over the last hours, every 5 to 60 minutes.

scope social:read1 unitcached 5 min

Parameters

site
string
required
USGS site number, such as 01646500 (Potomac River near Washington, DC).
e.g. 01646500
parameter
string
USGS parameter: 00060 discharge (ft3/s), 00065 gage height (ft) or 00010 water temperature (C).
000600006500010
default 00060
hours
integer
Hours back from now, from 1 to 120.
default 2
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

9 fields
itemsReading[]
measuredAtstring
qualifiersstring[]
valuenumber (double)
parameterstring
sitestring
siteNamestring
unitstring
variablestring
curl "https://api.hoshime.com/v1/usgswater/instantValues?site=01646500" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "items": [
      {
        "measuredAt": "2026-11-06T11:05:00-05:00",
        "qualifiers": [
          "P"
        ],
        "value": 2750
      },
      {
        "measuredAt": "2026-11-06T11:10:00-05:00",
        "qualifiers": [
          "P"
        ],
        "value": 2750
      }
    ],
    "parameter": "00060",
    "site": "01646500",
    "siteName": "POTOMAC RIVER NEAR WASH, DC LITTLE FALLS PUMP STA",
    "unit": "ft3/s",
    "variable": "Streamflow, ft³/s"
  },
  "meta": {
    "cached": false,
    "endpoint": "instantValues",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "usgswater",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

dailyValues

GET/v1/usgswater/dailyValues

The daily mean of a site between two dates.

scope social:read1 unitcached 6 h

Parameters

site
string
required
USGS site number, such as 01646500 (Potomac River near Washington, DC).
e.g. 01646500
parameter
string
USGS parameter: 00060 discharge (ft3/s), 00065 gage height (ft) or 00010 water temperature (C).
000600006500010
default 00060
startDate
string
required
First day, YYYY-MM-DD.
e.g. 2023-01-01
endDate
string
required
Last day, YYYY-MM-DD.
e.g. 2023-01-07
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

9 fields
itemsReading[]
measuredAtstring
qualifiersstring[]
valuenumber (double)
parameterstring
sitestring
siteNamestring
unitstring
variablestring
curl "https://api.hoshime.com/v1/usgswater/dailyValues?site=01646500&startDate=2023-01-01&endDate=2023-01-07" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "items": [
      {
        "measuredAt": "2023-01-01T00:00:00-05:00",
        "qualifiers": [
          "A"
        ],
        "value": 9710
      },
      {
        "measuredAt": "2023-01-02T00:00:00-05:00",
        "qualifiers": [
          "A"
        ],
        "value": 10000
      }
    ],
    "parameter": "00060",
    "site": "01646500",
    "siteName": "POTOMAC RIVER NEAR WASH, DC LITTLE FALLS PUMP STA",
    "unit": "ft3/s",
    "variable": "Streamflow, ft³/s"
  },
  "meta": {
    "cached": false,
    "endpoint": "dailyValues",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "usgswater",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

sites

GET/v1/usgswater/sites

The active USGS monitoring sites of a US state: rivers, lakes, wells and others, with their position.

scope social:read1 unitcached 24 hpaginated

Parameters

state
string
required
Two-letter state code, such as DC or CA.
e.g. DC
limit
integer
Items per page, 1 to 500.
default 50e.g. 5
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

6 fields
agencystring
categorystring
idstring
latitudenumber (double)
longitudenumber (double)
namestring
curl "https://api.hoshime.com/v1/usgswater/sites?state=DC&limit=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "agency": "USGS",
      "category": "ES",
      "id": "01647600",
      "latitude": 38.9033611,
      "longitude": -77.0676667,
      "name": "POTOMAC RIVER AT WISCONSIN AVE, WASHINGTON, DC"
    },
    {
      "agency": "USGS",
      "category": "ST",
      "id": "01648010",
      "latitude": 38.960167,
      "longitude": -77.042056,
      "name": "Rock Creek at Joyce Rd Washington, DC"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "sites",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "usgswater",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

sitesNear

GET/v1/usgswater/sitesNear

The active USGS monitoring sites around a point, nearest first, with their distance: rivers, lakes, wells and weather stations.

scope social:read1 unitcached 24 hpaginated

Parameters

lat
string
required
Latitude of the point, -90 to 90.
e.g. 38.8894
lon
string
required
Longitude of the point, -180 to 180.
e.g. -77.0352
radiusKm
integer
Search radius in kilometres, 1 to 100. Sites in the square around the point are listed.
default 25
limit
integer
Items per page, 1 to 100.
default 20e.g. 5
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

7 fields
agencystring
categorystring
distanceKmnumber (double)
idstring
latitudenumber (double)
longitudenumber (double)
namestring
curl "https://api.hoshime.com/v1/usgswater/sitesNear?lat=38.8894&lon=-77.0352&limit=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "agency": "…",
      "category": "…",
      "distanceKm": 0,
      "id": "abc123",
      "latitude": 0,
      "longitude": 0,
      "name": "…"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "sitesNear",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "usgswater",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

site

GET/v1/usgswater/site

One USGS monitoring site by its number: name, type, agency and position.

scope social:read1 unitcached 24 h

Parameters

site
string
required
USGS site number, such as 01646500 (Potomac River near Washington, DC).
e.g. 01646500
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

6 fields
agencystring
categorystring
idstring
latitudenumber (double)
longitudenumber (double)
namestring
curl "https://api.hoshime.com/v1/usgswater/site?site=01646500" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "agency": "USGS",
    "category": "ST",
    "id": "01646500",
    "latitude": 38.94977778,
    "longitude": -77.12763889,
    "name": "POTOMAC RIVER NEAR WASH, DC LITTLE FALLS PUMP STA"
  },
  "meta": {
    "cached": false,
    "endpoint": "site",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "usgswater",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

dailyStats

GET/v1/usgswater/dailyStats

Long-term statistics of one site for each day of the year: the min, mean, median and max of all past years.

scope social:read1 unitcached 24 hpaginated

Parameters

site
string
required
USGS site number, such as 01646500 (Potomac River near Washington, DC).
e.g. 01646500
parameter
string
USGS parameter: 00060 discharge (ft3/s), 00065 gage height (ft) or 00010 water temperature (C).
000600006500010
default 00060e.g. 00060
limit
integer
Items per page, 1 to 366.
default 366e.g. 7
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

11 fields
beginYearinteger (int64)
countinteger (int64)
dayinteger (int64)
endYearinteger (int64)
maxnumber (double)
maxYearinteger (int64)
meannumber (double)
mediannumber (double)
minnumber (double)
minYearinteger (int64)
monthinteger (int64)
curl "https://api.hoshime.com/v1/usgswater/dailyStats?site=01646500&parameter=00060&limit=7" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "beginYear": 1931,
      "count": 96,
      "day": 1,
      "endYear": 2026,
      "max": 118000,
      "maxYear": 1943,
      "mean": 13400,
      "median": 8890,
      "min": 940,
      "minYear": 1966,
      "month": 1
    },
    {
      "beginYear": 1931,
      "count": 96,
      "day": 2,
      "endYear": 2026,
      "max": 82100,
      "maxYear": 1976,
      "mean": 13500,
      "median": 8350,
      "min": 943,
      "minYear": 2002,
      "month": 1
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "dailyStats",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "usgswater",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

peakFlows

GET/v1/usgswater/peakFlows

The highest streamflow of each year at a river site since its records began, newest first: flood history.

scope social:read1 unitcached 24 hpaginated

Parameters

site
string
required
USGS site number, such as 01646500 (Potomac River near Washington, DC).
e.g. 01646500
limit
integer
Items per page, 1 to 100.
default 20e.g. 5
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

5 fields
datestring
dischargeCfsnumber (double)
gageHeightFeetnumber (double)
qualifierstring
timestring
curl "https://api.hoshime.com/v1/usgswater/peakFlows?site=01646500&limit=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "date": "…",
      "dischargeCfs": 0,
      "gageHeightFeet": 0,
      "qualifier": "…",
      "time": "…"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "peakFlows",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "usgswater",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open