# USGS Global Earthquake, Tsunami & Seismic Hazards API (`richigga/usgs-earthquake-seismic-hazards-monitor`) Actor

Real-time global earthquake and tsunami hazard monitoring API using official USGS Seismic feeds. Filter by magnitude, GPS radius, depth, and tsunami alert status.

- **URL**: https://apify.com/richigga/usgs-earthquake-seismic-hazards-monitor.md
- **Developed by:** [Jiani Peng](https://apify.com/richigga) (community)
- **Categories:** Travel, Business, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## USGS Global Earthquake, Tsunami & Seismic Hazards API

An autonomous, ultra-fast Apify Actor providing real-time access to the **United States Geological Survey (USGS) Global Earthquake and Tsunami Hazard Feeds**.

Filter seismic events by Richter magnitude, GPS circular radius (latitude/longitude/distance), depth, time window, and tsunami alert flags.

***

### 🌋 Features

- **Real-Time Global Coverage**: Pulls authoritative seismic records from the USGS National Earthquake Information Center (NEIC).
- **Radius Search by GPS**: Locate seismic activity within X kilometers of any city, critical infrastructure, data center, or property portfolio.
- **Tsunami Warning Alerts**: Immediate flagging of seismic events that triggered official Pacific / NOAA tsunami warnings.
- **Detailed GeoJSON Metrics**: Modified Mercalli Intensity (MMI), depth in kilometers, PAGER impact significance index, and felt community reports.
- **Zero Overhead**: Direct official government API with sub-second latency (< 200ms) and zero third-party dependencies.

***

### 📥 Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `minMagnitude` | `Number` | `3.0` | Minimum Richter magnitude (e.g. `2.5`, `4.5`, `6.0`). |
| `maxMagnitude` | `Number` | `null` | Optional upper bound magnitude. |
| `timeWindow` | `String` | `"past_24_hours"` | Preset window: `past_hour`, `past_24_hours`, `past_7_days`, `past_30_days`. |
| `tsunamiOnly` | `Boolean` | `false` | Only return quakes with active tsunami warnings. |
| `latitude` | `Number` | `null` | Center latitude for radius search (e.g. `35.6762`). |
| `longitude` | `Number` | `null` | Center longitude for radius search (e.g. `139.6503`). |
| `maxRadiusKm` | `Integer` | `500` | Search radius in kilometers. |
| `maxResults` | `Integer` | `50` | Maximum results to return (1 to 500). |

***

### 📤 Output Format

```json
{
  "id": "us6000pkqw",
  "title": "M 5.8 - 14 km SSE of Hualien City, Taiwan",
  "magnitude": 5.8,
  "magnitudeType": "mww",
  "place": "14 km SSE of Hualien City, Taiwan",
  "eventTimeIso": "2026-08-22T08:15:30.000Z",
  "updatedTimeIso": "2026-08-22T09:00:00.000Z",
  "tsunamiAlert": false,
  "significance": 518,
  "alertLevel": "green",
  "mmi": 5.4,
  "feltReports": 124,
  "status": "reviewed",
  "coordinates": {
    "latitude": 23.87,
    "longitude": 121.65
  },
  "depthKm": 10.0,
  "usgsEventUrl": "https://earthquake.usgs.gov/earthquakes/eventpage/us6000pkqw"
}
```

***

### 🤖 Python & Node.js Integration

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("Richigga/usgs-earthquake-seismic-hazards-monitor").call(
    run_input={
        "minMagnitude": 4.5,
        "timeWindow": "past_7_days",
        "latitude": 34.0522,
        "longitude": -118.2437,
        "maxRadiusKm": 1000
    }
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"[{item['magnitude']}] {item['place']} (Depth: {item['depthKm']}km)")
```

***

### 💰 Unit Economics & Performance

- **Pricing Model**: Pay Per Event / Request (`$0.002` per run)
- **External Cost**: `$0.00` (Official USGS NEIC public feeds)
- **Execution Speed**: `< 200ms`
- **Gross Margin**: `> 98%`

***

### 📄 License

Apache-2.0. Public domain US Government open data.

# Actor input Schema

## `minMagnitude` (type: `number`):

Minimum earthquake magnitude to return (e.g. 2.5 for local, 4.5 for moderate, 6.0 for major quakes).

## `maxMagnitude` (type: `number`):

Optional upper bound for magnitude.

## `timeWindow` (type: `string`):

Preset historical time window or date range.

## `tsunamiOnly` (type: `boolean`):

If enabled, only returns seismic events that triggered official tsunami warning flags.

## `latitude` (type: `number`):

Optional GPS latitude for circular radius search (e.g. 34.0522 for Los Angeles, 35.6762 for Tokyo).

## `longitude` (type: `number`):

Optional GPS longitude for circular radius search (e.g. -118.2437 for Los Angeles, 139.6503 for Tokyo).

## `maxRadiusKm` (type: `integer`):

Search radius around GPS center in kilometers (e.g. 500).

## `maxResults` (type: `integer`):

Maximum number of seismic events to return.

## Actor input object example

```json
{
  "minMagnitude": 3,
  "timeWindow": "past_24_hours",
  "tsunamiOnly": false,
  "maxRadiusKm": 500,
  "maxResults": 50
}
```

# Actor output Schema

## `output` (type: `string`):

Standard earthquake summary

# 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("richigga/usgs-earthquake-seismic-hazards-monitor").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("richigga/usgs-earthquake-seismic-hazards-monitor").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 richigga/usgs-earthquake-seismic-hazards-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,richigga/usgs-earthquake-seismic-hazards-monitor"
        }
    }
}

```

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/RJDVNnkf7FpDUY8BH/builds/yGadebzhabi2QlrRJ/openapi.json
