# Earthquake Scraper — Global USGS Feed by Magnitude & Area (`hipersoft/earthquake-scraper`) Actor

Collect global earthquakes with magnitude, place, time, depth, coordinates, tsunami and alert level. Filter by time window, magnitude, depth, bounding box or radius — export as JSON, CSV or Excel for alerts, maps, dashboards and research.

- **URL**: https://apify.com/hipersoft/earthquake-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0001 / earthquake scraped

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Earthquake Scraper — Global USGS Feed by Magnitude & Area

Track **earthquakes worldwide** with the **Earthquake Scraper**. Pull a live, structured feed of seismic events — **magnitude, place, time, depth, coordinates, tsunami flag and PAGER alert level** — filtered by time window, magnitude, depth, bounding box or radius, and export each event as **JSON, CSV or Excel**.

Built for **early-warning and alerting systems, news and media desks, insurance and risk models, mapping and GIS dashboards, and scientific research**, it turns the raw seismic feed into a clean dataset you can drop into any product or workflow.

### What it does

- 🌍 **Global feed** — earthquakes anywhere on Earth, updated continuously.
- 📏 **Magnitude & depth filters** — set a minimum/maximum magnitude and depth range.
- 🕒 **Time windows** — past hour, day, week, month, or a custom date range.
- 📍 **Area search** — a bounding box or a circular radius around any point.
- 🌊 **Impact signals** — tsunami flag, PAGER alert level, felt reports and significance.
- 📤 **Export anywhere** — JSON, CSV or Excel, or straight into an alert, map or dashboard.

### Example output

```json
{
  "id": "us7000abcd",
  "magnitude": 5.8,
  "magnitudeType": "mww",
  "place": "120 km SSW of Sand Point, Alaska",
  "time": "2026-09-21T18:42:11.000Z",
  "latitude": 54.62,
  "longitude": -160.41,
  "depthKm": 24.5,
  "tsunami": false,
  "alert": "green",
  "significance": 517,
  "url": "https://earthquake.usgs.gov/earthquakes/eventpage/us7000abcd"
}
```

### How to use it

1. Pick a **time window** (or a custom date range).
2. Set a **minimum magnitude** and, optionally, an **area** (box or radius).
3. Run, and download the results as **JSON, CSV or Excel**.

### Input fields

| Field | Description |
|-------|-------------|
| **Time window** | Past hour, day, week, month, or a custom range. |
| **Min / max magnitude** | Magnitude bounds (e.g. 2.5, 6). |
| **Min / max depth (km)** | Depth range in kilometers. |
| **Center lat/lon + radius** | Circular search around a point. |
| **Bounding box** | Min/max latitude and longitude for a rectangular area. |
| **Alert level** | Filter by PAGER impact alert (green–red). |
| **Sort order** | Newest, oldest, or by magnitude. |
| **Max earthquakes** | Maximum number of events to collect. |

### Output fields

`id`, `magnitude`, `magnitudeType`, `place`, `time`, `updated`, `longitude`, `latitude`, `depthKm`, `tsunami`, `alert`, `significance`, `felt`, `cdi`, `mmi`, `status`, `eventType`, `network`, `code`, `sources`, `nst`, `gap`, `rms`, `url`, `detailUrl`.

### Popular use cases

- **Alerting & early warning** — notify when a quake above a magnitude hits a region.
- **News & media** — auto-populate a live earthquake ticker or map.
- **Insurance & risk** — feed recent seismicity into exposure and catastrophe models.
- **Mapping & GIS** — plot events by magnitude, depth and location.
- **Research & education** — build historical seismicity datasets for any area and period.

### FAQ

**Do I need an account or key?**
No. Set your filters and run.

**How current is the data?**
It reflects the live global seismic feed, including recent events within the last hour.

**Can I search a specific region?**
Yes — use a bounding box, or a center point with a radius in kilometers.

**How far back can I go?**
Use a custom date range to pull historical events for any period.

**Can I export to Excel or Google Sheets?**
Yes — results download as JSON, CSV or Excel and integrate with alerts, maps and dashboards.

***

Structured **global earthquake data** — magnitude, depth, location, tsunami and alert level — clean and export-ready for alerts, mapping, risk models and research.

# Actor input Schema

## `period` (type: `string`):

Quick time window ending now. Choose a preset, or pick "Custom range" and set Start/End time below.

## `startTime` (type: `string`):

Start of a custom range, ISO 8601 (e.g. 2026-09-01 or 2026-09-01T00:00:00). Used when Time window is "Custom range".

## `endTime` (type: `string`):

End of a custom range, ISO 8601. Leave empty for "now".

## `minMagnitude` (type: `string`):

Only return earthquakes at or above this magnitude (e.g. 2.5, 4.5, 6). Leave empty for all.

## `maxMagnitude` (type: `string`):

Only return earthquakes at or below this magnitude. Leave empty for no upper limit.

## `minDepth` (type: `string`):

Only earthquakes at or deeper than this depth in km. Leave empty to ignore.

## `maxDepth` (type: `string`):

Only earthquakes at or shallower than this depth in km. Leave empty to ignore.

## `latitude` (type: `string`):

Latitude for a circular (radius) search. Use with Center longitude and Radius.

## `longitude` (type: `string`):

Longitude for a circular (radius) search.

## `maxRadiusKm` (type: `string`):

Radius in km around the center point. Use with Center latitude/longitude.

## `minLatitude` (type: `string`):

Bounding-box search: southern edge. Use the four box fields together.

## `maxLatitude` (type: `string`):

Bounding-box search: northern edge.

## `minLongitude` (type: `string`):

Bounding-box search: western edge.

## `maxLongitude` (type: `string`):

Bounding-box search: eastern edge.

## `alertLevel` (type: `string`):

Filter by PAGER impact alert level.

## `eventType` (type: `string`):

Filter by event type (e.g. earthquake, quarry blast). Leave empty for all.

## `orderBy` (type: `string`):

Order of returned events.

## `maxItems` (type: `integer`):

Maximum number of earthquakes to collect.

## `proxyConfiguration` (type: `object`):

Optional proxy settings for the run. Not required — the data is fetched over plain HTTP.

## Actor input object example

```json
{
  "period": "day",
  "startTime": "",
  "endTime": "",
  "minMagnitude": "2.5",
  "maxMagnitude": "",
  "minDepth": "",
  "maxDepth": "",
  "latitude": "",
  "longitude": "",
  "maxRadiusKm": "",
  "minLatitude": "",
  "maxLatitude": "",
  "minLongitude": "",
  "maxLongitude": "",
  "alertLevel": "",
  "eventType": "",
  "orderBy": "time",
  "maxItems": 1000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

The results as dataset items.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/earthquake-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/earthquake-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call hipersoft/earthquake-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hipersoft/earthquake-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/NDXg2foWnjgLwNWK9/builds/LuqGOTAJChaD2XsJE/openapi.json
