公
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/instantValues | The measurements of a site over the last hours, every 5 to 60 minutes. |
| GET | /usgswater/dailyValues | The daily mean of a site between two dates. |
| GET | /usgswater/sites | The active USGS monitoring sites of a US state: rivers, lakes, wells and others, with their position. |
| GET | /usgswater/sitesNear | The active USGS monitoring sites around a point, nearest first, with their distance: rivers, lakes, wells and weather stations. |
| GET | /usgswater/site | One USGS monitoring site by its number: name, type, agency and position. |
| GET | /usgswater/dailyStats | Long-term statistics of one site for each day of the year: the min, mean, median and max of all past years. |
| GET | /usgswater/peakFlows | The highest streamflow of each year at a river site since its records began, newest first: flood history. |
instantValues
GET
/v1/usgswater/instantValuesThe measurements of a site over the last hours, every 5 to 60 minutes.
scope social:read1 unitcached 5 min
Parameters
sitestring required | USGS site number, such as 01646500 (Potomac River near Washington, DC). e.g. 01646500 |
parameterstring | USGS parameter: 00060 discharge (ft3/s), 00065 gage height (ft) or 00010 water temperature (C).000600006500010default 00060 |
hoursinteger | Hours back from now, from 1 to 120. default 2 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
items | Reading[] |
measuredAt | string |
qualifiers | string[] |
value | number (double) |
parameter | string |
site | string |
siteName | string |
unit | string |
variable | string |
curl "https://api.hoshime.com/v1/usgswater/instantValues?site=01646500" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usgswater/instantValues?site=01646500", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usgswater/instantValues?site=01646500", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/dailyValuesThe daily mean of a site between two dates.
scope social:read1 unitcached 6 h
Parameters
sitestring required | USGS site number, such as 01646500 (Potomac River near Washington, DC). e.g. 01646500 |
parameterstring | USGS parameter: 00060 discharge (ft3/s), 00065 gage height (ft) or 00010 water temperature (C).000600006500010default 00060 |
startDatestring required | First day, YYYY-MM-DD. e.g. 2023-01-01 |
endDatestring required | Last day, YYYY-MM-DD. e.g. 2023-01-07 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
items | Reading[] |
measuredAt | string |
qualifiers | string[] |
value | number (double) |
parameter | string |
site | string |
siteName | string |
unit | string |
variable | string |
curl "https://api.hoshime.com/v1/usgswater/dailyValues?site=01646500&startDate=2023-01-01&endDate=2023-01-07" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usgswater/dailyValues?site=01646500&startDate=2023-01-01&endDate=2023-01-07", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usgswater/dailyValues?site=01646500&startDate=2023-01-01&endDate=2023-01-07", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/sitesThe active USGS monitoring sites of a US state: rivers, lakes, wells and others, with their position.
scope social:read1 unitcached 24 hpaginated
Parameters
statestring required | Two-letter state code, such as DC or CA. e.g. DC |
limitinteger | Items per page, 1 to 500. default 50e.g. 5 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
agency | string |
category | string |
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
curl "https://api.hoshime.com/v1/usgswater/sites?state=DC&limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usgswater/sites?state=DC&limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usgswater/sites?state=DC&limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/sitesNearThe 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
latstring required | Latitude of the point, -90 to 90. e.g. 38.8894 |
lonstring required | Longitude of the point, -180 to 180. e.g. -77.0352 |
radiusKminteger | Search radius in kilometres, 1 to 100. Sites in the square around the point are listed. default 25 |
limitinteger | Items per page, 1 to 100. default 20e.g. 5 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
agency | string |
category | string |
distanceKm | number (double) |
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
curl "https://api.hoshime.com/v1/usgswater/sitesNear?lat=38.8894&lon=-77.0352&limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usgswater/sitesNear?lat=38.8894&lon=-77.0352&limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usgswater/sitesNear?lat=38.8894&lon=-77.0352&limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/siteOne USGS monitoring site by its number: name, type, agency and position.
scope social:read1 unitcached 24 h
Parameters
sitestring required | USGS site number, such as 01646500 (Potomac River near Washington, DC). e.g. 01646500 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
agency | string |
category | string |
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
curl "https://api.hoshime.com/v1/usgswater/site?site=01646500" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usgswater/site?site=01646500", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usgswater/site?site=01646500", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/dailyStatsLong-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
sitestring required | USGS site number, such as 01646500 (Potomac River near Washington, DC). e.g. 01646500 |
parameterstring | USGS parameter: 00060 discharge (ft3/s), 00065 gage height (ft) or 00010 water temperature (C).000600006500010default 00060e.g. 00060 |
limitinteger | Items per page, 1 to 366. default 366e.g. 7 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
beginYear | integer (int64) |
count | integer (int64) |
day | integer (int64) |
endYear | integer (int64) |
max | number (double) |
maxYear | integer (int64) |
mean | number (double) |
median | number (double) |
min | number (double) |
minYear | integer (int64) |
month | integer (int64) |
curl "https://api.hoshime.com/v1/usgswater/dailyStats?site=01646500¶meter=00060&limit=7" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usgswater/dailyStats?site=01646500¶meter=00060&limit=7", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usgswater/dailyStats?site=01646500¶meter=00060&limit=7", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/peakFlowsThe highest streamflow of each year at a river site since its records began, newest first: flood history.
scope social:read1 unitcached 24 hpaginated
Parameters
sitestring required | USGS site number, such as 01646500 (Potomac River near Washington, DC). e.g. 01646500 |
limitinteger | Items per page, 1 to 100. default 20e.g. 5 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
date | string |
dischargeCfs | number (double) |
gageHeightFeet | number (double) |
qualifier | string |
time | string |
curl "https://api.hoshime.com/v1/usgswater/peakFlows?site=01646500&limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usgswater/peakFlows?site=01646500&limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usgswater/peakFlows?site=01646500&limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }