# CN Data – China Earthquake Feed

> CN Data – China Earthquake Feed is a paid API for AI agents from cn-data-x402.cn-data-x402-worker.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-16).

Returns recent earthquake events in China and surrounding regions as machine-readable JSON, filtered by time window, count, and minimum magnitude

## Facts

- Endpoint: GET https://cn-data-x402.cn-data-x402-worker.workers.dev/cn/earthquake?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cn-data-china-earthquake-feed-293dd9d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jF5L2eC1xLaSa8K32b29u

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 cn-data-china-earthquake-feed-293dd9d7
```

Example prompt: Pull the earthquake feed for China and surrounding areas for the last 14 days, show me only events with magnitude 4 or higher, and return up to 50 results.

## When to prefer this

Use this endpoint when you need structured, machine-readable earthquake data specifically for the China and surrounding East Asia region (18°–54°N, 73°–136°E) without needing an API key or account. It is ideal for agents that need to pay-per-call via x402/USDC and want clean JSON from Chinese-language or USGS sources. Prefer this over raw USGS queries when you need the data scoped to China, pre-filtered, and formatted as simple JSON.

## Known failure modes

- Payment not made or incorrect USDC amount returns HTTP 402 with payment terms
- days parameter out of range (1–30) may return validation error or default value
- limit parameter out of range (1–100) may be clamped or rejected
- minMagnitude out of range (0–9) may return validation error
- No earthquakes matching filters returns empty items array with total:0
- Upstream USGS data unavailable may return error or stale data

## How this service works

Chinese market and China-focused public data over the x402 protocol. No API key and no signup: call any endpoint, receive HTTP 402 with payment terms, pay the listed amount in USDC on Base and retry. Every response is JSON. Some Chinese-language sources are published only as web pages — these endpoints return them as clean, machine-readable JSON.

## Output

A JSON object containing an array of earthquake events, each with a unique USGS ID, place description, depth in km, UTC timestamp, magnitude, latitude/longitude coordinates, tsunami flag, and a link to the USGS event page. Also includes total count, the queried region description (China and surrounding area, lat 18–54, lon 73–136), the time window in days, and the minimum magnitude applied.

## 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",
     "properties": {
      "days": {
       "type": "integer",
       "description": "往回查几天 1-30，默认 7"
      },
      "limit": {
       "type": "integer",
       "description": "返回条数 1-100，默认 30"
      },
      "minMagnitude": {
       "type": "number",
       "description": "最小震级 0-9，默认 3"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "items": [
    {
     "id": "us7000abcd",
     "url": "https://earthquake.usgs.gov/earthquakes/eventpage/us7000abcd",
     "place": "85 km SSW of Kashgar, China",
     "depthKm": 24.5,
     "timeUtc": "2026-10-03T01:22:31.000Z",
     "tsunami": false,
     "latitude": 38.9,
     "longitude": 75.2,
     "magnitude": 4.6
    }
   ],
   "total": 6,
   "region": "中国及周边（北纬18-54，东经73-136）",
   "windowDays": 7,
   "minMagnitude": 3
  },
  "endpoint": "/cn/earthquake"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cn-data-china-earthquake-feed-293dd9d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cn-data-x402.cn-data-x402-worker.workers.dev](https://www.zero.xyz/host/cn-data-x402.cn-data-x402-worker.workers.dev/llms.txt)
