# fittings Recent Earthquakes

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

Returns recent earthquakes above a magnitude threshold worldwide or within a radius of a coordinate, sorted newest first.

## Facts

- Endpoint: GET https://fittings.sh/v1/quake/recent
- Price: $0.003995/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-recent-earthquakes-77e897ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5GnHTkjdwIFD2mDhIKimJ

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-recent-earthquakes-77e897ac
```

Example prompt: Show me all earthquakes magnitude 4.0 or higher within 300 km of Los Angeles over the last 48 hours, up to 50 results.

## When to prefer this

Choose this endpoint when you need real-time or near-real-time seismic data with flexible geographic and magnitude filtering. It is especially suitable for agents monitoring seismic activity near specific coordinates, building earthquake alert systems, or providing situational awareness after a seismic event. Prefer it over static datasets when recency (last N hours) is important.

## Known failure modes

- Invalid latitude/longitude values outside WGS-84 range return a 400 error
- radiusKm outside 1–20000 range returns a validation error
- hours outside 1–168 range returns a validation error
- minMagnitude outside -1 to 10 range returns a validation error
- No earthquakes matching the criteria returns an empty list
- Payment failure or insufficient USDC balance returns a 402 error

## How this service works

Earthquakes above a magnitude threshold in the last N hours, worldwide or within a radius of a point, newest first.

## Output

An ordered list of earthquake events (newest first), each with magnitude, timestamp, geographic coordinates, depth, and location description. The number of results is bounded by the limit parameter (default 20, max 200).

## 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": {
      "hours": {
       "type": "number",
       "description": "Lookback window, 1-168, default 24"
      },
      "limit": {
       "type": "number",
       "description": "1-200, default 20"
      },
      "latitude": {
       "type": "number",
       "description": "Optional circle centre, with longitude and radiusKm"
      },
      "radiusKm": {
       "type": "number",
       "description": "1-20000"
      },
      "longitude": {
       "type": "number"
      },
      "minMagnitude": {
       "type": "number",
       "description": "Lower bound, -1 to 10, default 2.5"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-recent-earthquakes-77e897ac/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)
