# USGS Earthquake Events & GeoJSON Data API (`koalastuff/usgs-earthquake-monitor`) Actor

Search USGS earthquake events by time, magnitude, depth, review status, alert level, or map bounds. Export normalized events as GeoJSON data.

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

## Pricing

from $1.00 / 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.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use 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 Earthquake Monitor & GeoJSON Export

Search USGS earthquake events by time, magnitude, depth, review status, alert level, or map bounds. Export normalized events as GeoJSON data.

This independent Actor is not endorsed by USGS. It uses earthquake data only, not third-party photographs or graphics.

### Try this first

Start with the example input below to retrieve recent earthquakes of magnitude 4 or greater. Results are written to the default dataset with coordinates, review fields, alert data, and official links.

[![USGS Earthquake Monitor & GeoJSON Export icon](https://api.apify.com/v2/key-value-stores/JoHkELuyqjk6waZJX/records/icon-usgs-earthquake-monitor.png)](https://apify.com/koalastuff/usgs-earthquake-monitor)

#### Example output

[![Example output preview](https://api.apify.com/v2/key-value-stores/JoHkELuyqjk6waZJX/records/preview-usgs-earthquake-monitor.svg)](https://apify.com/koalastuff/usgs-earthquake-monitor)

This preview is generated from a checked-in official-source fixture. It shows the normalized output shape without inventing live demand or results.

### Input and output

Search 1 to 365 days, magnitude and depth ranges, optional latitude/longitude bounds, review status, alert level, and up to 20,000 events. Each dataset row contains the stable event ID, title, place, magnitude, UTC timestamps, coordinates, depth, review and impact fields, tsunami flag, official links, request URL, and attribution.

```json
{"daysBack":7,"minMagnitude":4,"reviewStatus":"reviewed","maxResults":100}
````

### Reliability and limits

- Official USGS FDSN Event Web Service and GeoJSON only; no browser, proxy, account, key, or paid service.
- One bounded request per run, the official 20,000-event maximum, stable-ID deduplication, field coverage, and explicit empty results.
- Earthquake parameters can be revised as networks review events. Use `updatedAt` and the official event page for current scientific information.
- This is a data tool, not an emergency-warning service. Follow local authorities for safety instructions.

### Pricing

- Actor start: USD 0.00005
- Normalized earthquake event: USD 0.001

A two-result Apify smoke run on 256 MB used USD 0.0001133494 of platform resources and completed in 4.284 seconds. The Actor is publicly available with the pricing above.

### Source and reuse

Source: <https://earthquake.usgs.gov/fdsnws/event/1/>. USGS-authored data are in the U.S. Public Domain. Every row states: “Source of earthquake data: U.S. Geological Survey.”

### Support

Report reproducible problems with the input, run link, event ID, and expected field.

### Related Actors

- [World Bank WDI Indicator Explorer](https://apify.com/koalastuff/world-bank-wdi-explorer) for geographic and development data.
- [EU Safety Gate Product Alert Monitor](https://apify.com/koalastuff/eu-safety-gate-alert-monitor) for official product-alert data.

# Actor input Schema

## `daysBack` (type: `integer`):

Rolling UTC event window.

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

Optional minimum preferred magnitude.

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

Optional maximum preferred magnitude.

## `minDepthKm` (type: `number`):

Optional minimum event depth.

## `maxDepthKm` (type: `number`):

Optional maximum event depth.

## `minLatitude` (type: `number`):

Optional bounding-box south edge.

## `maxLatitude` (type: `number`):

Optional bounding-box north edge.

## `minLongitude` (type: `number`):

Optional bounding-box west edge.

## `maxLongitude` (type: `number`):

Optional bounding-box east edge.

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

Optional automatic or reviewed event status.

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

Optional exact green, yellow, orange, or red alert level.

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

Hard output and billing limit.

## Actor input object example

```json
{
  "daysBack": 7,
  "minMagnitude": 4,
  "maxResults": 100
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("koalastuff/usgs-earthquake-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("koalastuff/usgs-earthquake-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 koalastuff/usgs-earthquake-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=koalastuff/usgs-earthquake-monitor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "USGS Earthquake Events & GeoJSON Data API",
        "description": "Search USGS earthquake events by time, magnitude, depth, review status, alert level, or map bounds. Export normalized events as GeoJSON data.",
        "version": "0.1",
        "x-build-id": "DehjXqV2KpaUnLA6U"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/koalastuff~usgs-earthquake-monitor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-koalastuff-usgs-earthquake-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/koalastuff~usgs-earthquake-monitor/runs": {
            "post": {
                "operationId": "runs-sync-koalastuff-usgs-earthquake-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/koalastuff~usgs-earthquake-monitor/run-sync": {
            "post": {
                "operationId": "run-sync-koalastuff-usgs-earthquake-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "daysBack": {
                        "title": "Days back",
                        "minimum": 1,
                        "maximum": 365,
                        "type": "integer",
                        "description": "Rolling UTC event window.",
                        "default": 7
                    },
                    "minMagnitude": {
                        "title": "Minimum magnitude",
                        "minimum": -2,
                        "maximum": 10,
                        "type": "number",
                        "description": "Optional minimum preferred magnitude.",
                        "default": 4
                    },
                    "maxMagnitude": {
                        "title": "Maximum magnitude",
                        "minimum": -2,
                        "maximum": 10,
                        "type": "number",
                        "description": "Optional maximum preferred magnitude."
                    },
                    "minDepthKm": {
                        "title": "Minimum depth km",
                        "minimum": -100,
                        "maximum": 1000,
                        "type": "number",
                        "description": "Optional minimum event depth."
                    },
                    "maxDepthKm": {
                        "title": "Maximum depth km",
                        "minimum": -100,
                        "maximum": 1000,
                        "type": "number",
                        "description": "Optional maximum event depth."
                    },
                    "minLatitude": {
                        "title": "Minimum latitude",
                        "minimum": -90,
                        "maximum": 90,
                        "type": "number",
                        "description": "Optional bounding-box south edge."
                    },
                    "maxLatitude": {
                        "title": "Maximum latitude",
                        "minimum": -90,
                        "maximum": 90,
                        "type": "number",
                        "description": "Optional bounding-box north edge."
                    },
                    "minLongitude": {
                        "title": "Minimum longitude",
                        "minimum": -360,
                        "maximum": 360,
                        "type": "number",
                        "description": "Optional bounding-box west edge."
                    },
                    "maxLongitude": {
                        "title": "Maximum longitude",
                        "minimum": -360,
                        "maximum": 360,
                        "type": "number",
                        "description": "Optional bounding-box east edge."
                    },
                    "reviewStatus": {
                        "title": "Review status",
                        "enum": [
                            "automatic",
                            "reviewed"
                        ],
                        "type": "string",
                        "description": "Optional automatic or reviewed event status."
                    },
                    "alertLevel": {
                        "title": "PAGER alert level",
                        "enum": [
                            "green",
                            "yellow",
                            "orange",
                            "red"
                        ],
                        "type": "string",
                        "description": "Optional exact green, yellow, orange, or red alert level."
                    },
                    "maxResults": {
                        "title": "Maximum results",
                        "minimum": 1,
                        "maximum": 20000,
                        "type": "integer",
                        "description": "Hard output and billing limit.",
                        "default": 100
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
