# StatePulse Earthquake Live Feed

> StatePulse Earthquake Live Feed is a paid API for AI agents from statepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns live recent earthquake data including location, magnitude, time, and place description

## Facts

- Endpoint: POST https://statepulse-api.hahavoid0.workers.dev/environment/earthquake
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/statepulse-earthquake-live-feed-0caa04da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rgjksju60oNeIm4HnStxy

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 statepulse-earthquake-live-feed-0caa04da -d '<json body>'
```

Example prompt: What earthquakes have happened recently? Give me the latest seismic activity — I want to see location, magnitude, and time for any recent events, with high confidence data.

## When to prefer this

Use this endpoint when an AI agent needs real-time seismic event data without managing API keys. Ideal for agents monitoring environmental conditions, building disaster-awareness workflows, or answering user queries about recent earthquake activity. At $0.02 per call via x402 USDC on Base, it suits pay-per-use agent pipelines that need fresh geospatial seismic data on demand.

## Known failure modes

- No recent earthquakes available — empty earthquakes array returned
- Upstream seismic data source unavailable — service may return supported:false or error
- Network timeout reaching USGS or equivalent data provider
- Payment not processed — x402 USDC payment required before data is returned

## How this service works

Queries the USGS Earthquake Hazards API for recent earthquakes exceeding a minimum magnitude.

## Output

Returns a JSON object containing an array of recent earthquakes, each with latitude, longitude, UTC timestamp, human-readable place description, title (including magnitude label), and numeric magnitude value. Also includes a 'supported' flag and a confidence level string (e.g. 'high').

## 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",
     "properties": {
      "min_magnitude": {
       "type": "number",
       "default": 4,
       "description": "Minimum magnitude threshold"
      }
     }
    },
    "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": {
  "result": {
   "earthquakes": [
    {
     "lat": 34.448,
     "lng": -119.141,
     "time": "2026-06-24T18:32:00.000Z",
     "place": "10km E of Ojai, CA",
     "title": "M 4.2 - 10km E of Ojai, CA",
     "magnitude": 4.2
    }
   ]
  },
  "supported": true,
  "confidence": "high"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/statepulse-earthquake-live-feed-0caa04da/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from statepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/statepulse-api.hahavoid0.workers.dev/llms.txt)
