# USGS Earthquakes API (Rotary Agency)

> USGS Earthquakes API (Rotary Agency) is a paid API for AI agents from rotaryagency.uk, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-09).

Fetches real-time and recent earthquake data from the USGS (United States Geological Survey) feed, returning structured JSON with seismic event details.

## Facts

- Endpoint: GET https://rotaryagency.uk/api/free/usgs-earthquakes?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/usgs-earthquakes-api-rotary-agency-88ca9364
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ziJqdtOjrTGtv0v4kZwGD

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-api-rotary-agency-88ca9364
```

Example prompt: Can you pull the latest earthquake data from the USGS feed and show me any earthquakes above magnitude 4.5 that happened in the last 24 hours?

## When to prefer this

Choose this endpoint when you need structured, real-time or recent earthquake data sourced directly from the authoritative USGS feed without building your own USGS API integration. Ideal for agents that need seismic event data on demand via a simple pay-per-call model at $0.002/call, avoiding the overhead of managing USGS API keys or quotas directly.

## Known failure modes

- USGS upstream feed temporarily unavailable causing empty or error response
- No earthquakes matching the specified filters (returns empty event list)
- Rate limiting or payment failure returning HTTP 402
- Invalid query parameters resulting in a 400 error
- Stale data if USGS feed has not updated recently

## How this service works

Free-source data APIs (100% margin, no proxy, $0.002/call): ...

## Output

Returns a structured JSON object containing a list of seismic events, each including earthquake magnitude, geographic coordinates (latitude/longitude), depth in kilometers, location description, and UTC timestamp of occurrence. The data is sourced directly from the USGS earthquake feed.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "varies": "endpoint-specific structured JSON"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/usgs-earthquakes-api-rotary-agency-88ca9364/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rotaryagency.uk](https://www.zero.xyz/host/rotaryagency.uk/llms.txt)
