# CN Data – China Weather Alarm Feed

> CN Data – China Weather Alarm 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 active Chinese national meteorological weather alarm/warning notices as structured JSON, with optional filtering by disaster type, alert color level, province, and result count.

## Facts

- Endpoint: GET https://cn-data-x402.cn-data-x402-worker.workers.dev/cn/weather-alarm?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-weather-alarm-feed-37ca2867
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g-Xytjmx1xTvUL8U9I5P9

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-weather-alarm-feed-37ca2867
```

Example prompt: Pull the latest active weather alarms in Guangdong province from China's meteorological system — filter for red and orange level alerts only, and give me up to 50 results.

## When to prefer this

Choose this endpoint when you need real-time, machine-readable Chinese national weather alarm data filtered by disaster type, alert color level, or province — especially when the source is only published in Chinese-language web pages that other APIs don't cover. Ideal for agents monitoring public safety conditions, logistics operations in China, or news aggregation requiring structured meteorological alert data without API key setup.

## Known failure modes

- HTTP 402 returned before payment — agent must pay listed USDC amount on Base and retry
- Invalid `level` enum value (e.g. not one of red/orange/yellow/blue) may return empty results or an error
- Province substring match yields no results if province string doesn't match known names
- `limit` out of range (below 1 or above 100) may be rejected or clamped
- Upstream Chinese weather data source may be temporarily unavailable, causing 5xx or empty 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 with an `ok` boolean and a `data` field containing an array of active Chinese weather alarm records, each including alert level (color), disaster type, issuing province, and alarm details — sourced from official Chinese meteorological authority pages and converted to machine-readable JSON.

## 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": {
      "kind": {
       "type": "string",
       "description": "按灾种过滤，如 暴雨 / 大风 / 森林火险"
      },
      "level": {
       "type": "string",
       "description": "按预警颜色过滤，逗号分隔：red,orange,yellow,blue"
      },
      "limit": {
       "type": "integer",
       "description": "返回条数 1-100，默认 30"
      },
      "province": {
       "type": "string",
       "description": "按省份过滤，如 广东（子串匹配）"
      }
     }
    }
   },
   "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": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cn-data-china-weather-alarm-feed-37ca2867/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)
