# fittings USGS Earthquake Events

> fittings USGS Earthquake Events is a paid API for AI agents from fittings.sh, paid per call via x402, $0.00698/call, status unknown (last checked 2026-09-14).

Fetches recent earthquake events from the USGS catalog filtered by time window, minimum magnitude, and optional geographic radius around a coordinate.

## Facts

- Endpoint: GET https://fittings.sh/v1/quake/usgs-events
- Price: $0.00698/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-usgs-earthquake-events-eff25869
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5GcHeOJBHwNtJTFb5Kh-h

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 fittings-usgs-earthquake-events-eff25869
```

Example prompt: Can you pull the most recent earthquakes from USGS from the past 7 days within 500 km of Tokyo (35.6762° N, 139.6503° E) with a minimum magnitude of 5.0, and give me up to 50 results?

## When to prefer this

Use this endpoint when you need structured, filtered access to USGS earthquake catalog data without setting up a direct USGS API integration. It is ideal for agents that need geospatially bounded or magnitude-filtered seismic event lookups with a simple REST call, especially when combined with other fittings.sh geospatial endpoints like elevation or flood zone data.

## Known failure modes

- Missing or invalid lat/lon when radiuskm is provided — all three must be supplied together
- radiuskm exceeds 20000 km maximum
- starttime or endtime not in ISO date format
- limit outside 1-200 range returns an error or default
- No events matching filters returns an empty result set
- USGS upstream service temporarily unavailable

## How this service works

Earthquakes from the USGS catalog by time window, minimum magnitude and optional radius around a point, most recent first.

## Output

A list of earthquake events from the USGS catalog sorted most-recent-first, each including magnitude, location description, coordinates, depth, and event timestamp, filtered to the specified time window, magnitude range, and optional geographic radius.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "lat": {
       "type": "number",
       "description": "Center latitude, requires lon and radiuskm"
      },
      "lon": {
       "type": "number",
       "description": "Center longitude, requires lat and radiuskm"
      },
      "limit": {
       "type": "number",
       "description": "1-200, default 20"
      },
      "endtime": {
       "type": "string",
       "description": "ISO date, default today"
      },
      "radiuskm": {
       "type": "number",
       "description": "Search radius in km, up to 20000"
      },
      "starttime": {
       "type": "string",
       "description": "ISO date, default 7 days ago"
      },
      "maxmagnitude": {
       "type": "number",
       "description": "Maximum magnitude"
      },
      "minmagnitude": {
       "type": "number",
       "description": "Minimum magnitude, default 4.5"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-usgs-earthquake-events-eff25869/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
