USGS Earthquakes Near My Sites avatar

USGS Earthquakes Near My Sites

Pricing

$2.00 / 1,000 delivered earthquake proximity findings

Go to Apify Store
USGS Earthquakes Near My Sites

USGS Earthquakes Near My Sites

Match the official USGS recent-earthquake feed against a small facility list and deliver new or materially revised nearby event findings with distance and source provenance.

Pricing

$2.00 / 1,000 delivered earthquake proximity findings

Rating

0.0

(0)

Developer

Nathaniel Standridge

Nathaniel Standridge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Categories

Features

Limited permissions

Share

Match recent USGS-reported earthquakes against a bounded list of facility coordinates. Each dataset row is one new or materially revised event × site finding within that site's radius. The row includes great-circle distance, reported magnitude and depth, event and revision times, an official USGS event-page URL, and the exact feed version used. A site with no match produces no paid row.

Start with a site list

{
"assets": [{"id": "california-ops", "lat": 36.5, "lon": -121, "radiusKm": 500}],
"monitorKey": "west-sites",
"lookbackHours": 144,
"minMagnitude": 2.5,
"maxFindings": 20
}

Use assets: [] for a valid zero-output run; omitting assets is invalid in the Actor runtime. An asset needs exactly id, lat, lon, and radiusKm. IDs and monitor keys contain only letters, digits, _, and -, start with a letter or digit, and are at most 50 characters. Provide up to 50 assets, each with radius 1–2,000 km. The maximum lookback is 144 hours; the source is the fixed official USGS M2.5+ past-week summary feed. The minimum magnitude may be 2.5–9.5. maxFindings caps new paid rows at 200. The source is fetched once per nonempty run, not once per asset.

Run it repeatedly

For the next scheduled run, paste the preceding run's OUTPUT.snapshot into previousSnapshot and keep the same monitorKey. Unchanged asset/event pairs then produce no new rows or charges. A material change to the site's coordinates/radius or the USGS event's reported magnitude, location, depth, time, or place creates a new finding. A metadata-only updated timestamp does not. OUTPUT.snapshot contains only delivered findings plus in-scope prior signatures; a failed source request or undelivered row never advances the baseline. Snapshot capacity is 500 pairs covering current assets and events in the past seven days. If that limit, maxFindings, or the native charge cap prevents full delivery, OUTPUT.complete is false and stopReason identifies the limit.

Read the dataset for findings and the OUTPUT key-value record for coverage, counts, source provenance, errors, and the next snapshot. RESULT_PLAN holds the frozen planned rows for restart reconciliation. If a billable dataset write has an uncertain outcome, the Actor stops with a pending checkpoint; reconcile that same run's dataset and native charged-event count before any retry. There is one native apify-default-dataset-item charge for each delivered finding and no other charging path. Source errors and zero matches generate no charge.

Source and interpretation

The only outbound destination is https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.geojson; user input cannot change it. Redirects are refused, response size and feature count are capped, and stale or malformed feeds fail rather than become false zero-match results. Non-earthquake event types are excluded. Each row records feed SHA-256, generation and retrieval times, HTTP Last-Modified when valid, source counts, and the official event page URL built from a validated event ID. The feed and event data can be revised; a snapshot from another monitor or stale seven-day window is not a complete history.

Distance is great-circle distance to the reported epicenter. Proximity does not establish shaking, exposure, damage, or an emergency declaration. USGS describes the real-time GeoJSON feeds and also offers free ENS alerts. This Actor is an integration-oriented asset matching feed, not an emergency alert service. Paid demand, customer acquisition, compute margin, and profit have not been measured.

Local verification

uv run --locked --no-cache python -B -m unittest discover -s tests -v checks input, source, matching, billing/restart and release contracts. tools/validate_cloud.py RUN_DIRECTORY examples/cloud-cases.json CASE independently checks private full, empty, cap, malformed, and resurrection evidence after a cloud run. resurrection reuses the full run; it is not a second paid run. Example input and output under examples/ are synthetic or live-source local evidence as labeled, never customer or revenue evidence.