# China Hot Search API (x402)

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

Returns real-time trending/hot-search lists from up to 9 major Chinese social and news platforms in a unified JSON schema, billed per call via x402 USDC micropayment.

## Facts

- Endpoint: GET https://china-trends-x402.onrender.com/v1/trends?utm_source=zero.xyz
- Price: $0.005/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-fb5bc467
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QXngCLA4l9kqOTlavFCq3

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-fb5bc467
```

Example prompt: What are the top 10 trending topics right now on Weibo and Zhihu — any that mention '新冠' or COVID?

## When to prefer this

Choose this endpoint when you need real-time trending topic data from Chinese social and news platforms (Weibo, Baidu, Douyin, Zhihu, Toutiao, Bilibili, Tencent News, The Paper) in a single unified call, especially when you want no API key signup overhead and are comfortable with x402 USDC micropayments. Prefer it over platform-specific scrapers when you need cross-platform aggregation, or over slower batch approaches when recency matters.

## Known failure modes

- Payment not completed — 402 response returned before data is served
- Individual platform scrape failures — platform key appears in errors map with no items
- keyword filter returns zero matches — count is 0 and items array is empty
- Invalid platform name in comma-separated list — may silently skip or error
- Rate limits or blocks from upstream Chinese platforms causing stale/missing data
- Render.com cold-start latency if instance has been idle

## 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 a count of returned items, an array of trending entries (each with rank, title, platform, hotValue, URL, label, excerpt, category, imageUrl, publishedAt, and platformName), a fetchedAt timestamp, and an errors map for any platforms that failed to respond.

## 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",
     "properties": {
      "limit": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1,
       "description": "Max items per platform (default 20)."
      },
      "keyword": {
       "type": "string",
       "description": "Optional case-insensitive substring filter on title/excerpt."
      },
      "platforms": {
       "type": "string",
       "description": "Comma-separated subset of: weibo, baidu, douyin, zhihu, toutiao, bilibili, bilibili-search, tencent-news, thepaper. Default: all."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "url": "https://s.weibo.com/weibo?q=%23...%23",
    "rank": 1,
    "label": "热",
    "title": "示例话题",
    "excerpt": null,
    "category": null,
    "hotValue": 1234567,
    "imageUrl": null,
    "platform": "weibo",
    "publishedAt": null,
    "platformName": "Weibo Hot Search (微博热搜)"
   }
  ],
  "errors": {},
  "fetchedAt": "2026-10-03T08:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/china-hot-search-api-x402-fb5bc467/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)
