# CN Data – CNY Fixing Rate

> CN Data – CNY Fixing Rate 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 the People's Bank of China official CNY central parity (fixing) exchange rates against major currencies as clean JSON.

## Facts

- Endpoint: GET https://cn-data-x402.cn-data-x402-worker.workers.dev/cn/cny-fixing?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-cny-fixing-rate-3fad7e71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_66FdN8tzNXTdEwLymobFd

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-cny-fixing-rate-3fad7e71
```

Example prompt: What is the PBOC official CNY fixing rate today for USD, EUR, and JPY? Give me the latest 5 records for each.

## When to prefer this

Choose this endpoint when you need the official PBOC central parity (fixing) rate for CNY rather than market/spot rates. It is ideal for compliance, invoicing, or financial reporting that requires the authoritative government-published rate. No API key or signup required — just pay per call in USDC, making it suitable for lightweight or infrequent lookups without account overhead.

## Known failure modes

- HTTP 402 returned on first call — must pay 0.02 USDC on Base via x402 protocol before data is returned
- Invalid or unsupported currency code returns empty or error data
- Limit parameter out of range (must be 1–40) may result in an error or clamped response
- Data may not be available on Chinese public holidays when PBOC does not publish rates

## 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 CNY central parity fixing records, each including the currency code, date, and official exchange rate as published by the People's Bank of China.

## 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": {
      "limit": {
       "type": "integer",
       "description": "返回条数 1-40"
      },
      "currency": {
       "type": "string",
       "description": "币种代码，逗号分隔，如 USD,EUR,JPY（不传返回全部）"
      }
     }
    }
   },
   "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-cny-fixing-rate-3fad7e71/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)
