USGS earthquakes monitor
Pricing
$1.00 / 1,000 results
USGS earthquakes monitor
Monitor USGS earthquakes by time, magnitude, region, and alert level.
Pricing
$1.00 / 1,000 results
Rating
0.0
(0)
Developer
Chee Chiaw Lim
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
24 days ago
Last modified
Categories
Features
Share
This Apify Actor returns earthquakes from the USGS FDSN event web service. Empty input selects events from the last 24 hours with magnitude at least 2.5, worldwide, up to 100 source events.
Coverage and source
The Actor queries the USGS event service. It supports time, magnitude, region, and alert filters. Use it to collect recent events into an Apify dataset and skip event IDs emitted by an earlier run.
The time window uses the event origin time. USGS can revise event data after publication. The output includes both time and updated.
Input
| Field | Default | Meaning |
|---|---|---|
sinceHours | 24 | Integer hours before the run start, from 1 to 8760. |
endtime | empty | Optional ISO timestamp. Must be at or after the calculated start time. |
minMagnitude | "2.5" | Minimum magnitude as a numeric string. |
maxMagnitude | empty | Optional maximum magnitude as a numeric string. |
region | {} | Empty selects worldwide. Use a complete box or circle. |
alertLevel | empty | Optional green, yellow, orange, or red alert filter. |
onlyNew | false | Skip event IDs previously emitted to the state store. |
maxItems | 100 | Maximum source events examined, from 1 to 10000, before duplicate filtering. |
stateStoreName | usgs-earthquakes-monitor-state | Named KV store for cross-run deduplication. |
A box requires minLatitude, maxLatitude, minLongitude, and maxLongitude inside region. A circle requires latitude, longitude, and maxRadiusKm. All region values are numeric strings. Box and circle filters are mutually exclusive. Latitude ranges from -90 to 90 and longitude from -180 to 180. A box with minimum longitude greater than maximum longitude crosses the date line.
Example circle input:
{"sinceHours": 48,"minMagnitude": "3.0","region": { "latitude": "35", "longitude": "-118", "maxRadiusKm": "300" },"maxItems": 100,"onlyNew": true}
Requests use orderby=time, a page size of min(maxItems, 20000), and 1-based offsets. Collection stops at maxItems source events or a short page. Duplicate and seen events can reduce the number emitted.
Output
Each record includes event identifiers, magnitude, coordinates, depth in kilometres, status, impact fields, timestamps, event links, and attribution. Missing source values are null. types is an array of product type names. tsunami converts the source flag to a boolean; it is not a warning or forecast.
Example from the supplied USGS fixture:
{"eventId": "us7000tu7b","magnitude": 4.6,"magType": "mb","place": "64 km SSW of Shikotan, Russia","time": "2026-10-30T08:45:49.982Z","updated": "2026-10-30T09:01:05.040Z","latitude": 43.2605,"longitude": 146.4242,"depthKm": 43.625,"status": "reviewed","tsunami": false,"alert": null,"felt": null,"cdi": null,"mmi": null,"sig": 326,"network": "us","types": ["origin","phase-data"],"title": "M 4.6 - 64 km SSW of Shikotan, Russia","url": "https://earthquake.usgs.gov/earthquakes/eventpage/us7000tu7b","detailUrl": "https://earthquake.usgs.gov/fdsnws/event/1/query?eventid=us7000tu7b&format=geojson","source": "U.S. Geological Survey Earthquake Hazards Program","sourceUrl": "https://earthquake.usgs.gov/earthquakes/eventpage/us7000tu7b","licence": "U.S. Public Domain (https://www.usgs.gov/information-policies-and-instructions/copyrights-and-credits)","credit": "U.S. Geological Survey","generatedId": "USGS:us7000tu7b","changeType": "new","scrapedAt": "2026-10-30T09:29:06.757Z"}
The state store contains event IDs under SEEN_EVENT_IDS. An absent ID gets changeType of new; a stored ID gets seen. Only successful pushes enter the set. With onlyNew false, previously emitted events appear again. With onlyNew true, revisions to seen events are skipped even when updated changes. Use separate state stores for independent monitors. A named-store permission failure falls back to the default store and disables onlyNew for that run.
RUN_SUMMARY records fetched, eligible, and pushed counts, effective onlyNew, charge-limit status, and any run error.
Pricing
$0.001 per result, no start fee. Each emitted record uses the result billing event. Skipped records do not incur a result charge. The Actor stops at the available charge limit. Platform compute and storage charges may apply separately.
Licence and credit
Source and credit belong to the U.S. Geological Survey. Records carry the source name, event page URL, and U.S. Public Domain (https://www.usgs.gov/information-policies-and-instructions/copyrights-and-credits).
The Actor maps the source GeoJSON into dataset records. It does not require API keys or proxies.
Limits
USGS can add, revise, or remove events. Offset pages can shift while the source changes. Results are a snapshot, and this Actor does not detect revisions through onlyNew. It is not an emergency alert system.
The Actor waits at least one second between HTTP request starts per host and retries HTTP 429 and 5xx responses up to three times. Network failures stop the run and appear in RUN_SUMMARY. The User-Agent is keepable_injera-apify-monitor (cheechiawbot@mail.grokbot.com).
Local verification
Run npm test for offline tests. Use a fresh storage directory for a fixture-backed local run:
CRAWLEE_STORAGE_DIR=/tmp/usgs-check APIFY_LOCAL_STORAGE_DIR=/tmp/usgs-check APIFY_TOKEN='' APIFY_IS_AT_HOME='' NODE_OPTIONS="--import ./scripts/offline-fixture.js" npm startnode scripts/verify-output.js /tmp/usgs-check
The preload serves the supplied USGS fixture and blocks network requests. It simulates paging but does not apply source filters. The verifier reads saved dataset records and RUN_SUMMARY.