# USGS Earthquake Normalizer (`wakey7dev/usgs-earthquake-normalizer`) Actor

Global earthquake data with tectonic plate mapping, seismic region classification, intensity interpretation, and risk scoring. 14 plates, 15 regions.

- **URL**: https://apify.com/wakey7dev/usgs-earthquake-normalizer.md
- **Developed by:** [Chris Wakefield](https://apify.com/wakey7dev) (community)
- **Categories:** Business
- **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/platform/actors/running/actors-in-store#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

![Chris The Dev](https://raw.githubusercontent.com/chriswakefield87/appstore-screenshot-translator/main/assets/actor-banner.png)

## USGS Earthquake Normalizer 🌍

Search global earthquake events from the **USGS Earthquake Hazards Program** with AI-powered geological intelligence. Go beyond raw data — get tectonic plate classification, seismic region mapping, intensity interpretation, and risk scoring.

**No API key needed** — the USGS FDSN Event API is completely free and public.

### ✨ What Makes This Different

Most earthquake scrapers give you raw GeoJSON. This actor gives you **geological intelligence**:

- 🗺️ **Tectonic Plate Mapping** — Classifies each earthquake by its tectonic plate (Pacific, North American, Eurasian, Nazca, etc.) with descriptions
- 🌋 **Seismic Region Classification** — Maps events to 15 global seismic regions (Ring of Fire segments, Mediterranean Belt, Himalayan Belt, etc.)
- 📊 **Intensity Interpretation** — Uses MMI/CDI data or estimates shaking intensity from magnitude and depth
- ⚠️ **Risk Scoring (0-100)** — Multi-factor risk assessment: magnitude, depth, tsunami potential, alert level, and significance
- 🏷️ **Depth Classification** — Categories from "Very Shallow" to "Very Deep (300+ km)"
- 📈 **Statistical Summary** — Regional distribution, plate activity, risk levels, and intensity breakdowns

### 📥 Input Parameters

| Parameter | Type | Required | Description |
|---|---|---|---|
| `minMagnitude` | number | ❌ | Minimum magnitude (default 4.5 for significant events) |
| `maxMagnitude` | number | ❌ | Maximum magnitude ceiling |
| `startTime` | string | ❌ | ISO 8601 start time (default: 7 days ago) |
| `endTime` | string | ❌ | ISO 8601 end time (default: now) |
| `minDepth` | number | ❌ | Minimum depth in km |
| `maxDepth` | number | ❌ | Maximum depth in km |
| `region` | string | ❌ | Bounding box: latMin,lonMin,latMax,lonMax |
| `reviewStatus` | select | ❌ | Filter: All, Reviewed, Automatic |
| `includeTsunami` | boolean | ❌ | Only events with tsunami warnings |
| `maxResults` | integer | ❌ | Max events (1-5000, default 100) |
| `includeNearbyCities` | boolean | ❌ | Look up nearest populated places |

### 📤 Example Input

```json
{
  "minMagnitude": 5.0,
  "startTime": "2026-07-01",
  "maxResults": 50,
  "reviewStatus": "reviewed"
}
```

### 📊 Example Output

```
============================================================================================
  USGS EARTHQUAKE REPORT — NORMALIZED WITH RISK ASSESSMENT
============================================================================================
  Period:        2026-07-01 to 2026-08-03
  Min Magnitude: M5.0
  Total Events:  50
  Magnitudes:   M5.0–M7.2 (avg M5.6)
  Tsunami Warnings: 3 (6.0%)
  Reviewed:      94.0%

  Top Seismic Regions                                   Count
  ────────────────────────────────────────────────────────────
  Ring of Fire — West Coast Americas                        15
  Ring of Fire — Indonesia                                  12
  Ring of Fire — Western Pacific                             8

  Top Tectonic Plates                                    Count
  ────────────────────────────────────────────────────────────
  Pacific Plate                                             18
  Indo-Australian Plate                                     10
  Nazca Plate                                                7

  Risk Distribution                                      Count
  ────────────────────────────────────────────────────────────
  Critical                                                   2
  High                                                      12
  Moderate                                                  22
  Low                                                       11
  Minimal                                                    3

  Earthquake Details (first 10):
  ────────────────────────────────────────────────────────────
    #    Mag  Place                          Region                 Risk    Depth
  ───  ─────  ────────────────────────────── ────────────────────── ──────── ────────────
    1    7.2  45 km SSE of Atka, Alaska      Ring of Fire — Alaska  Critical Very Shallow
    2    6.8  12 km SW of Port Vila, Vanuatu Ring of Fire — Oceania High     Shallow
    3    6.5  78 km NE of Finschhafen, PNG   Ring of Fire — Western  High     Intermediate
```

Each dataset item includes:

- Original fields: magnitude, place, time, depth, coordinates, URL
- `tectonicPlate` / `plateDescription` — tectonic classification
- `seismicRegion` — geographic seismic belt
- `shakeIntensity` / `intensityLabel` — interpreted shaking level
- `riskScore` (0-100) / `riskLevel` — composite risk assessment
- `depthCategory` — depth classification
- `tsunamiWarning`, `alertLevel`, `significance`

### 🎯 Use Cases

- **Insurance & Reinsurance** — Risk modeling, exposure assessment, CAT bond pricing
- **Emergency Management** — Real-time situational awareness, resource allocation
- **Seismology Research** — Global seismic pattern analysis, plate boundary studies
- **News & Media** — Automated earthquake reporting with geological context
- **Supply Chain / Logistics** — Disruption risk assessment for global operations
- **Real Estate / Construction** — Seismic hazard assessment for property portfolios
- **AI/ML Training** — Clean, classified seismic datasets for predictive models

### 🔗 Data Source

[USGS Earthquake Hazards Program](https://earthquake.usgs.gov/) — Public domain, no API key required. Updated continuously with real-time data.

# Actor input Schema

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

Minimum earthquake magnitude (1.0-10.0). Default 4.5 (significant earthquakes).

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

Maximum earthquake magnitude. Leave for no upper limit.

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

ISO 8601 start time (e.g. 2026-07-01). Default: 7 days ago.

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

ISO 8601 end time. Default: now.

## `minDepth` (type: `number`):

Minimum depth in km. Negative = above surface.

## `maxDepth` (type: `number`):

Maximum depth in km.

## `region` (type: `string`):

Geographic region bounding box as latMin,lonMin,latMax,lonMax or a named region. Leave empty for global.

## `reviewStatus` (type: `string`):

Filter by review status: All, Reviewed (human-verified), or Automatic (machine-generated).

## `includeTsunami` (type: `boolean`):

Only return events with tsunami warnings

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

Maximum number of earthquakes to retrieve (1-5000)

## `includeNearbyCities` (type: `boolean`):

Look up nearest populated places for each earthquake

## Actor input object example

```json
{
  "minMagnitude": 4.5,
  "reviewStatus": "",
  "includeTsunami": false,
  "maxResults": 100,
  "includeNearbyCities": true
}
```

# Actor output Schema

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

Full normalized earthquake records as JSON dataset items.

## `summary` (type: `string`):

Human-readable summary table with key metrics.

## `stats` (type: `string`):

Machine-readable statistics for dashboards and workflows.

# 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("wakey7dev/usgs-earthquake-normalizer").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("wakey7dev/usgs-earthquake-normalizer").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 wakey7dev/usgs-earthquake-normalizer --silent --output-dataset

```

## MCP server setup

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

```

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/C6hdZMYmVICxefrrt/builds/sVONWpsddRZYONLEa/openapi.json
