# China Trends Scraper 中国热搜采集器 - Weibo, Douyin, Baidu & More (`lofomachines/china-trends`) Actor

China trends API / 中国热搜榜数据采集. Collect current Weibo, Douyin, Baidu, Zhihu, B站, Toutiao, Tieba & Juejin rankings. 热度/排名/话题导出 Excel/CSV/JSON. 每个平台10/20/30/50条. No platform login 无需平台登录. AI-Agent friendly.

- **URL**: https://apify.com/lofomachines/china-trends.md
- **Developed by:** [Lofomachines](https://apify.com/lofomachines) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Trends Scraper 中国热搜采集器 – Hot Searches, Topics & Video Rankings

**Apify Free plan: each run returns only the first 3 trends per source**, even if you select 10, 20, 30 or 50. [Upgrade to a paid Apify plan](https://console.apify.com/billing) to unlock your selected limit, subject to source availability. Free-plan output includes **one additional `type: "upgrade_notice"` row** explaining the limit and upgrade link. Trend rows have `type: "trend"`; filter by that value in downstream workflows. The notice is informational and is not a trend.

**Collect current China trending topics and hot-search rankings from eight platforms in one run — no platform login, cookies or coding required.** Select your sources, click Start, and download current trending searches, topics, questions, articles and videos with rankings, links and the details each source provides.

China Trends Scraper helps marketers, researchers, journalists and content teams discover conversations in China without opening eight different websites. No coding, keyword lists or source-platform API keys are required.

**[Discover more data tools by Lofomachines →](https://apify.com/lofomachines)**

> 🌐 [中文说明：微博、抖音、百度等八大平台热榜采集](#中文说明)

> 📈 Current rankings • 🔓 No platform login • 📊 Excel / CSV / JSON • 🤖 Structured data for AI workflows

### What can you collect?

| Source | Current board | Additional details when available |
| --- | --- | --- |
| **Weibo 微博** | Hot searches | Popularity, native position and trend labels |
| **Zhihu 知乎** | Hot questions | Heat, excerpts, thumbnails, answers, followers and comments |
| **Bilibili 哔哩哔哩** | All-category video ranking | Views, likes, comments, shares, favorites, coins, duration, creator and cover image |
| **Baidu 百度** | Realtime hot searches | Hot score, descriptions, images and movement labels |
| **Toutiao 今日头条** | Hot events | Hot value, preview images, categories and topic IDs |
| **Douyin 抖音** | Hot searches | Hot value and board refresh time; other details if supplied |
| **Tieba 百度贴吧** | Hot topics | Discussion count, descriptions, images and topic creation time |
| **Juejin 掘金** | Hot articles | Heat score, authors, views, likes, favorites and comments |

Every run collects up to **10, 20, 30 or 50 trends per selected source**, according to your selection. The default selection is 50; Free accounts are capped at 3 per source. Board lengths are controlled by the platforms and can vary. This is a snapshot of these boards, not an exhaustive crawl of every trending item or every category on a platform.

Bilibili provides a current video ranking, not a search-keyword ranking. Each platform determines its own ranking and freshness window; “current” means the board returned at collection time, not content published today.

### How to use China Trends Scraper

1. **Choose your sources.** All eight platforms are selected by default. Keep the ones you need.
2. **Click Start.** The Actor collects the current boards and their available details.
3. **Explore your results.** Open the output table to view trends, or use the details view for images, authors and engagement metrics.
4. **Download your data.** Export to Excel, CSV or JSON. JSON preserves nested metrics and original source data most conveniently.

The input form has two selectors: **Sources** and **Max items per source** (10, 20, 30 or 50; default 50).

#### Input example

Collect Weibo, Baidu and Douyin:

```json
{
  "sources": ["weibo", "baidu", "douyin"],
  "maxItemsPerSource": "20"
}
```

To collect every source, keep the default selection or submit `{}` through the API. The accepted source names are `weibo`, `zhihu`, `bilibili`, `baidu`, `toutiao`, `douyin`, `tieba` and `juejin`. Select at least one source.

### What does the output look like?

Each trend is saved as a separate row with `type: "trend"`. Free-plan runs also include one informational `upgrade_notice` row. The following **illustrative, abbreviated example** shows the main fields; it is not a claim about a currently trending topic:

```json
{
  "source": "douyin",
  "sourceName": "Douyin",
  "board": "Hot searches",
  "trendType": "hot_search",
  "rank": 1,
  "title": "示例热门话题",
  "url": "https://www.douyin.com/search/%E7%A4%BA%E4%BE%8B%E7%83%AD%E9%97%A8%E8%AF%9D%E9%A2%98",
  "popularity": 1234567,
  "popularityLabel": "Douyin hot value",
  "popularityText": "1234567",
  "description": null,
  "imageUrl": null,
  "author": null,
  "metrics": {},
  "collectedAt": "2026-10-21T12:00:00.000Z",
  "sourceUpdatedAt": "2026-10-21T19:58:00+08:00"
}
```

| Field | Meaning |
| --- | --- |
| `source`, `sourceName`, `board`, `trendType` | Where the trend came from and what kind of board it belongs to |
| `rank` | One-based position in the returned board, preserving its order |
| `sourceRank` | Explicit position supplied by the source, when available |
| `title`, `url` | Original title and a link to the topic, search or content |
| `popularity`, `popularityLabel`, `popularityText` | Numeric value, metric name and original displayed value |
| `description`, `imageUrl` | Excerpt and preview image when supplied |
| `author`, `authorUrl`, `category`, `labels` | Available creator and classification information |
| `metrics` | Source-specific engagement counts, such as views, likes or answers |
| `publishedAt` | Publication or creation time when supplied; not the time it became trending |
| `collectedAt`, `sourceUpdatedAt` | Collection time and explicit board refresh time when available |
| `sourceItemId`, `boardUrl`, `sourceUrl` | Original ID, board link and collection endpoint |
| `rawData` | Original board entry for additional fields and source-specific details |

Unavailable values remain `null` or absent inside `metrics`; they are not invented or replaced with zero. Original large numeric IDs are preserved as strings so links remain accurate. Titles stay in their original language.

**Popularity scores have different meanings on different platforms.** A Baidu hot score, a Zhihu heat value and Bilibili views are not equivalent search volumes. Use the native rank and metric within each source rather than combining scores into a global ranking.

### Turn current trends into useful decisions

- **Content planning:** Spot conversations worth covering and open the original topics for context.
- **China market research:** See which topics appear on search, social, video and community platforms.
- **News monitoring:** Build a current editorial briefing with direct links and collection timestamps.
- **Brand and category discovery:** Export the boards and look for mentions relevant to your business. Coverage is limited to the returned boards.
- **AI-assisted briefings:** Give your analysis workflow structured, timestamped observations with traceable sources.

### Frequently asked questions

#### Does this Actor search by keyword or provide historical trends?

No. It collects current boards from the sources you select. It does not search the wider platforms or retrieve past periods. You can schedule future runs in Apify and retain those snapshots for your own comparisons.

#### Will every source return the same number of results?

No. A board can return 10, 20, 30, 50 or more entries depending on the source and its current response. The Actor saves up to your selected maximum for each source, preserving board order. Sources with fewer available entries return fewer results.

#### What happens if a platform is unavailable?

The Actor retries temporary request failures and preserves results from the sources that respond. Open **Source availability and counts** to see a per-source summary, errors and any skipped entries. A partial result is explicitly identified. If none of the selected sources returns usable trends, the run fails instead of presenting an empty success.

#### Are images, authors and engagement counts always available?

No. The Actor extracts details included in each board response. It does not open every individual article, question or video to collect extra information. Platform restrictions, response changes and geographic availability can affect results.

#### Do I need a Chinese platform account?

The configured public endpoints do not require a platform login in the Actor. You need an Apify account to run it on Apify. Access is subject to each source's current availability; no permanent availability is promised.

#### Can I use the results in other tools?

Yes. Download a spreadsheet, use the Apify API, or connect a workflow through tools such as Make or Zapier. Each run includes a dataset of trends and a separate source summary.

### Explore more data sources

Build a broader research workflow with tools from the same creator. **[Browse all Lofomachines Actors on Apify →](https://apify.com/lofomachines)**

### Credits

Inspired by [hot-trending-mcp](https://github.com/boy-373/hot-trending-mcp) by boy-373, licensed under MIT. This standalone Apify Actor collects data directly from source platforms; it does not require the original hosted MCP server. The upstream license is included in `LICENSE`. The product is not affiliated with the listed platforms.

***

<a id="中文说明"></a>

## 中国热搜采集器 China Trends Scraper – 中文说明

**Apify 免费套餐：每次运行每个平台最多返回前3条趋势**，即使选择10、20、30或50条也受此限制。[升级 Apify 付费套餐](https://console.apify.com/billing) 后可解锁所选上限，实际条数取决于来源。免费套餐输出额外包含一条 `type: "upgrade_notice"` 提示，提供升级链接；趋势数据行标记为 `type: "trend"`，下游分析请按此字段筛选。

**一键采集微博热搜、抖音热榜、百度热搜、知乎热榜、B站视频排行榜、今日头条热榜、百度贴吧热议话题及掘金热门文章。** 选择平台和每个平台的最大条数，即可获得结构化的排名、标题、热度、原文链接及可用的补充信息，导出 Excel、CSV 或 JSON。

无需登录来源平台，无需提供 Cookie 或平台 API 密钥。适合中文内容团队、品牌营销、市场调研、媒体编辑及 AI 数据工作流。使用 Apify 云端运行需要 Apify 账号。

> 📈 八个平台 • 🔓 无需平台登录 • 📊 表格导出 • 🤖 API / AI 工作流

### 支持哪些平台和数据？

| 平台 | 采集榜单 | 可用补充数据 |
| --- | --- | --- |
| 微博 Weibo | 当前热搜榜 | 热度、来源排名、热搜标签 |
| 抖音 Douyin | 当前热搜榜 | 热度、榜单更新时间 |
| 百度 Baidu | 实时热搜榜 | 热搜指数、摘要、图片、变化标签 |
| 知乎 Zhihu | 热门问题榜 | 热度、问题摘要、回答数、关注数、评论数 |
| 哔哩哔哩 B站 Bilibili | 当前全站视频排行榜 | 播放、点赞、投币、收藏、分享、弹幕、评论数、UP主、封面和时长 |
| 今日头条 Toutiao | 热点事件榜 | 热度、图片、分类、话题ID |
| 百度贴吧 Tieba | 热议话题榜 | 讨论数、话题简介、图片、创建时间 |
| 掘金 Juejin | 热门文章榜 | 热度、作者、阅读、点赞、收藏、评论数 |

补充字段取决于平台榜单实际返回的数据。B站返回的是视频排行榜；各平台的榜单类型和统计周期不同。

### 适合谁使用？

| 你是… | 可以如何使用 |
| --- | --- |
| 内容创作者 / 新媒体运营 | 发现热门选题，打开原文了解话题背景 |
| 品牌方 / 营销机构 | 查看品牌或品类是否出现在当前榜单，发现传播线索 |
| 媒体 / 编辑团队 | 汇总多个平台热点，制作每日选题简报 |
| 市场研究人员 | 对比不同平台当前关注的话题，积累后续观察样本 |
| 数据 / AI 团队 | 将带来源链接和采集时间的数据接入分析、摘要或看板 |

品牌监测范围限于采集到的榜单条目；可在导出后筛选相关词语。

### 如何开始？

1. 在 **Sources / 数据来源** 中选择一个或多个平台，默认全选。
2. 在 **Max items per source / 每个平台最大条数** 中选择 **10、20、30 或 50**，默认 50。
3. 点击 **Start**，等待采集完成。
4. 在输出表格查看结果，下载 Excel、CSV、JSON，或通过 Apify API 获取。

#### 输入示例：采集微博、百度和抖音各最多20条

```json
{
  "sources": ["weibo", "baidu", "douyin"],
  "maxItemsPerSource": "20"
}
```

`maxItemsPerSource` 使用字符串选项 `"10"`、`"20"`、`"30"`、`"50"`。每个平台单独应用上限，实际条数可能少于所选值。付费套餐全部八个平台每次最多返回400条趋势；免费套餐最多24条趋势，另加一条升级提示。

### 输出示例

下面是简化的格式示例，标题及数值仅用于说明：

```json
{
  "source": "douyin",
  "sourceName": "Douyin",
  "board": "Hot searches",
  "rank": 1,
  "title": "示例热门话题",
  "url": "https://www.douyin.com/search/示例热门话题",
  "popularity": 1234567,
  "popularityLabel": "Douyin hot value",
  "popularityText": "1234567",
  "metrics": {},
  "collectedAt": "2026-10-22T12:00:00.000Z"
}
```

| 字段 | 含义 |
| --- | --- |
| `source` / `sourceName` / `board` | 平台及榜单 |
| `rank` / `sourceRank` | 返回顺序中的排名，以及来源明确提供的排名 |
| `title` / `url` | 原文标题及话题、搜索或内容链接 |
| `popularity` / `popularityLabel` / `popularityText` | 数字热度、指标名称、原始热度文本 |
| `description` / `imageUrl` | 来源提供的摘要和图片 |
| `author` / `authorUrl` | 可用的作者及主页链接 |
| `category` / `labels` | 可用分类及标签 |
| `metrics` | 平台提供的播放、点赞、回答等数据 |
| `publishedAt` | 内容发布时间或创建时间（若有） |
| `collectedAt` / `sourceUpdatedAt` | 采集时间及来源明确提供的榜单更新时间 |
| `sourceItemId` / `sourceUrl` / `boardUrl` | 原始ID、采集接口和榜单链接 |
| `rawData` | 原始榜单条目中的其他字段 |

缺失信息保留为空值，不会编造数据。标题保留原语言，大整数ID按字符串保存以避免精度丢失。

### 为什么选择这个中国热榜采集器？

- **一次运行覆盖多个平台**：统一查看搜索、社交、视频和社区热点。
- **两个选择项即可开始**：选择来源和条数，无需填写技术参数。
- **结构一致，便于分析**：一条趋势对应一行，保留来源和时间。
- **补充数据随结果返回**：榜单包含的摘要、图片、作者和互动指标一并导出。
- **支持自动化**：通过 Apify 定时任务、API 和集成连接研究流程。
- **明确标记来源故障**：一个平台暂时不可用时，保留其他平台结果。

### 常见问题

**需要微博、抖音或其他平台账号吗？**
无需提供来源平台账号或 Cookie。Actor 使用公开榜单接口；平台访问限制或接口变化可能影响可用性。

**这是实时热搜API吗？**
每次运行读取各来源当前返回的榜单，是采集时刻的快照。各平台可能缓存榜单，刷新频率和排名规则由平台决定。

**能按关键词搜索或选择过去7天、30天吗？**
当前功能采集所选平台的当前榜单。若需要持续观察，可在 Apify 设置后续定时运行并保留各次结果，用于自行比较。

**所有热度数值可以直接比较吗？**
各平台热度、播放量及讨论数的含义不同。请在同一平台内比较排名与对应指标，不要把不同平台数值当作统一搜索量。

**为什么有的平台返回不足50条？**
榜单长度由来源决定。选择50表示每个平台最多50条；不会补齐不存在的条目。

**一个来源失败会影响其他结果吗？**
其他来源结果会保存。打开 **Source availability and counts** 查看来源状态、条数和错误。所有来源均无法返回有效数据时，运行会失败。

**可以连接 Excel、Google Sheets 或 AI Agent 吗？**
可以下载 Excel、CSV、JSON，或通过 Apify API 与相关集成传递结果。结构化字段、来源链接及采集时间便于后续 AI 摘要和数据分析。

### 发现更多数据工具

需要B站视频搜索、UP主资料或评论数据？查看 [Bilibili Scraper 哔哩哔哩采集器](https://apify.com/lofomachines/bilibili-scraper)。

**[浏览 Lofomachines 的更多采集器与自动化工具 →](https://apify.com/lofomachines)**

# Actor input Schema

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

All eight sources are selected by default. Choose one or more. Bilibili returns the current video ranking; other sources return hot searches, topics, questions or articles. If a source is temporarily unavailable, results from the others are still saved.

## `maxItemsPerSource` (type: `string`):

Maximum trends to return from each selected source. A source may provide fewer items. Apify Free: first 3 trends per source only, even when a higher maximum is selected. Upgrade your Apify plan at https://console.apify.com/billing for the selected limit (10/20/30/50), subject to availability. 免费套餐每个平台最多前3条；升级 Apify 付费套餐可解锁所选条数。

## Actor input object example

```json
{
  "sources": [
    "weibo",
    "zhihu",
    "bilibili",
    "baidu",
    "toutiao",
    "douyin",
    "tieba",
    "juejin"
  ],
  "maxItemsPerSource": "50"
}
```

# Actor output Schema

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

One row per current board entry, including source, rank, title, popularity, links and available metadata. Free-plan runs include one additional upgrade_notice row with a billing link; filter type=trend for trend data.

## `summary` (type: `string`):

Check which sources responded, how many entries were returned and whether any source failed.

# 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",
        "zhihu",
        "bilibili",
        "baidu",
        "toutiao",
        "douyin",
        "tieba",
        "juejin"
    ],
    "maxItemsPerSource": "50"
};

// Run the Actor and wait for it to finish
const run = await client.actor("lofomachines/china-trends").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",
        "zhihu",
        "bilibili",
        "baidu",
        "toutiao",
        "douyin",
        "tieba",
        "juejin",
    ],
    "maxItemsPerSource": "50",
}

# Run the Actor and wait for it to finish
run = client.actor("lofomachines/china-trends").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",
    "zhihu",
    "bilibili",
    "baidu",
    "toutiao",
    "douyin",
    "tieba",
    "juejin"
  ],
  "maxItemsPerSource": "50"
}' |
apify call lofomachines/china-trends --silent --output-dataset

```

## MCP server setup

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

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/ntXE4JhBMcFG0V3dU/builds/MIePcvy2MnzHFy7ll/openapi.json
