USGS NWIS Instantaneous Water Values Scraper
Pricing
from $3.48 / 1,000 usgs water measurement rows
USGS NWIS Instantaneous Water Values Scraper
Fetch instantaneous streamflow and other water measurements for chosen USGS gauge sites as structured JSON rows. Not affiliated with USGS National Water Information System (NWIS) Instantaneous Values Service.
Pricing
from $3.48 / 1,000 usgs water measurement rows
Rating
0.0
(0)
Developer
PlainKit bin
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 days ago
Last modified
Categories
Features
Share
USGS NWIS Instantaneous Values Scraper
Introduction
Hydrologists, flood-risk analysts, water-utility planners, and students who work with river data need the measured values of a gauge station as plain rows. The USGS water data service publishes these values, but a raw response nests each measurement several levels deep, with site codes, parameter codes, units, and qualifiers spread across separate objects. This Actor flattens that structure into one JSON row per measured value.
One run asks the service for the sites you name, for the parameter codes you choose (00060 is discharge, the streamflow in cubic feet per second), and for a look-back window of one to seven days. It returns one row per measurement with the site number, site name, coordinates, parameter, value, unit, timestamp, and qualifiers. Every field is copied from the response as text, so you can check each row against the source.
Use it to build a daily streamflow table for a basin, to compare gauges over the same window, or to feed a spreadsheet or dashboard that tracks water levels.
This Actor is an independent tool and is not affiliated with USGS National Water Information System (NWIS) Instantaneous Values Service. It reads only from waterservices.usgs.gov.
Input and output examples
Each delivered row looks like this:
{"date_time": "2026-11-16T13:00:00.000-05:00","latitude": "38.94977778","longitude": "-77.12763889","parameter_code": "00060","parameter_name": "Streamflow, ft³/s","qualifiers": "P","site_name": "POTOMAC RIVER NEAR WASH, DC LITTLE FALLS PUMP STA","site_number": "01646500","unit": "ft3/s","value": "1600"}
The field qualifiers carries the USGS qualifier codes for the value, for example P for provisional data that the agency may revise. The parameter_name and value fields keep the text as the service sent it.
If the service refuses the request (HTTP 401, 403, or 429), the run ends with one reason row, {"reason_code": "USGS_API_REFUSED", "http_status": "429"}, and that row is not charged.
Tutorial
- Open the Actor in Apify Console and enter one or more site numbers in
sites. The Potomac River example uses01646500. - Leave
parameter_codesat00060for streamflow, or add other 5-digit codes separated by commas. - Choose a
periodfromP1DtoP7D. - Set
max_itemsto the number of rows you want, up to 1000. - Start the run and download the dataset as JSON, CSV, or Excel.
A run that is restarted by the platform does not deliver or charge a row twice. The Actor recognises rows already in the dataset by site number, parameter code, and timestamp.
Pricing
- Pricing model: Apify Pay-Per-Event
- Event name:
usgs-water-value, charged once per pushed measurement row - Tier prices:
- FREE tier: $0.005 per row
- BRONZE: $0.0045 per row
- SILVER: $0.004 per row
- GOLD: $0.003484 per row
- PLATINUM: $0.003484 per row
- DIAMOND: $0.003334 per row
Each row is pushed first and charged right after the push. A refused charge stops the run and that row stays delivered but uncharged. A refused USGS request charges nothing.
Actor recommendations
If you need a different measurement family from the same service, such as groundwater levels or daily statistics, use a separate Actor built for that endpoint. Compare the parameter codes you need in the USGS parameter list before you choose one.
FAQ and support
Does the Actor fix or estimate missing values? No. Each value is copied as the service returned it. Qualifiers tell you about the state of a value.
Why are some rows missing? A row without a site number, parameter code, or timestamp cannot be identified, so it is not delivered. The run status reports how many such rows were skipped.
Why are there fewer rows than I asked for? The service may hold fewer values for the period you chose. Try a longer period or another site.
How do I report a problem? Write to support@example.com with the run ID and the input you used.
Configuration
| Field | Type | Description | Default |
|---|---|---|---|
sites | String | Comma-separated USGS site numbers, 8 to 15 digits each, up to 50. Required. | 01646500 |
parameter_codes | String | Comma-separated 5-digit USGS parameter codes. | 00060 |
period | String | ISO 8601 look-back window, P1D to P7D. | P1D |
max_items | Integer (1-1000) | Maximum total measurement rows to output in one run. | 10 |
Example input
{"sites": "01646500","parameter_codes": "00060","period": "P1D","max_items": 5}