USGS Water Data Export — Rivers & Streams
Pricing
from $0.14 / 1,000 water observations
USGS Water Data Export — Rivers & Streams
Export USGS streamflow and gage height by station, state or map area. Get recent history or latest readings with units, UTC timestamps and approval status.
Pricing
from $0.14 / 1,000 water observations
Rating
0.0
(0)
Developer
Cliqto Media
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
8 days ago
Last modified
Categories
Features
Share
Export USGS river discharge and gage height into clean JSON or CSV files. Choose station numbers, a US state or a map area, and get recent history or the latest readings with units and approval status. No USGS account or API key is needed. A 200-row export costs $0.055 on the Free tier.

Table of contents
- What it does
- What you get
- Quick start
- Input
- Output
- Pricing and limits
- Use cases
- Scheduling and repeat exports
- API, export and integrations
- Troubleshooting
- FAQ
- Support
What it does
This Actor reads continuous sensor observations from the USGS Water Data API. It uses API v1. Choose a rolling window of up to 31 days or set UTC start and end dates. Set latestOnly to get the newest reading from each time series, only when that reading falls in your window.
Results are bounded by your row limit, 20 observed stations, source availability and run limits. A small row limit may fill with the first station before the other stations are reached. Always read RUN_SUMMARY before treating the export as complete.
What you get
Each row is one water observation. It has a stable observation key, station name and coordinates, parameter code and name, source units, UTC time, raw value, numeric value and approval status. Parameter 00060 means discharge; 00065 means gage height. Other valid USGS continuous parameters are accepted.
The numeric value can lose decimal precision. Use rawValue when exact source precision matters. Missing values stay null. Provisional readings can be revised by USGS. Source update time can also change during a database refresh.
Quick start
- Open Input. The example has three stations, discharge and the last seven days.
- Keep
maxResultsat 200 for a small first export. - Click Start.
- Open Water observations to see station, value, units, time and approval status.
- Open Run summary to check the status and any limit reason.
The form example returns up to 200 historical readings. It may show partial / MAX_RESULTS; raise the limit or narrow the date window to export more. Runtime input {} is invalid: the API requires a selector and does not silently use demo stations.
Input
| Field | Type | Required | Runtime default / form prefill | Limits and effect | Recommendation |
|---|---|---|---|---|---|
sites | array of strings | One selector | No runtime default; prefill 01646500, 09380000, 03339000 | 1–20 station numbers, each 8–15 digits; duplicates removed | Preserve leading zeros. Clear this when using state or bbox. |
state | string | One selector | None | Two-digit US state/territory FIPS code; 24 = Maryland | Use instead of sites or bbox. |
bbox | array of numbers | One selector | None | [west,south,east,north] WGS84; longitude −180–180, latitude −90–90; west < east, south < north | Use a small area; no antimeridian crossing. |
parameters | array of strings | No | ['00060'] | 1–5 five-digit USGS codes, duplicates removed | Start with 00060 or 00065. |
latestOnly | boolean | No | false | True selects newest readings per time series within the window; false returns history | Use true for a short current-state export. |
lastDays | integer | No | Runtime 7; prefill 7 | Rolling UTC window, 1–31 days, ending at run start | Omit/clear it when using explicit dates. |
startDate | string | With endDate | None | YYYY-MM-DD UTC inclusive start | Set both dates, omit lastDays. |
endDate | string | With startDate | None | YYYY-MM-DD UTC through 23:59:59.999; at most 31 inclusive days | Use a short date range first. |
maxResults | integer | No | Runtime 1000; prefill 200 | 1–1000 saved observations | A limit applies across all stations and parameters. |
Choose exactly one of sites, state and bbox. Unknown input fields are rejected. With latestOnly=true, an inactive station's old latest reading is excluded when outside the selected window. No interpolation fills sensor gaps.
Input examples
Current discharge at three stations:
{"sites": ["01646500", "09380000", "03339000"],"parameters": ["00060"],"latestOnly": true,"lastDays": 7,"maxResults": 20}
One UTC day of discharge and gage height:
{"sites": ["01646500"],"parameters": ["00060", "00065"],"startDate": "2026-10-10","endDate": "2026-10-10","maxResults": 1000}
Maryland, newest recent discharge readings:
{"state": "24","parameters": ["00060"],"latestOnly": true,"lastDays": 7,"maxResults": 100}
A small map area near the Potomac:
{"bbox": [-77.15, 38.93, -77.1, 38.97],"parameters": ["00060"],"latestOnly": true,"lastDays": 7,"maxResults": 20}
Output
Output example
One full observation from a three-station latest export; values change with time:
{"observationId": "66a4e3fb8abe42fcb0942b5c0fe98f68:2026-10-13T13:50:00.000Z","site": "01646500","siteName": "POTOMAC RIVER NEAR WASH, DC LITTLE FALLS PUMP STA","latitude": 38.949777777777776,"longitude": -77.12763888888888,"parameterCode": "00060","parameterName": "Discharge","unit": "ft^3/s","value": 11300,"rawValue": "11300","dateTime": "2026-10-13T13:50:00.000Z","sourceDateTime": "2026-10-13T13:50:00+00:00","timeZone": "EST","usesDaylightSavings": true,"qualifiers": null,"approvalStatus": "Provisional","statistic": "00011","timeSeriesId": "66a4e3fb8abe42fcb0942b5c0fe98f68","provider": "USGS","sourceUrl": "https://api.waterdata.usgs.gov/ogcapi/v1/collections/latest-continuous/items?f=json&limit=20¶meter_code=00060&time=2026-10-06T14%3A22%3A05.011Z%2F2026-10-13T14%3A22%3A05.011Z&monitoring_location_id=USGS-01646500%2CUSGS-09380000%2CUSGS-03339000","fetchedAt": "2026-10-13T14:22:05.607Z","sourceUpdatedAt": "2026-10-13T13:58:17.797147+00:00","licence": "USGS public domain"}
Output fields
| Field | Type | Null allowed | Meaning | Example |
|---|---|---|---|---|
observationId | string | No | Stable time-series ID plus UTC timestamp; safe for joining repeat exports. | "66a4e3fb8abe42fcb0942b5c0fe98f68:2026-10-13T13:50:00.000Z" |
site | string | No | USGS station number, preserving leading zeros. | "01646500" |
siteName | string | Yes | Name from the monitoring-locations endpoint. | "POTOMAC RIVER NEAR WASH, DC LITTLE FALLS PUMP STA" |
latitude | number | Yes | Station latitude in WGS84 degrees. | 38.949777777777776 |
longitude | number | Yes | Station longitude in WGS84 degrees. | -77.12763888888888 |
parameterCode | string | No | Five-digit USGS measurement parameter code. | "00060" |
parameterName | string | Yes | Name from the USGS parameter-codes endpoint. | "Discharge" |
unit | string | Yes | Units exactly as reported with the observation. | "ft^3/s" |
value | number | Yes | Numeric value when parseable; null for missing or non-numeric values. Use rawValue for full precision. | 11300 |
rawValue | string | Yes | Exact source value string; no rounding. | "11300" |
dateTime | string | No | Observation timestamp normalized to UTC ISO 8601. | "2026-10-13T13:50:00.000Z" |
sourceDateTime | string | No | Original timestamp with source offset. | "2026-10-13T13:50:00+00:00" |
timeZone | string | Yes | Station time zone abbreviation; not an IANA time zone. | "EST" |
usesDaylightSavings | boolean | Yes | Whether USGS marks the station as using daylight savings. | true |
qualifiers | array of strings | Yes | USGS observation qualifier codes; source strings become one-item arrays. Null means none supplied. See approvalStatus separately. | null |
approvalStatus | string | Yes | USGS Approved or Provisional; provisional values may be revised. | "Provisional" |
statistic | string | Yes | USGS statistic code, for example 00011 for instantaneous data. | "00011" |
timeSeriesId | string | No | USGS time-series identifier. | "66a4e3fb8abe42fcb0942b5c0fe98f68" |
provider | string | No | USGS data source. | "USGS" |
sourceUrl | string | No | API page from which this observation was fetched. | "https://api.waterdata.usgs.gov/ogcapi/v1/collections/latest-continuous/items?f=json&… |
fetchedAt | string | No | Fetch time in UTC. | "2026-10-13T14:22:05.607Z" |
sourceUpdatedAt | string | Yes | Source last_modified timestamp; a refresh does not always mean the measurement changed. | "2026-10-13T13:58:17.797147+00:00" |
licence | string | No | USGS public domain attribution. | "USGS public domain" |
Output surfaces and status
- Water observations: table view of measurement fields, station, coordinates and source link.
- JSON export: all fields, preserving null and raw source values.
- CSV export: the fields in the Water observations view.
- Run summary: KVS record
RUN_SUMMARYwith status, reason, row count, request counters, selected window, observed stations andunseenSites.
complete means all source pages for the selected scope were read. It does not mean all requested stations have measurements. unseenSites lists station numbers with no delivered observations. An empty, valid query gives not_found and an empty Dataset. partial means some work was limited or interrupted. error means the run failed before delivering rows. No artificial error or not-found rows are added. During a run, the summary can show running. A graceful abort saves the final partial/error summary when time allows. A forced stop can leave an earlier checkpoint; check the platform run status and Dataset too.
Pricing and limits
You pay $0.015 when the Actor starts at 256 MB, plus a fee per saved observation. Valid empty exports still pay the start fee. Platform usage is paid by the developer under pay-per-event pricing. No proxy or source subscription is used.
| Apify tier | Per observation | Per 1000 observations |
|---|---|---|
| Free | $0.00020 | $0.20 |
| Bronze | $0.00018 | $0.18 |
| Silver | $0.00016 | $0.16 |
| Gold / Platinum / Diamond | $0.00014 | $0.14 |
| Saved rows | Free tier total | Gold tier total |
|---|---|---|
| 0 | $0.015 | $0.015 |
| 1 | $0.0152 | $0.01514 |
| 10 | $0.017 | $0.0164 |
| 100 | $0.035 | $0.029 |
| 200 | $0.055 | $0.043 |
| 1000 | $0.215 | $0.185 |
Repeat exports are billed again. A run stopped by your charge limit succeeds with partial / CHARGE_LIMIT. A source failure or internal deadline fails the run and keeps previously saved rows. Start and saved-row fees may already have been charged. Invalid inputs can also incur the platform start fee.
Limits: 20 observed stations, 5 parameters, 31 days per export, 1000 rows, 40 source requests including retries, 4 MiB downloaded data and 150 seconds of source work. Default resources are 256 MB and 300 seconds. More platform time does not increase the internal work limit. Requests stop on source rate limiting. USGS may rate-limit requests made without a key; shared cloud IPs may be busy.
Use cases
| Need | Input | Useful fields |
|---|---|---|
| Research a recent river period | sites + date range | rawValue, dateTime, unit, approvalStatus |
| Compare current stations | sites + latestOnly | site, value, unit, sourceUpdatedAt |
| Explore a small region | state or bbox | siteName, latitude, longitude, parameterCode |
Scheduling and repeat exports
You can configure an Apify schedule yourself for repeat exports. This Actor does not create schedules or alerts. Repeat runs fetch the selected window again; there is no baseline, onlyNew filter or automatic difference report. Join exports on observationId, and compare rawValue and approvalStatus to detect revisions.
API, export and integrations
Start with the same input JSON through the Apify API, then read the run's default Dataset and RUN_SUMMARY. Export JSON or CSV for a spreadsheet, database or analysis tool. Use observationId for repeat joins and unit before comparing measurements.
curl -X POST 'https://api.apify.com/v2/acts/cliqtomedia~usgs-water-data-export/runs?maxTotalChargeUsd=1&memory=256&timeout=300' \-H "Authorization: Bearer $APIFY_TOKEN" \-H 'Content-Type: application/json' \--data '{"sites":["01646500"],"parameters":["00060"],"latestOnly":true,"lastDays":7,"maxResults":20}'
Use with AI agents (MCP)
Use Apify MCP with this Actor. The three-station input in Quick start is the form example: historical discharge, last seven days and 200 rows. Read site, rawValue, unit, dateTime and approvalStatus; check RUN_SUMMARY.status and reason before using the result. Minimal input: {"sites": ["01646500"], "parameters": ["00060"], "latestOnly": true}. Cost: $0.015 per run plus $0.00014–$0.00020 per saved row. Output fields: site, siteName, parameterCode, rawValue, unit, dateTime, approvalStatus, qualifiers. Small exports take a few seconds in measured runs. Respect the station, row and date limits. An Apify account is needed to run the Actor; no USGS key is required.
Limitations and partial results
This is a continuous-data export, not a flood warning service. It does not fetch daily aggregates, field measurements or water-quality samples. It does not convert units or infer missing readings. Metadata may be null if the source has no station details.
Provisional data may change. Sensor delivery can be delayed. latestOnly is newest per time series, so a station may have several rows for one parameter. The source orders pages, usually oldest readings first, so a row limit on a long window keeps the earliest rows. Use a shorter window or latestOnly for recent readings. The Actor does not balance the row limit evenly across stations.
Data comes from USGS. USGS-produced data is in the US public domain. This Actor is an independent tool and does not imply USGS endorsement. Read the USGS data disclaimer before using provisional readings.
Troubleshooting
Empty Dataset
Check RUN_SUMMARY. not_found means no observations matched the window and parameters. Check leading zeros, broaden the date window or choose another measured parameter. A failed source request gives error, not not_found.
Only one station appears
The row limit may have been reached while reading the first station's history. Check reason and unseenSites. Increase maxResults, shorten the period or export stations separately.
Rate limit or source error
SOURCE_RATE_LIMIT means USGS rejected requests from the cloud IP. Retry later rather than starting many runs at once. Saved rows remain available when a later page fails. Other SOURCE_* reasons identify HTTP, format or pagination failures.
Input error
Choose exactly one selector. Set both explicit dates and remove lastDays. Use strings for station and parameter numbers. Unknown fields from older tools, such as service or period, are not accepted.
Partial export
MAX_RESULTS, SITE_LIMIT, REQUEST_LIMIT or CHARGE_LIMIT explains a normal bounded stop. For a failed run, DEADLINE, CANCELLED or a SOURCE_* reason explains incomplete source work. Read the summary and narrow your input before retrying.
FAQ
Is a USGS key needed?
No. The tested route works without one. USGS rate limits still apply, including on shared cloud IPs.
Does zero mean a missing value?
No. Numeric zero stays zero. Missing and non-numeric source values have value: null; rawValue keeps the source text when present.
Are timestamps local?
dateTime is UTC. sourceDateTime keeps the source offset. timeZone is the station's USGS abbreviation; it is not an IANA time-zone identifier. usesDaylightSavings keeps the source flag.
Can I fetch all historical data in one run?
No. Each export is limited to 31 days and 1000 observations. Use smaller windows and inspect completeness.
Can I replace an older WaterServices tool without changes?
The core station and measurement fields are similar, but UTC dates, qualifier arrays, unit text and parameter names may differ. Approval status is a separate field. Older input fields and daily-value mode are not supported.
Related Actors
Browse CliqtoMedia's Actors for other public data exports.
Support
Open an issue on this Actor's Apify page with the run ID and a small input example. Do not include tokens or private credentials.