USGS Water Data Export — Rivers & Streams avatar

USGS Water Data Export — Rivers & Streams

Pricing

from $0.14 / 1,000 water observations

Go to Apify Store
USGS Water Data Export — Rivers & Streams

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

Cliqto Media

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Categories

Features

Limited permissions

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.

USGS Water Data Export: river station to discharge readings with UTC dates, approval status and JSON or CSV export

Table of contents

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

  1. Open Input. The example has three stations, discharge and the last seven days.
  2. Keep maxResults at 200 for a small first export.
  3. Click Start.
  4. Open Water observations to see station, value, units, time and approval status.
  5. 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

FieldTypeRequiredRuntime default / form prefillLimits and effectRecommendation
sitesarray of stringsOne selectorNo runtime default; prefill 01646500, 09380000, 033390001–20 station numbers, each 8–15 digits; duplicates removedPreserve leading zeros. Clear this when using state or bbox.
statestringOne selectorNoneTwo-digit US state/territory FIPS code; 24 = MarylandUse instead of sites or bbox.
bboxarray of numbersOne selectorNone[west,south,east,north] WGS84; longitude −180–180, latitude −90–90; west < east, south < northUse a small area; no antimeridian crossing.
parametersarray of stringsNo['00060']1–5 five-digit USGS codes, duplicates removedStart with 00060 or 00065.
latestOnlybooleanNofalseTrue selects newest readings per time series within the window; false returns historyUse true for a short current-state export.
lastDaysintegerNoRuntime 7; prefill 7Rolling UTC window, 1–31 days, ending at run startOmit/clear it when using explicit dates.
startDatestringWith endDateNoneYYYY-MM-DD UTC inclusive startSet both dates, omit lastDays.
endDatestringWith startDateNoneYYYY-MM-DD UTC through 23:59:59.999; at most 31 inclusive daysUse a short date range first.
maxResultsintegerNoRuntime 1000; prefill 2001–1000 saved observationsA 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&parameter_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

FieldTypeNull allowedMeaningExample
observationIdstringNoStable time-series ID plus UTC timestamp; safe for joining repeat exports."66a4e3fb8abe42fcb0942b5c0fe98f68:2026-10-13T13:50:00.000Z"
sitestringNoUSGS station number, preserving leading zeros."01646500"
siteNamestringYesName from the monitoring-locations endpoint."POTOMAC RIVER NEAR WASH, DC LITTLE FALLS PUMP STA"
latitudenumberYesStation latitude in WGS84 degrees.38.949777777777776
longitudenumberYesStation longitude in WGS84 degrees.-77.12763888888888
parameterCodestringNoFive-digit USGS measurement parameter code."00060"
parameterNamestringYesName from the USGS parameter-codes endpoint."Discharge"
unitstringYesUnits exactly as reported with the observation."ft^3/s"
valuenumberYesNumeric value when parseable; null for missing or non-numeric values. Use rawValue for full precision.11300
rawValuestringYesExact source value string; no rounding."11300"
dateTimestringNoObservation timestamp normalized to UTC ISO 8601."2026-10-13T13:50:00.000Z"
sourceDateTimestringNoOriginal timestamp with source offset."2026-10-13T13:50:00+00:00"
timeZonestringYesStation time zone abbreviation; not an IANA time zone."EST"
usesDaylightSavingsbooleanYesWhether USGS marks the station as using daylight savings.true
qualifiersarray of stringsYesUSGS observation qualifier codes; source strings become one-item arrays. Null means none supplied. See approvalStatus separately.null
approvalStatusstringYesUSGS Approved or Provisional; provisional values may be revised."Provisional"
statisticstringYesUSGS statistic code, for example 00011 for instantaneous data."00011"
timeSeriesIdstringNoUSGS time-series identifier."66a4e3fb8abe42fcb0942b5c0fe98f68"
providerstringNoUSGS data source."USGS"
sourceUrlstringNoAPI page from which this observation was fetched."https://api.waterdata.usgs.gov/ogcapi/v1/collections/latest-continuous/items?f=json&…
fetchedAtstringNoFetch time in UTC."2026-10-13T14:22:05.607Z"
sourceUpdatedAtstringYesSource last_modified timestamp; a refresh does not always mean the measurement changed."2026-10-13T13:58:17.797147+00:00"
licencestringNoUSGS 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_SUMMARY with status, reason, row count, request counters, selected window, observed stations and unseenSites.

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 tierPer observationPer 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 rowsFree tier totalGold 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

NeedInputUseful fields
Research a recent river periodsites + date rangerawValue, dateTime, unit, approvalStatus
Compare current stationssites + latestOnlysite, value, unit, sourceUpdatedAt
Explore a small regionstate or bboxsiteName, 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.

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.