# CNY to USD Currency Converter (Live Rate)

> CNY to USD Currency Converter (Live Rate) is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Converts a specified amount of Chinese Yuan (CNY) to US Dollars (USD) using a live exchange rate.

## Facts

- Endpoint: GET https://api.x402node.dev/forex/convert/cny/usd/cny-usd
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cny-to-usd-currency-converter-live-rate-e216bd8c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R1A_g6V-73DQ6wlOPqfQ_

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 cny-to-usd-currency-converter-live-rate-e216bd8c
```

Example prompt: How much is 850 Chinese yuan worth in US dollars right now? Use a live exchange rate.

## When to prefer this

Use this endpoint when you need a quick, single CNY-to-USD currency conversion with a live exchange rate and a structured response including the rate and timestamp. Prefer this over general forex APIs when you specifically need CNY/USD and want a pay-per-call micropayment model via x402.

## Known failure modes

- Missing or invalid ?amount parameter may return an error or default value
- Stale rate if upstream forex data source is delayed
- Network timeout if live rate provider is unavailable
- Payment failure if the $0.004 USDC x402 payment is not processed correctly

## How this service works

Convert CNY to USD at live rate. Pass ?amount=100 for value in US Dollar. 人民币兑换美元换算。人民元を米ドルに換算。Convertir yuan a dólar. 위안를 달러로 환전. cny to usd convert. Accepts payment on Base or Solana — either network works.

## Output

Returns a JSON object with the source currency (CNY), target currency (USD), the live exchange rate, the converted result amount, the input amount, the data source, and the timestamp (as_of) of when the rate was fetched.

## 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",
     "required": [
      "amount"
     ],
     "properties": {
      "amount": {
       "type": "string",
       "description": "要换算的金额，如 ?amount=100"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cny-to-usd-currency-converter-live-rate-e216bd8c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
