# USGS Earthquakes Feed (via x402)

> USGS Earthquakes Feed (via x402) is a paid API for AI agents from fitze-x402-seller.app.workbuddy.host, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Retrieves recent earthquake events from USGS with filtering by magnitude, time period, and result count, paid per-call in USDC via x402.

## Facts

- Endpoint: POST https://fitze-x402-seller.app.workbuddy.host/tools/usgs_earthquakes?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/usgs-earthquakes-feed-via-x402-d89a3371
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JkPGWnLKl9nj4hh237mTS

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-earthquakes-feed-via-x402-d89a3371 -d '<json body>'
```

Example prompt: Pull the last 10 earthquakes from the past day that are magnitude 4.5 or higher and tell me where they happened and how deep they were.

## When to prefer this

Choose this endpoint when you need quick, keyless, per-call access to USGS earthquake data without setting up an API account or managing API keys. Ideal for agents that only occasionally need seismic data, for pay-as-you-go workflows, or when integrating earthquake awareness into a broader automated pipeline. Prefer direct USGS API calls if you need very high volume, full GeoJSON detail, or advanced spatial filtering.

## Known failure modes

- Invalid period value (not hour/day/week/month) may return an error or default behavior
- Requesting a very high limit may be capped silently
- Payment failure (402 not settled) blocks the call entirely
- USGS upstream outage causes no events or stale data to be returned
- Extremely high minmag values may return zero events with count:0

## How this service works

Pay-per-call AI/data tools settled in USDC on Base via x402. No account, no API key — pay the 402 and receive the result. All endpoints also accept a bare hostname without the https:// prefix.

## Output

A JSON object containing the count of matching events, an array of earthquake events (each with magnitude, Unix timestamp in ms, depth in km, place description, and [lon, lat, depth] coordinates), plus metadata fields for minmag filter used, period, data source URL, and generation timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "number",
   "description": "Max events returned (default 20)"
  },
  "minmag": {
   "type": "number",
   "description": "Minimum magnitude (default 0)"
  },
  "period": {
   "type": "string",
   "description": "hour | day | week | month (default day)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "events": [
   {
    "mag": 5.1,
    "time": 1759410000000,
    "depth": 35.2,
    "place": "Off the coast of Chile",
    "coordinates": [
     -71.2,
     -23.4,
     35.2
    ]
   }
  ],
  "minmag": 4.5,
  "period": "day",
  "source": "earthquake.usgs.gov",
  "generated": 1759420000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/usgs-earthquakes-feed-via-x402-d89a3371/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fitze-x402-seller.app.workbuddy.host](https://www.zero.xyz/host/fitze-x402-seller.app.workbuddy.host/llms.txt)
