# China Hot Search API (x402) — Chinese Text Romanization

> China Hot Search API (x402) — Chinese Text Romanization is a paid API for AI agents from china-trends-x402.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Converts Chinese text (Simplified or Traditional) to Pinyin romanization with tone marks, tone numbers, character count, and simplified/traditional variants.

## Facts

- Endpoint: GET https://china-trends-x402.onrender.com/v1/zh?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/china-hot-search-api-x402-chinese-text-romanization-5dd9fd22
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7UdQ4tI7w95aseU6bRjPw

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 china-hot-search-api-x402-chinese-text-romanization-5dd9fd22
```

Example prompt: Can you convert the Chinese text '中国热搜' to pinyin with tone marks and also show me its traditional Chinese form?

## When to prefer this

Choose this endpoint when you need a pay-per-call, no-signup Pinyin romanization service that also returns simplified/traditional variants and tone numbers in a single call, especially when integrating with x402 USDC micropayment flows on Base. Prefer it over subscription-based Chinese NLP APIs for low-volume, on-demand transliteration tasks where avoiding API key management is valuable.

## Known failure modes

- Non-Chinese or empty text input may return unexpected results or an error
- Text exceeding 2000 characters is rejected by the schema
- Payment failure via x402 returns a 402 status before any data is served
- Network latency on Render free-tier hosting may cause timeouts under load

## How this service works

Real-time hot-search / trending lists from 9 Chinese platforms in one JSON schema. Pay per call with USDC on Base via x402. No keys, no signup.

## Output

A JSON object containing: the character count of the input, the original input string, Pinyin with diacritic tone marks, Simplified Chinese form, Traditional Chinese form, and Pinyin with numeric tone numbers (e.g. zhong1 guo2).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "maxLength": 2000,
       "description": "Chinese text (Simplified or Traditional)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chars": 4,
  "input": "中国热搜",
  "pinyin": "zhōng guó rè sōu",
  "simplified": "中国热搜",
  "traditional": "中國熱搜",
  "pinyinNumbers": "zhong1 guo2 re4 sou1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/china-hot-search-api-x402-chinese-text-romanization-5dd9fd22/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from china-trends-x402.onrender.com](https://www.zero.xyz/host/china-trends-x402.onrender.com/llms.txt)
