# China Hot Search Scraper: Weibo, Douyin, Baidu, Zhihu (`alexsyin/china-trending-topics`) Actor

Scrape real-time China hot search (热搜) from Weibo, Douyin, Baidu, Zhihu, Bilibili and Toutiao. No login. Unified JSON for AI agents and Apify MCP. Only-new mode. $1 per 1,000 topics; failed boards are free.

- **URL**: https://apify.com/alexsyin/china-trending-topics.md
- **Developed by:** [Shilin (Alex) Yin](https://apify.com/alexsyin) (community)
- **Categories:** News, Social media, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 trending topics

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does China Hot Search Scraper do?

Collect **real-time China hot search (热搜 / 热榜)** lists from the country's major public boards in one run, and return them as one stable JSON dataset — an API alternative to checking [Weibo](https://s.weibo.com/top/summary), [Baidu](https://top.baidu.com/board), [Douyin](https://www.douyin.com), [Zhihu](https://www.zhihu.com/hot), [Bilibili](https://www.bilibili.com) and [Toutiao](https://www.toutiao.com) by hand.

Supported boards (HTTP only, **no login**, no browser):

- Weibo hot search (微博热搜)
- Baidu hot search (百度热搜)
- Douyin hot list (抖音热榜)
- Zhihu hot list (知乎热榜)
- Bilibili hot search (B站热搜, typically the top 10 public words)
- Toutiao hot board (今日头条热榜)

Xiaohongshu (小红书) and Kuaishou (快手) are not included: their hot lists were not reliably reachable through public HTTP endpoints from overseas infrastructure.

Each platform is isolated. If one board fails, the others still write results. You are charged only for topics that are actually saved.

**Typical use cases**

- Brand and crisis monitoring: see whether a name just entered Weibo, Baidu or Douyin hot search
- Hourly trend snapshots for newsrooms, researchers and social listening teams
- Feed Claude Code, Cursor or any MCP client a typed list of China's trending topics
- Track which topics are new versus already seen, using `onlyNew` on a Schedule

#### Example output

You can download the dataset as JSON, HTML, CSV or Excel. One topic looks like this:

```json
{
  "platform": "weibo",
  "platform_name": "Weibo (微博热搜)",
  "rank": 1,
  "title": "中国男篮vs黎巴嫩男篮",
  "url": "https://s.weibo.com/weibo?q=%E4%B8%AD%E5%9B%BD%E7%94%B7%E7%AF%ACvs%E9%BB%8E%E5%B7%B4%E5%AB%A9%E7%94%B7%E7%AF%AC",
  "heat_value": 134038,
  "tag": "热",
  "category": null,
  "fetched_at": "2026-11-29T20:40:00.000Z",
  "first_seen_at": "2026-11-29T20:40:00.000Z",
  "is_pinned": false,
  "is_new": true
}
```

`heat_value` is the platform's own score. Compare ranks across platforms; compare heat only within one platform. Bilibili's public hot-search endpoint usually returns about 10 words. Weibo pinned (置顶) items use `rank` 0 and `is_pinned: true`.

A `STATUS` record is written to the default key-value store with per-platform `ok` / `fetched` / `returned` / `error` fields.

### Why scrape China hot search lists?

China's trending boards move fast and are split across apps. This Actor gives you one schema — `platform`, `rank`, `title`, `url`, `heat_value`, `tag`, `category`, `fetched_at`, `first_seen_at` — instead of six different page layouts.

- `onlyNew` mode for hourly schedules: pay only for topics that newly entered a list
- Designed for agents: stable field names, a per-platform `STATUS` record, and a short input schema
- Low maintenance: plain HTTP to public board endpoints, 256 MB memory, typically finishes in under 30 seconds
- Runs on the Apify platform, so you can schedule it, call it via API or [Apify MCP](https://mcp.apify.com), and export JSON, CSV or Excel

### What data can China Hot Search Scraper extract?

| Field | Type | Meaning |
| --- | --- | --- |
| `platform` | string | `weibo` / `baidu` / `douyin` / `zhihu` / `bilibili` / `toutiao` |
| `platform_name` | string | Display name |
| `rank` | integer | Position on the board |
| `title` | string | Keyword or headline |
| `url` | string | null | Public topic or search URL |
| `heat_value` | integer | null | Native heat score |
| `tag` | string | null | Badge such as 新 / 热 / 辟谣 / 置顶 |
| `category` | string | null | Category when the platform provides one |
| `fetched_at` | string | Snapshot time, ISO 8601 UTC |
| `first_seen_at` | string | First time this topic was stored for `memoryName` |
| `is_pinned` | boolean | Pinned / editorial item |
| `is_new` | boolean | New to memory, or back after `rememberHours` |

### How to scrape Weibo, Baidu, Douyin and Zhihu hot search

1. Open this Actor and click **Try for free**. The input is prefilled with all six platforms.
2. Optionally lower **Max topics per platform** (try 20 for a cheap first snapshot) or pick a subset of boards.
3. Run the Actor. Download JSON, CSV or Excel, or open the dataset in the Console.
4. For hourly monitoring, create an Apify **Schedule** with `onlyNew: true` and a fixed `memoryName`.
5. For agents, add the [Apify MCP server](https://mcp.apify.com) and ask Claude Code or Cursor to run `alexsyin/china-trending-topics`.

See the **Input** tab for every field.

#### Hourly schedule example

In [Apify Console](https://console.apify.com) go to **Schedules** → **Create**.

- Cron: `0 * * * *` (every hour, UTC)
- Input:

```json
{
  "platforms": ["weibo", "baidu", "douyin", "zhihu", "bilibili", "toutiao"],
  "maxPerPlatform": 50,
  "onlyNew": true,
  "memoryName": "hourly-main",
  "rememberHours": 24
}
```

The first `onlyNew` run returns the full lists and stores the baseline. Later runs return (and charge for) only new entries.

### How much does it cost to scrape China hot search?

Pay per event: **$0.001 per topic** (about **$1 per 1,000 topics**), plus a very small Actor start fee.

| Event | Price | Charged when |
| --- | --- | --- |
| Topic saved | $0.001 | A topic is written to the dataset |
| Actor start | $0.00005 | The run starts (depends on memory) |

Failed platforms, empty boards, and topics filtered out by `onlyNew` are **not charged**. A full snapshot of all six platforms is typically 150–220 topics (about $0.15–$0.22). A first try with `maxPerPlatform: 20` is usually well under $0.15.

### Input

See the **Input** tab for full configuration options.

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `platforms` | string\[] | all six | `weibo`, `baidu`, `douyin`, `zhihu`, `bilibili`, `toutiao` |
| `maxPerPlatform` | integer | 50 | Top N topics per platform (1–100) |
| `onlyNew` | boolean | false | Return only topics not seen in earlier runs that share `memoryName` |
| `memoryName` | string | `"default"` | Shared memory id for deduplication (use one per Schedule) |
| `rememberHours` | integer | 24 | After this many hours, a returning topic counts as new again |

### Use it from Claude Code, Cursor or any MCP client

Add the [Apify MCP server](https://mcp.apify.com) so an agent can search the Store and call this Actor directly:

```bash
## Claude Code: pin this Actor on the Apify MCP server
claude mcp add apify --transport http "https://mcp.apify.com/?actors=alexsyin/china-trending-topics" \
  --header "Authorization: Bearer $APIFY_TOKEN"
```

You can also add the general server at `https://mcp.apify.com` (no `?actors=` filter) and ask the agent to run `alexsyin/china-trending-topics`.

For Cursor, install the official integration with the Apify CLI, or add the same MCP URL in Cursor's MCP settings:

```bash
apify mcp install cursor
```

Example prompt:

> Use the Apify MCP tools to run `alexsyin/china-trending-topics` with `onlyNew=false`, `maxPerPlatform=20`, all default platforms. Then summarize the top 5 topics on each platform.

Equivalent Actor input:

```json
{
  "platforms": ["weibo", "baidu", "douyin", "zhihu", "bilibili", "toutiao"],
  "maxPerPlatform": 20,
  "onlyNew": false
}
```

Or via the Apify API:

```bash
curl "https://api.apify.com/v2/acts/alexsyin~china-trending-topics/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"maxPerPlatform":20}'
```

The API tab on this Actor's page has client snippets in JavaScript, Python and more.

### FAQ

#### Do I need a login, cookie or China proxy?

No. The Actor reads public hot-search endpoints. No login, cookie or browser is required.

#### Why are Xiaohongshu and Kuaishou missing?

Their public hot lists were not reliably reachable from overseas HTTP infrastructure, so they are left out rather than billed for empty or failing boards.

#### Can I compare heat scores across Weibo, Douyin and Baidu?

No. Each platform uses its own scale. Compare `rank` across platforms; compare `heat_value` only within one platform.

#### How does only-new mode work?

Runs that share the same `memoryName` remember titles already seen. The first run is the baseline (everything is returned). Later runs return only new titles, or titles that dropped off and came back after `rememberHours`.

#### Is it legal to scrape China hot search lists?

This Actor only collects **public board titles and URLs**. It does not collect personal profiles, comments or private data. You should still follow the sites' terms and applicable law. If you are unsure, consult a lawyer.

> Our Actors are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our Actors, when used for ethical purposes by Apify users, are safe. However, you should be aware that your results could contain personal data. Personal data is protected by the GDPR in the European Union, by PIPL in China, and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers.

Boards can change or add anti-bot checks. If a platform starts failing, its error is recorded in `STATUS` and the rest of the run still succeeds.

Questions or feature requests? Open an issue on the **Issues** tab.

***

### Related China data Actors

- [Weibo Scraper](https://apify.com/alexsyin/weibo-scraper) — Sina Weibo posts, comments and keyword search, no login
- [China App Store Rankings](https://apify.com/alexsyin/china-app-rankings) — Apple App Store (CN), TapTap and Xiaomi charts
- [Guba Scraper](https://apify.com/alexsyin/guba-scraper) — Eastmoney Guba posts and official A-share announcements

***

### 中文说明

一次运行抓取中国主要平台的**公开热搜 / 热榜**，输出统一 JSON，适合舆情监控、新闻选题和 AI agent / MCP 调用。稳定支持：**微博热搜、百度热搜、抖音热榜、知乎热榜、B 站热搜、今日头条热榜**。小红书和快手的公开接口从海外机房无法稳定访问，因此未收录。某个平台失败不会导致整次运行失败，失败的平台也不计费。无需登录。

**常见用途**：品牌或危机是否上了微博 / 百度 / 抖音热搜；每小时快照；把中国热搜交给 Claude Code、Cursor 等 agent 分析；用 `onlyNew` 只看新上榜话题。

**示例输出**见上方 JSON。`heat_value` 是各平台自己的热度，只能在同一平台内比较；跨平台请比较 `rank`。B 站公开热搜通常约 10 条。微博置顶为 `rank` 0 且 `is_pinned: true`。

#### 输入

见 Input 页。`platforms` 留空表示全部；`maxPerPlatform` 默认 50；`onlyNew` 只返回相对同一 `memoryName` 上次运行的新话题，第一次会建立基线；`rememberHours` 默认 24 小时后再上榜视为新话题。

#### 计费

按成功写入数据集的话题计费，**每条 $0.001（约每 1000 条 $1）**，另有极小的启动费用。失败的平台、被 `onlyNew` 过滤掉的旧话题不计费。六个平台完整快照大约 150–220 条（约 $0.15–$0.22）。

#### 在 Claude Code / MCP 中调用

```bash
claude mcp add apify --transport http "https://mcp.apify.com/?actors=alexsyin/china-trending-topics" \
  --header "Authorization: Bearer $APIFY_TOKEN"
```

然后让 agent 运行 `alexsyin/china-trending-topics`。也可使用通用地址 <https://mcp.apify.com>。

#### 常见问题

- **要不要登录或中国代理？** 不需要。
- **热度能否跨平台比？** 不能，请比较排名。
- **合规**：只采集公开榜单标题和链接，不含个人主页或评论。请遵守平台条款及 PIPL、GDPR 等法规。

问题和建议请走本页的 **Issues**。

#### 相关 Actor

- [微博爬虫](https://apify.com/alexsyin/weibo-scraper)：搜索、用户微博和评论
- [中国应用商店榜单](https://apify.com/alexsyin/china-app-rankings)：Apple 中国区、TapTap、小米
- [股吧爬虫](https://apify.com/alexsyin/guba-scraper)：东方财富股吧帖子和 A 股公告

### Changelog

#### 0.1.1

- Store listing and README update for discoverability (titles, MCP examples, FAQ). Pricing unchanged.

#### 0.1

- Initial public release: Weibo, Baidu, Douyin, Zhihu, Bilibili, Toutiao.
- `onlyNew` deduplication via a named key-value store.
- Pay-per-event pricing at $0.001 per saved topic.

# Actor input Schema

## `platforms` (type: `array`):

Which China hot-search (热搜 / 热榜) boards to fetch: Weibo, Baidu, Douyin, Zhihu, Bilibili and Toutiao. Leave empty to fetch all six. Each platform is isolated: one failure does not fail the run.

## `maxPerPlatform` (type: `integer`):

Keep only the top N topics from each platform. Bilibili's public hot-search list usually has about 10 items. A first try of 20 per platform is enough to see real data at a lower cost; scheduled snapshots often use 50.

## `onlyNew` (type: `boolean`):

Return only topics that were not on the list in earlier runs that share the same Memory name. Ideal for an hourly Schedule of China trending / hot-search topics: you get (and pay for) just what newly entered each list. The first run returns everything and sets the baseline.

## `memoryName` (type: `string`):

Runs that share this name share one memory of seen topics. Use a different name for each separate monitor (for example one per Schedule).

## `rememberHours` (type: `integer`):

A topic that dropped off a list and comes back after this many hours counts as new again.

## Actor input object example

```json
{
  "platforms": [
    "weibo",
    "baidu",
    "douyin",
    "zhihu",
    "bilibili",
    "toutiao"
  ],
  "maxPerPlatform": 20,
  "onlyNew": false,
  "memoryName": "default",
  "rememberHours": 24
}
```

# Actor output Schema

## `topics` (type: `string`):

Unified topic records in the default dataset.

## `status` (type: `string`):

JSON report of which platforms succeeded or failed in this run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "platforms": [
        "weibo",
        "baidu",
        "douyin",
        "zhihu",
        "bilibili",
        "toutiao"
    ],
    "maxPerPlatform": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("alexsyin/china-trending-topics").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "platforms": [
        "weibo",
        "baidu",
        "douyin",
        "zhihu",
        "bilibili",
        "toutiao",
    ],
    "maxPerPlatform": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("alexsyin/china-trending-topics").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "platforms": [
    "weibo",
    "baidu",
    "douyin",
    "zhihu",
    "bilibili",
    "toutiao"
  ],
  "maxPerPlatform": 20
}' |
apify call alexsyin/china-trending-topics --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alexsyin/china-trending-topics"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/WQzUGwQfky05EkxE8/builds/cwRh4GtLn7b383RgN/openapi.json
