# USGS Earthquake Lookup Near a Location

> USGS Earthquake Lookup Near a Location is a paid API for AI agents from x402-listing-doctor.x402-listing-doctor-workers.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-20).

Returns count, strongest event, and 20 most recent USGS earthquakes of magnitude 2.5+ within a specified radius of a lat/lon point over the last N days.

## Facts

- Endpoint: GET https://x402-listing-doctor.x402-listing-doctor-workers.workers.dev/v1/usgs-quakes-near?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/usgs-earthquake-lookup-near-a-location-fc816cbb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xz-VkMnLp-kp8PSBbpA0H

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 usgs-earthquake-lookup-near-a-location-fc816cbb
```

Example prompt: Can you pull up all magnitude 2.5+ earthquakes that happened within 150km of Los Angeles over the last 14 days — give me the count, the strongest one, and the 20 most recent with their magnitudes and times?

## When to prefer this

Use this endpoint when you need a quick, structured summary of recent USGS seismic activity near a specific geographic point, including event count, strongest quake, and the 20 most recent events with direct USGS links — without needing to query or parse the USGS API directly. Ideal for safety checks, risk assessment, news monitoring, or geospatial apps needing earthquake context.

## Known failure modes

- Missing required parameters (lat, lon, radiusKm, days) returns a 400 error
- Out-of-range values (e.g. radiusKm > 500, days > 365, lat outside -90..90) may return validation errors
- No earthquakes matching criteria returns count of 0 with empty event list
- USGS upstream API outage causes delayed or failed response
- Payment not included or insufficient USDC causes 402 response

## How this service works

USGS earthquakes of magnitude 2.5+ within a radius of a point over the last N days: count, strongest event and the 20 most recent with magnitude, place, UTC time and USGS event page.

## Output

Returns a summary including the total count of magnitude 2.5+ earthquakes in the area, details on the single strongest event, and the 20 most recent events each with magnitude, place name, UTC timestamp, and a direct link to the USGS event page.

## 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": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon",
      "radiusKm",
      "days"
     ],
     "properties": {
      "lat": {
       "type": "string",
       "description": "latitude -90..90"
      },
      "lon": {
       "type": "string",
       "description": "longitude -180..180"
      },
      "days": {
       "type": "string",
       "description": "1-365 (default 30)"
      },
      "radiusKm": {
       "type": "string",
       "description": "1-500 (default 100)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/usgs-earthquake-lookup-near-a-location-fc816cbb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-listing-doctor.x402-listing-doctor-workers.workers.dev](https://www.zero.xyz/host/x402-listing-doctor.x402-listing-doctor-workers.workers.dev/llms.txt)
