# Weibo 微博 Hot Search Scraper — China Trending Topics (`china-data-lab/weibo-hot-scraper`) Actor

Scrape Weibo hot search (微博热搜), China's real-time trending topics board, as clean JSON. Get every trending item with its ranking, search volume, topic label, category and a clickable search URL, refreshed continuously through the day. This is the fastest public signal of what mainland China is ta...

- **URL**: https://apify.com/china-data-lab/weibo-hot-scraper.md
- **Developed by:** [lijinyu](https://apify.com/china-data-lab) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.74 / 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/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

## Weibo Hot Search Scraper — China Real-Time Trending Topics

Scrape the **Weibo hot search board (微博热搜)** — China's real-time trending topics list — as clean, structured JSON. One run returns every trending topic with its rank, search volume, topic label and a clickable search URL.

No login. No cookies. No proxy. No API key.

### Why Weibo data

Weibo is where mainland China argues, jokes and reacts — and its hot search board is the single fastest public summary of what the country is paying attention to *right now*. It is edited by human moderators and updated continuously, so an entry appearing, climbing or vanishing is itself a signal: a brand crisis in minute three, a policy announcement before the press release, a celebrity story before the aggregators pick it up.

For anyone selling into, reporting on or modelling the Chinese market, this is the cheapest high-frequency indicator available. English-language feeds lag it by hours and rarely expose the underlying ranking or volume.

### Output fields

Every row is one flat record:

| Field | Type | Meaning |
| --- | --- | --- |
| `kind` | string | `top_news` for the pinned item, `hot` for ranked entries |
| `rank` | integer | Board position; `0` is the pinned top news item, `1` is the top of the ranking |
| `word` | string | The topic, verbatim Chinese (`#` kept if Weibo serves it) |
| `hot_value` | integer | Search / discussion volume as Weibo reports it; `null` on the pinned item |
| `label` | string | Weibo's topic flag, e.g. `热`, `新`, `沸`; `null` when unlabelled |
| `url` | string | Ready-to-click `s.weibo.com` search URL for the topic |
| `is_ad` | boolean | Promoted / ad slot |
| `is_new` | boolean | Marked as a new entry on the board |
| `is_hot` | boolean | Marked hot (pinned item is usually `true`) |
| `word_scheme` | string | Hashtag-styled search term Weibo uses for the topic |
| `scraped_at` | string | ISO 8601 timestamp, UTC |

### Use cases

- **Social listening** — poll every few minutes and watch which narratives are accelerating before they cross into mainstream media
- **Brand monitoring** — alert when a brand, product or executive name enters the board, and how high it climbs
- **Newsroom monitoring** — a public-interest tip sheet for editors covering China; diff successive runs to spot suppressed or removed entries
- **China market trend research** — build a dated history of consumer attention, then join it against sales or search-volume series
- **AI / LLM dataset** — collect native Chinese topic strings, labels and volume for topic modelling, sentiment training or retrieval corpora

### Input example

```json
{
  "maxItems": 5,
  "includeTopNews": true,
  "skipAds": true
}
```

| Input | Type | Default | Meaning |
| --- | --- | --- | --- |
| `maxItems` | integer | `50` | Hard cap on returned rows — you pay per result |
| `includeTopNews` | boolean | `true` | Include the pinned top news item |
| `skipAds` | boolean | `true` | Skip promoted / ad entries |

### Output example

Real output from a local run on 2026-11-29 (`{"maxItems": 5, "skipAds": true}`):

```json
[
  {
    "kind": "top_news",
    "rank": 0,
    "word": "#半条被子的故事有了新续篇#",
    "hot_value": null,
    "label": null,
    "is_ad": false,
    "is_new": false,
    "is_hot": true,
    "is_boom": false,
    "word_scheme": null,
    "url": "https://s.weibo.com/weibo?q=%23%E5%8D%8A%E6%9D%A1%E8%A2%AB%E5%AD%90%E7%9A%84%E6%95%85%E4%BA%8B%E6%9C%89%E4%BA%86%E6%96%B0%E7%BB%AD%E7%AF%87%23",
    "scraped_at": "2026-11-29T02:41:56.333352+00:00"
  },
  {
    "kind": "hot",
    "rank": 1,
    "word": "户籍工作人员把刘招男改成刘照嫣",
    "hot_value": 1143449,
    "label": "热",
    "is_ad": false,
    "is_new": false,
    "is_hot": false,
    "is_boom": false,
    "word_scheme": "户籍工作人员把刘招男改成刘照嫣",
    "url": "https://s.weibo.com/weibo?q=%23%E6%88%B7%E7%B1%8D%E5%B7%A5%E4%BD%9C%E4%BA%BA%E5%91%98%E6%8A%8A%E5%88%98%E6%8B%9B%E7%94%B7%E6%94%B9%E6%88%90%E5%88%98%E7%85%A7%E5%AB%A3%23",
    "scraped_at": "2026-11-29T02:41:56.333352+00:00"
  },
  {
    "kind": "hot",
    "rank": 2,
    "word": "爷爷从来没有把刘星当成后孙",
    "hot_value": 839067,
    "label": "热",
    "is_ad": false,
    "is_new": false,
    "is_hot": false,
    "is_boom": false,
    "word_scheme": "#爷爷从来没有把刘星当成后孙#",
    "url": "https://s.weibo.com/weibo?q=%23%E7%88%B7%E7%88%B7%E4%BB%8E%E6%9D%A5%E6%B2%A1%E6%9C%89%E6%8A%8A%E5%88%98%E6%98%9F%E5%BD%93%E6%88%90%E5%90%8E%E5%AD%99%23",
    "scraped_at": "2026-11-29T02:41:56.333352+00:00"
  }
]
```

The same run, trimmed to the overview columns:

| rank | word | hot_value | label |
| --- | --- | --- | --- |
| 0 | #半条被子的故事有了新续篇# | null | null |
| 1 | 户籍工作人员把刘招男改成刘照嫣 | 1143449 | 热 |
| 2 | 爷爷从来没有把刘星当成后孙 | 839067 | 热 |
| 3 | 神23神24在轨交接 | 675995 | null |
| 4 | 霍启山娜然宣布恋情 | 617847 | 热 |

### Pricing

Pay per row returned — a single `result` event per hot-search entry, $0.002 at the FREE tier. A run also incurs the one-time `apify-actor-start` event.

The board is one flat list, so there is nothing else to bill: the actor does not split `result` into sub-events, and the pinned headline entry is charged exactly like any other row. Keep `maxItems` low while you explore — a test run with `maxItems: 5` costs a fraction of a cent.

### Notes and limits

- Only the **public hot search board** is read. No user profiles, no private posts, no comments, no personal data.
- **Rank gaps are expected** — promoted entries are skipped when `skipAds` is on, so positions mirror the real leaderboard (e.g. `rank` jumps from 6 to 8 when slot 7 is an ad). A missing number is a skipped ad, not a dropped record.
- The pinned top news item (`rank: 0`) is deduplicated — Weibo serves it twice in the payload and the actor emits it once, only when `includeTopNews` is `true`.
- Weibo can reword or remove entries between calls, and the board shifts by the minute; two runs minutes apart are expected to differ. Store `scraped_at` and diff runs to build a history.
- `hot_value` is whatever Weibo publishes (roughly search + discussion volume); treat it as a relative signal, not a calibrated absolute.
- Repeated `word` values are collapsed within a single run, so a topic never appears twice in one dataset.
- Export results as JSON, CSV or Excel from the dataset tab, or pull them with the Apify API.

# Actor input Schema

## `maxItems` (type: `integer`):

Hard cap on returned rows — you pay per result.

## `includeTopNews` (type: `boolean`):

Include the pinned top news item (rank 0) that Weibo shows above the ranking.

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

Skip promoted / ad entries.

## Actor input object example

```json
{
  "maxItems": 10,
  "includeTopNews": true,
  "skipAds": true
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# 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 = {
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("china-data-lab/weibo-hot-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 = { "maxItems": 10 }

# Run the Actor and wait for it to finish
run = client.actor("china-data-lab/weibo-hot-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 '{
  "maxItems": 10
}' |
apify call china-data-lab/weibo-hot-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,china-data-lab/weibo-hot-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/zLxJtqKQ0wZ7lRubh/builds/vG3KqwyewXvfzl1P4/openapi.json
