# fittings Nearby Earthquakes

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

Returns USGS earthquake catalog events within a configurable radius and time window around a geographic point, with magnitude, depth, distance, and time details.

## Facts

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

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-nearby-earthquakes-6002ae76
```

Example prompt: Show me all earthquakes magnitude 2.5 or stronger within 150 km of Los Angeles (34.0522, -118.2437) over the last 14 days, up to 50 results.

## When to prefer this

Use this endpoint when you need structured, parameterized access to USGS earthquake data for a specific geographic point and time window — especially when you need distance and depth included alongside magnitude. Prefer it over raw USGS API calls when you want a clean, pay-per-call interface without API key management. Best when combining with other fittings.sh geospatial endpoints like flood zones or elevation for multi-hazard assessments.

## Known failure modes

- Missing required lat or lon parameters returns an error
- Radius exceeding 1000 km or days exceeding 90 may be rejected or clamped
- No earthquakes in the area/time window returns an empty list
- Invalid coordinate values (out of range) may cause a bad request error
- Network timeouts if the USGS upstream is slow

## How this service works

Earthquakes from the USGS catalog within a radius and time window of a point, with magnitude, depth, distance and time.

## Output

A list of earthquake events from the USGS catalog, each including magnitude, depth (km), distance from the queried point (km), and event timestamp. Results are filtered by the specified radius, time window, and optional magnitude threshold, capped at the requested limit.

## 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": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number"
      },
      "lon": {
       "type": "number"
      },
      "days": {
       "type": "number",
       "description": "Days back from now, up to 90. Default 7."
      },
      "limit": {
       "type": "number",
       "description": "Events returned, up to 100. Default 20."
      },
      "radiusKm": {
       "type": "number",
       "description": "Search radius, up to 1000. Default 100."
      },
      "minMagnitude": {
       "type": "number",
       "description": "Optional lower bound, -1 to 10"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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