# Earthquake Monitor - USGS, EMSC & AFAD Multi-Network (`gmpsignal/earthquake-monitor-usgs-emsc-afad`) Actor

Queries USGS, EMSC, and AFAD seismic catalogs simultaneously, merges and deduplicates reports of the same physical earthquake, and outputs cross-network agreement metrics (confirmedBy, magnitudeSpread, timeSpreadSeconds).

- **URL**: https://apify.com/gmpsignal/earthquake-monitor-usgs-emsc-afad.md
- **Developed by:** [GMPSignal](https://apify.com/gmpsignal) (community)
- **Categories:** Automation, Developer tools, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 earthquake events

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 Monitor — USGS + EMSC + AFAD, merged and de-duplicated

Most earthquake scrapers give you one catalog. This one queries **several seismic networks at once**, recognises when they are describing the *same* physical event, and returns a single clean row per earthquake with a cross-network agreement score.

That means you can:

- suppress single-network false alarms (`onlyMultiSource`),
- see how much the networks disagree on magnitude (`magnitudeSpread`) and origin time (`timeSpreadSeconds`),
- keep every raw report in the `reports` array for auditing.

### Sources

| Network | Coverage | Notes |
|---|---|---|
| **USGS** | Global | FDSN event service, authoritative for the Americas and global M4.5+ |
| **EMSC** | Euro-Mediterranean + global | Seismic Portal FDSN service, fast for European events |
| **AFAD** | Turkey and surroundings | Dense local network, best magnitude for Anatolian events |

All three are public catalogs — no API key, no account.

### Output

```json
{
  "time": "2026-08-18T03:41:12.000Z",
  "magnitude": 4.6,
  "magType": "mb",
  "depthKm": 10.0,
  "place": "WESTERN TURKEY",
  "latitude": 38.412,
  "longitude": 27.905,
  "primarySource": "USGS",
  "confirmedBy": 3,
  "reportedBy": ["USGS", "EMSC", "AFAD"],
  "magnitudeMin": 4.4,
  "magnitudeMax": 4.7,
  "magnitudeSpread": 0.3,
  "timeSpreadSeconds": 4,
  "tsunamiFlag": false,
  "url": "https://earthquake.usgs.gov/earthquakes/eventpage/...",
  "reports": [ { "source": "USGS", "sourceId": "...", "magnitude": 4.6 } ]
}
```

### Input

- **sources** — any of `usgs`, `emsc`, `afad` (default: USGS + EMSC + AFAD)
- **hours** — look-back window, 1–720 (default 24)
- **minMagnitude** — magnitude floor (default 2.5)
- **place** — substring filter on the region name (`Turkey`, `California`, `Greece`…)
- **bounding box** — `minLatitude` / `maxLatitude` / `minLongitude` / `maxLongitude`
- **onlyMultiSource** — keep only events reported by 2+ networks
- **matchWindowSeconds** / **matchRadiusKm** — how strict the de-duplication is (default 90 s / 150 km)

### Use cases

- **Alerting:** schedule every 5 minutes and notify when `magnitude` crosses your threshold in your bounding box
- **Insurance & risk:** consistent event history across networks without manual reconciliation
- **Newsrooms:** confirm an event before publishing — `confirmedBy >= 2` is a fast sanity check
- **Research and dashboards:** one normalized schema instead of three different FDSN dialects

### AI Agent, MCP Server & LLM / RAG Integration

This Actor is **AI-Agent and Model Context Protocol (MCP) ready**. Connect it directly to **Claude Desktop, Cursor, Windsurf, LangChain, CrewAI, n8n, Make, and Clay** via the official Apify MCP Server:

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "gmpsignal/earthquake-monitor-usgs-emsc-afad"
      ],
      "env": {
        "APIFY_TOKEN": "<YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}
```

- **Hosted MCP Endpoint:** `https://mcp.apify.com?actors=gmpsignal/earthquake-monitor-usgs-emsc-afad`
- **Deterministic JSON Output:** Structured dataset views designed for zero-hallucination RAG pipelines, autonomous AI agents, and automated B2B workflows.

### Related Actors by GMPSignal

| Category | Actor | Apify Slug |
|---|---|---|
| **Crypto & DeFi** | DEX Token Scanner & Rugpull Security Auditor | `gmpsignal/dex-token-scanner-security-auditor` |
| **Crypto & Quant** | Crypto Order Book, Slippage & Funding Arbitrage | `gmpsignal/crypto-orderbook-arbitrage-scanner` |
| **Web3 Compliance** | Multi-Chain Wallet Portfolio & AML Risk Screener | `gmpsignal/multichain-wallet-aml-risk-screener` |
| **DeFi Analytics** | DeFi Yield Farming, Protocol TVL & Stablecoin Monitor | `gmpsignal/defi-yield-tvl-stablecoin-monitor` |
| **Prediction Markets** | Polymarket, Kalshi & Manifold Prediction Markets API | `gmpsignal/prediction-markets-polymarket-kalshi-scanner` |
| **B2B Lead Enrichment** | B2B Domain Tech Stack, Contacts, DNS & SSL Enricher | `gmpsignal/b2b-company-techstack-contacts-enricher` |
| **Corporate KYB** | Global Corporate KYB, GLEIF LEI & Sanctions Screen | `gmpsignal/global-sanctions-pep-gleif-kyb-screener` |
| **Cybersecurity** | CVE Vulnerability, CISA KEV, EPSS & Exploit Scanner | `gmpsignal/cyber-cve-kev-epss-vulnerability-scanner` |
| **VC & Startups** | YC Startups, GitHub Trending & HN DealFlow Radar | `gmpsignal/startup-vc-dealflow-yc-github-radar` |
| **Science & R\&D** | OpenAlex Scientific Papers, Citations & R\&D Monitor | `gmpsignal/academic-patent-research-citation-intelligence` |

# Actor input Schema

## `sources` (type: `array`):

Which catalogs to query. USGS is global, EMSC is Euro-Mediterranean plus global, AFAD covers Turkey and its surroundings.

## `hours` (type: `integer`):

How far back to query, in hours. 24 = last day, 168 = last week. Maximum 720.

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

Only return events at or above this magnitude. Lower values return far more events.

## `place` (type: `string`):

Optional text filter on the region name, e.g. "California", "Turkey", "Greece". Case-insensitive substring match.

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

Optional bounding box: southern edge in decimal degrees. Set all four box fields to use it.

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

Optional bounding box: northern edge in decimal degrees.

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

Optional bounding box: western edge in decimal degrees.

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

Optional bounding box: eastern edge in decimal degrees.

## `onlyMultiSource` (type: `boolean`):

Return only events that more than one seismic network reported - useful to suppress single-network false alarms.

## `matchWindowSeconds` (type: `integer`):

Two reports from different networks are treated as the same quake if their origin times differ by less than this.

## `matchRadiusKm` (type: `integer`):

Two reports from different networks are treated as the same quake if their epicenters are closer than this.

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

Maximum number of merged events to store in the dataset.

## `proxy` (type: `object`):

Optional proxy. The public catalogs are reachable without one.

## Actor input object example

```json
{
  "sources": [
    "usgs",
    "emsc",
    "afad"
  ],
  "hours": 24,
  "minMagnitude": "2.5",
  "onlyMultiSource": false,
  "matchWindowSeconds": 90,
  "matchRadiusKm": 150,
  "maxItems": 200
}
```

# Actor output Schema

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

No description

# 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 = {
    "sources": [
        "usgs",
        "emsc",
        "afad"
    ],
    "hours": 24,
    "minMagnitude": "2.5",
    "matchWindowSeconds": 90,
    "matchRadiusKm": 150,
    "maxItems": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("gmpsignal/earthquake-monitor-usgs-emsc-afad").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 = {
    "sources": [
        "usgs",
        "emsc",
        "afad",
    ],
    "hours": 24,
    "minMagnitude": "2.5",
    "matchWindowSeconds": 90,
    "matchRadiusKm": 150,
    "maxItems": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("gmpsignal/earthquake-monitor-usgs-emsc-afad").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 '{
  "sources": [
    "usgs",
    "emsc",
    "afad"
  ],
  "hours": 24,
  "minMagnitude": "2.5",
  "matchWindowSeconds": 90,
  "matchRadiusKm": 150,
  "maxItems": 200
}' |
apify call gmpsignal/earthquake-monitor-usgs-emsc-afad --silent --output-dataset

```

## MCP server setup

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

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/NxjwKjYkmLEQW3agc/builds/e4MGT84ZoN8WDUQEo/openapi.json
