CN Data
RMB reference exchange rates. Returns the CNY cross table plus foreign-to-CNY rates for USD, EUR, JPY, HKD, GBP, KRW, SGD and AUD. No API key and no signup: call the endpoint, it answers HTTP 402 with the payment terms, pay per request in USDC on Base with any x402-compatible client or wallet, then retry the same request to get the data.
- Price per call
- $0.01
- Chain
- Base
- Method
- GET
- Paid calls · 30 days
- 0
Call it from code
This API is run by its own provider and paid directly through x402. We list it so you can find it; we don't route or hold the payment.
import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
const client = new x402Client();
registerExactEvmScheme(client, { signer: agentAccount });
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay("https://cn-data-x402.cn-data-x402-worker.workers.dev/cn/fx", { method: "GET" });
console.log(await res.json());https://cn-data-x402.cn-data-x402-worker.workers.dev/cn/fx