# USGS Earthquake Feed

> USGS Earthquake Feed is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns recent earthquakes from USGS for a specified time window and minimum magnitude, including location, magnitude, depth, tsunami flag, and felt-report count.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/earthquakes-recent
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-7cadaebf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8GjWcSlrUosIGlhuDPtQp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-deployer-x402-deployer-workers-dev-7cadaebf -d '<json body>'
```

Example prompt: Pull the USGS earthquake feed for the past week and show me all quakes with magnitude 5 or higher, including their location, depth, and whether any triggered a tsunami warning.

## When to prefer this

Use this endpoint when you need structured, up-to-date earthquake data from the authoritative USGS source without setting up your own USGS GeoJSON feed parsing. Ideal for agents monitoring seismic activity, building disaster-awareness features, or answering user questions about recent earthquakes globally. Prefer this over raw USGS API access when you want a simple POST interface with clean per-event fields already parsed out.

## Known failure modes

- Invalid time window value returns an error (valid options: hour, day, week, month)
- Invalid or out-of-range magnitude threshold may return empty results or an error
- USGS upstream feed unavailable causes a service error
- Malformed POST body causes a 400 bad request
- No earthquakes matching the filter returns an empty list

## How this service works

Earthquake feed. Returns recent earthquakes from USGS for any time window (hour, day, week, month) above a magnitude threshold. Includes location, magnitude, depth, tsunami flag. Each quake includes magnitude + type, depth (km), place, ISO8601 time, lat/lon, tsunami flag, USGS event URL, and felt-report count when available. Wraps USGS GeoJSON summary feeds — public domain, no auth.

## Output

A list of recent earthquake events from the USGS GeoJSON summary feed, each including magnitude and type, depth in kilometers, place description, ISO8601 timestamp, latitude/longitude coordinates, tsunami flag, USGS event URL, and felt-report count where available.

## Example request

```json
{
 "input": {
  "body": {
   "time_range": "week",
   "min_magnitude": 5
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "time_range": {
       "type": "string",
       "enum": [
        "hour",
        "day",
        "week",
        "month"
       ],
       "description": "Time window for the feed. Default 'day'."
      },
      "min_magnitude": {
       "type": "number",
       "description": "Lower bound on quake magnitude (Richter/moment). Default 2.5."
      },
      "bounds": {
       "type": "object",
       "description": "Optional geographic bounding box { north, south, east, west } in decimal degrees. Antimeridian-crossing boxes (west > east) supported.",
       "properties": {
        "north": {
         "type": "number"
        },
        "south": {
         "type": "number"
        },
        "east": {
         "type": "number"
        },
        "west": {
         "type": "number"
        }
       }
      }
     },
     "required": []
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "integer"
      },
      "range": {
       "type": "string"
      },
      "earthquakes": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "type": "string"
         },
         "magnitude": {
          "type": "number"
         },
         "magnitude_type": {
          "type": "string"
         },
         "depth_km": {
          "type": "number"
         },
         "place": {
          "type": "string"
         },
         "time": {
          "type": "string"
         },
         "latitude": {
          "type": "number"
         },
         "longitude": {
          "type": "number"
         },
         "tsunami": {
          "type": "boolean"
         },
         "url": {
          "type": "string"
         },
         "felt": {
          "type": "integer"
         }
        }
       }
      },
      "s
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-7cadaebf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
