# USGS Real-Time Earthquake Feed

> USGS Real-Time Earthquake Feed is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns recent earthquakes from the USGS real-time catalog filtered by magnitude, time range, location radius, and PAGER alert level

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/geo/quakes
- 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/usgs-real-time-earthquake-feed-7fbd555e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2pbHnGXcdCbwNw2XbFtY3

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 usgs-real-time-earthquake-feed-7fbd555e
```

Example prompt: Show me all earthquakes above magnitude 5.0 within 800 km of Tokyo (latitude 35.68, longitude 139.69) between July 1 and July 13, 2026, up to 20 results — flag any with a yellow or higher PAGER alert level.

## When to prefer this

Use this endpoint when you need structured, normalized earthquake data from the authoritative USGS real-time catalog, especially when filtering by magnitude threshold, geographic radius around a point, time window, or PAGER civil alert level. Prefer over raw USGS GeoJSON API when you want a pre-normalized response without parsing GeoJSON feature collections yourself. Best for agent workflows that need to monitor seismic hazards, alert on significant earthquakes, or enrich location-aware disaster-risk analyses.

## Known failure modes

- No earthquakes match the filter criteria — returns an empty list
- Invalid ISO 8601 date format for starttime/endtime — returns a 400 error
- latitude/longitude provided without maxradiuskm or vice versa — geographic filter may be ignored or error
- limit exceeds 100 — capped or rejected
- USGS upstream feed temporarily unavailable — may return 502 or stale cached data

## How this service works

Latest earthquakes from the USGS real-time catalog (public domain, updated within minutes). Query: ?minmagnitude=4.5&limit=20; optional starttime/endtime (ISO 8601), geographic filter latitude+longitude+maxradiuskm, alertlevel=green|yellow|orange|red (PAGER). Returns a normalized list: magnitude, place, UTC time, coordinates, depth, tsunami flag, significance. 5 min cache.

## Output

A normalized list of recent earthquakes, each with magnitude, descriptive place name, UTC occurrence time, geographic coordinates (lat/lon), depth in km, a boolean tsunami flag, and a significance score — filtered to match the query parameters, with up to 100 results from a 5-minute-cached USGS feed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "default": 20,
       "maximum": 100,
       "minimum": 1
      },
      "endtime": {
       "type": "string",
       "description": "ISO 8601, e.g. 2026-07-13"
      },
      "latitude": {
       "type": "number",
       "description": "Center of radius filter"
      },
      "longitude": {
       "type": "number",
       "description": "Center of radius filter"
      },
      "starttime": {
       "type": "string",
       "description": "ISO 8601, e.g. 2026-07-01"
      },
      "alertlevel": {
       "enum": [
        "green",
        "yellow",
        "orange",
        "red"
       ],
       "type": "string"
      },
      "maxradiuskm": {
       "type": "number",
       "description": "Radius in km around latitude/longitude"
      },
      "minmagnitude": {
       "type": "number",
       "default": 4.5,
       "maximum": 10,
       "minimum": -1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/usgs-real-time-earthquake-feed-7fbd555e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
