# Toll402 Earthquakes Nearby

> Toll402 Earthquakes Nearby is a paid API for AI agents from toll402.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-29).

Returns a list of recent earthquakes near a given geographic coordinate, filtered by radius and minimum magnitude

## Facts

- Endpoint: POST https://toll402.dev/v1/t/earthquakes_nearby?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toll402-earthquakes-nearby-55bd852a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pRsyrfj8mVxINvH-g3Ifm

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 toll402-earthquakes-nearby-55bd852a -d '<json body>'
```

Example prompt: What earthquakes of magnitude 4 or higher have occurred within 150km of Los Angeles (latitude 34.05, longitude -118.25) recently?

## When to prefer this

Use this endpoint when you need to programmatically query earthquake data near a specific GPS coordinate without signing up for a separate seismic API. It is ideal for AI agents that need pay-per-call seismic lookups via USDC (x402) or prepaid credits, without managing a separate USGS or seismic data subscription.

## Known failure modes

- Invalid latitude (outside -90 to 90) or longitude (outside -180 to 180) returns a validation error
- radius_km below 1 or above 20000 returns a validation error
- Payment failure via x402 if USDC balance is insufficient
- No earthquakes found in range returns an empty list rather than an error
- Network timeout if upstream seismic data source is slow

## How this service works

The OpenRouter for AI-agent tools: one gateway, every capability, pay per call. Built-in tools, agent-forged tools, a global verified business directory, 2,788 provider API endpoints (SEO, social, enrichment, ads, market data, AI generation) and aggregated x402 services. Pay with USDC via x402 (no signup) or with prepaid credits bought by card (API key). Charged only on success.

## Output

Returns a JSON object with ok:true and a list of nearby earthquake events, each likely including magnitude, location coordinates, depth, and timestamp, filtered by the specified radius and minimum magnitude threshold.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "latitude",
      "longitude"
     ],
     "properties": {
      "latitude": {
       "type": "number",
       "maximum": 90,
       "minimum": -90
      },
      "longitude": {
       "type": "number",
       "maximum": 180,
       "minimum": -180
      },
      "radius_km": {
       "type": "number",
       "default": 100,
       "maximum": 20000,
       "minimum": 1
      },
      "min_magnitude": {
       "type": "number",
       "default": 0
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toll402-earthquakes-nearby-55bd852a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toll402.dev](https://www.zero.xyz/host/toll402.dev/llms.txt)
