# China Hot Search Scraper (Weibo, Baidu, Toutiao) (`rourouk/china-hot-search-scraper`) Actor

Collect Weibo, Baidu, and Toutiao trending boards with keywords, ranks, popularity metrics, labels, topic counters, and snapshot timestamps for cross-platform trend analysis.

- **URL**: https://apify.com/rourouk/china-hot-search-scraper.md
- **Developed by:** [Kathleen Luo](https://apify.com/rourouk) (community)
- **Categories:** Social media, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.80 / 1,000 hot search results

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/running/actors-in-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

## China Hot Search Scraper (Weibo, Baidu, Toutiao)

Collect a unified view of trending topics across Weibo, Baidu, and Toutiao. Each structured record brings together the source board, keyword, rank, popularity indicators, labels, category, and destination URL, with topic read and mention counts where available. A shared run timestamp makes cross-platform snapshots easy to compare and combine into a historical trend dataset, while optional Markdown text supports AI analysis.

### Sources and boards

| Source | Board | Input | Rows |
| --- | --- | --- | --- |
| `weibo` | 热搜榜, realtime hot search | `weiboBoard: "hot"` | Rank, keyword, hot value, label (新 / 热 / 沸 / 爆 when the board sends one), category, topic URL, ad flag, onboard time. |
| `weibo` | 话题榜, topic board | `weiboBoard: "topics"` | Rank, topic, read count, mention count, category, public host id and name, summary. |
| `baidu` | 热搜榜, realtime | `sources` includes `baidu` | Rank, keyword, hot value, label (新 / 商 / 热 / 沸 / 爆), search URL, the board's own update time. |
| `toutiao` | 热榜 | `sources` includes `toutiao` | Rank, title, hot value, label (新 / 热 / 爆 / 辟谣 / 现场), interest category, trending or article URL. |

Select one or more platforms with `sources`. Use `weiboBoard` to choose Weibo hot search or topics. Pinned headlines are identified by `isPinned`; `includePinned` controls their inclusion. Commercial placements are identified by `isAd`; `skipAds` controls filtering.

### Data fields

One dataset record per board entry. Source-dependent values are represented as `null` when absent. `snapshotAt` is shared by every row in a run.

| Field | Type | Description |
| --- | --- | --- |
| `type` | string | Record type: `trend`. |
| `source` | string | Originating mode or platform. |
| `board` | string | Board |
| `rank` | integer / null | Position in the ranked list; null for pinned headlines. |
| `keyword` | string | Keyword |
| `title` | string | Title |
| `hotValue` | integer / null | Board-provided popularity score. |
| `label` | string / null | Public badge such as 新, 热, 沸, 爆, 辟谣, or 现场. |
| `category` | string / null | Category |
| `url` | string | URL |
| `summary` | string / null | Board-provided summary. |
| `isAd` | boolean | Ad |
| `adType` | string / null | Ad type |
| `isPinned` | boolean | Pinned |
| `isGovernment` | boolean | True for the Weibo hotgov pin. |
| `wordScheme` | string / null | Weibo query text, often wrapped in #. |
| `onboardAt` | string / null | UTC time the Weibo hot word was listed, when the board sends it. |
| `readCount` | integer / null | Weibo topic read count. |
| `mentionCount` | integer / null | Weibo topic mention count. |
| `topicHostId` | integer / null | Topic host identifier. |
| `topicHostName` | string / null | Topic host |
| `imageUrl` | string / null | Board image URL. |
| `boardUpdatedAt` | string / null | UTC update time published by Baidu. |
| `llmText` | string / null | Optional Markdown representation for AI and text-processing workflows. |
| `snapshotAt` | string | Run snapshot timestamp (UTC), shared by all rows in the run. |

### Input examples

```json
{
  "sources": ["weibo", "baidu", "toutiao"],
  "weiboBoard": "hot",
  "maxResults": 50,
  "skipAds": true,
  "includePinned": true,
  "includeLlmText": true
}
```

Weibo topics only:

```json
{
  "sources": ["weibo"],
  "weiboBoard": "topics",
  "maxResults": 30
}
```

Baidu only, or Toutiao only: set `sources` to `["baidu"]` or `["toutiao"]`. `weiboBoard` is ignored unless Weibo is selected.

### Output examples

The following shortened records are retained from existing hot-search and topic-board samples. Dataset views include Overview, Topics, and LLM text.

```json
{
  "type": "trend",
  "source": "weibo",
  "board": "微博热搜榜",
  "rank": 1,
  "keyword": "疑似秦始皇儿子遗骸遭肢解",
  "title": "疑似秦始皇儿子遗骸遭肢解",
  "hotValue": 851507,
  "label": "热",
  "category": "互联网",
  "url": "https://s.weibo.com/weibo?q=%E7%96%91%E4%BC%BC%E7%A7%A6%E5%A7%8B%E7%9A%87%E5%84%BF%E5%AD%90%E9%81%97%E9%AA%B8%E9%81%AD%E8%82%A2%E8%A7%A3",
  "isAd": false,
  "isPinned": false,
  "onboardAt": "2026-11-08T14:55:23Z",
  "llmText": "# 疑似秦始皇儿子遗骸遭肢解\n\nSource: weibo\nBoard: 微博热搜榜\nRank: 1\nLabel: 热\nHot value: 851,507\n...",
  "snapshotAt": "2026-11-08T17:41:22Z"
}
```

The same keys are used for every source. A Weibo topic row looks like this: `hotValue` is null, and the board's own counters are filled in.

```json
{
  "type": "trend",
  "source": "weibo",
  "board": "微博话题榜",
  "rank": 1,
  "keyword": "婚姻与爱情的本质是什么",
  "title": "婚姻与爱情的本质是什么",
  "hotValue": null,
  "category": "情感",
  "readCount": 108823229,
  "mentionCount": 206559,
  "topicHostId": 5681919108,
  "topicHostName": "终伴",
  "url": "https://s.weibo.com/weibo?q=%23%E5%A9%9A%E5%A7%BB%E4%B8%8E%E7%88%B1%E6%83%85%E7%9A%84%E6%9C%AC%E8%B4%A8%E6%98%AF%E4%BB%80%E4%B9%88%23",
  "snapshotAt": "2026-11-08T17:41:24Z"
}
```

### Use cases

- **Trend monitoring:** follow keyword ranks, popularity scores, and labels across repeated snapshots.
- **Brand and campaign research:** identify brand or campaign mentions in trending topics.
- **Market research:** compare topics across three platforms using `source` and a common `snapshotAt`.
- **Content strategy:** find timely themes and examine topic read and mention counts.
- **AI datasets:** combine keywords, summaries, categories, and `llmText` for classification and retrieval workflows.

### Scheduling and data workflows

Set an hourly Apify schedule and retain `snapshotAt`, `source`, and `keyword` to build a time series. Use `rank` and `hotValue` to compare successive snapshots within each board. Export JSON or CSV, or consume the Apify dataset API for reporting, dashboards, and downstream analysis.

### 中文简介

统一提取微博热搜榜、微博话题榜、百度实时热搜榜与头条热榜的关键词、排名、热度、标记、分类及链接，微博话题数据包含阅读量、讨论量和主持人署名。每次运行使用统一的 `snapshotAt`，适合跨平台趋势对比、品牌研究与内容选题。结合定时运行积累历史数据，或使用 `llmText` 接入 AI 分析流程。

# Actor input Schema

## `sources` (type: `array`):

Which public boards to read. Each source is fetched on its own. A source that fails does not erase rows already saved from the others.

## `weiboBoard` (type: `string`):

Used only when Weibo is selected. 热搜榜 is the realtime hot search. 话题榜 is the public topic board. The 文娱榜 is not available without a login, so it is not offered.

## `maxResults` (type: `integer`):

How many rows to save from each selected source, including a pinned row when that option is on. Minimum 1, maximum 100. Baidu and Toutiao publish about 50 ranked rows. Only saved rows are billed.

## `skipAds` (type: `boolean`):

Skip commercial rows. On Weibo those are placements marked 商 or 荐, or is_ad. On Baidu, hot tag 商. Toutiao's hot board does not mark ads in the public payload.

## `includePinned` (type: `boolean`):

Include the pinned row above the numbered list, such as a Weibo hotgov item, the Baidu top card, or the Toutiao fixed headline. Pinned rows have isPinned true and rank null. They count toward the maximum.

## `includeLlmText` (type: `boolean`):

Add llmText, a Markdown field with the keyword, board, rank, hot value, and public summary.

## `requestIntervalMillis` (type: `integer`):

Minimum pause between public requests. 400ms is the default. The floor is 200ms.

## `maxRetries` (type: `integer`):

Extra attempts after HTTP 412, 429, or 5xx, or a non-JSON blip. A login wall or the Sina Visitor System is not retried.

## `proxyConfiguration` (type: `object`):

Leave Apify Proxy off to connect directly. Turn it on only if public requests are blocked from the run location.

## Actor input object example

```json
{
  "sources": [
    "weibo",
    "baidu",
    "toutiao"
  ],
  "weiboBoard": "hot",
  "maxResults": 50,
  "skipAds": true,
  "includePinned": true,
  "includeLlmText": true,
  "requestIntervalMillis": 400,
  "maxRetries": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `trends` (type: `string`):

All hot-list rows in the default dataset.

# 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 = {
    "sources": [
        "weibo",
        "baidu",
        "toutiao"
    ],
    "weiboBoard": "hot",
    "maxResults": 50,
    "skipAds": true,
    "includePinned": true,
    "includeLlmText": true,
    "requestIntervalMillis": 400,
    "maxRetries": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("rourouk/china-hot-search-scraper").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 = {
    "sources": [
        "weibo",
        "baidu",
        "toutiao",
    ],
    "weiboBoard": "hot",
    "maxResults": 50,
    "skipAds": True,
    "includePinned": True,
    "includeLlmText": True,
    "requestIntervalMillis": 400,
    "maxRetries": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("rourouk/china-hot-search-scraper").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 '{
  "sources": [
    "weibo",
    "baidu",
    "toutiao"
  ],
  "weiboBoard": "hot",
  "maxResults": 50,
  "skipAds": true,
  "includePinned": true,
  "includeLlmText": true,
  "requestIntervalMillis": 400,
  "maxRetries": 3
}' |
apify call rourouk/china-hot-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rourouk/china-hot-search-scraper"
        }
    }
}
```

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/RULHsB1HUFg8vYxOu/builds/jIxIDYqhRSvSMxVRh/openapi.json
