# Global Hazards: Earthquakes Near Coordinate

> Global Hazards: Earthquakes Near Coordinate is a paid API for AI agents from global-hazards.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Returns earthquakes within a configurable radius of any lat/lon worldwide, including nearest, largest, counts by size and depth class, with distances.

## Facts

- Endpoint: GET https://global-hazards.x402tookit.com/quakes-near?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/global-hazards-earthquakes-near-coordinate-25db12c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y7b3-fNiZhLGd3Uo3ZVrB

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 global-hazards-earthquakes-near-coordinate-25db12c0
```

Example prompt: Can you pull all earthquakes magnitude 5 or higher within 400 km of Tokyo (35.6762° N, 139.6503° E) over the last 90 days and tell me which was the largest and which was closest?

## When to prefer this

Choose this endpoint when you need a geographically centered earthquake query — i.e., 'what happened near this specific point' — with rich per-event detail including distances, directions, depth classes, PAGER alerts, and tsunami flags. Prefer this over the global feed endpoint when the user's question is location-anchored rather than time- or magnitude-anchored globally. Ideal for risk assessments, disaster situational awareness, infrastructure due diligence, or travel safety checks tied to a specific coordinate.

## Known failure modes

- Missing required lat or lon parameters returns a 400 error
- radiusKm outside 10–2000 km range returns a validation error
- days outside 1–3650 range returns a validation error
- minMagnitude outside 1–10 returns a validation error
- No earthquakes found in the specified window returns an empty quakes array
- USGS upstream data source unavailable may result in a 503 or empty response
- Payment failure (x402) results in a 402 response requiring USDC payment

## How this service works

Earthquakes within a radius of any coordinate worldwide: nearest, largest, counts by size and depth class, with distances.

## Output

Returns a structured JSON object containing: a full list of earthquakes matching the query (each with id, time, place, magnitude, magnitude type, depth in km, depth class, distance in km, direction from input point, PAGER alert level, tsunami flag, felt reports, significance score, max reported and instrumental intensities, and USGS URL), plus summary fields for the nearest earthquake, the largest earthquake, counts grouped by magnitude and depth class, the data source, and the timestamp the data was fetched.

## 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",
       "description": "Latitude"
      },
      "lon": {
       "type": "number",
       "description": "Longitude"
      },
      "days": {
       "type": "integer",
       "description": "Look back 1 to 3650 days (default 365); the window starts on that UTC date"
      },
      "radiusKm": {
       "type": "integer",
       "description": "Radius 10 to 2000 km (default 300)"
      },
      "minMagnitude": {
       "type": "number",
       "description": "Minimum magnitude, 1 to 10 (default 4.5)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "lat": {
       "type": [
        "null",
        "number"
       ]
      },
      "lon": {
       "type": [
        "null",
        "number"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "quakes": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "type": [
           "null",
           "string"
          ]
         },
         "url": {
          "type": [
           "null",
           "string"
          ]
         },
         "time": {
          "type": [
           "null",
           "string"
          ]
         },
         "place": {
          "type": [
           "null",
           "string"
          ]
         },
         "depthKm": {
          "type": [
           "null",
           "number"
          ]
         },
         "latitude": {
          "type": [
           "null",
           "number"
          ]
         },
         "direction": {
          "type": [
           "null",
           "string"
          ]
         },
         "longitude": {
          "type": [
           "null",
           "number"
        
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/global-hazards-earthquakes-near-coordinate-25db12c0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from global-hazards.x402tookit.com](https://www.zero.xyz/host/global-hazards.x402tookit.com/llms.txt)
