# Weibo Hot Search Scraper - Trending Topics (微博热搜) (`apricot_blackberry/weibo-hotsearch-scraper`) Actor

See what China is talking about, minute by minute. Scrape Weibo (微博) live 热搜榜 — rank, keyword, heat value, category — and put it on a schedule to build a China-trend time series no one else has. Cookie-free, no login.

- **URL**: https://apify.com/apricot\_blackberry/weibo-hotsearch-scraper.md
- **Developed by:** [Creator Fusion](https://apify.com/apricot_blackberry) (community)
- **Categories:** Social media, AI, Other
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 hot search items

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Weibo Hot Search Scraper — Trending Topics (微博热搜)

**Cookie-free Weibo / 微博 hot search scraper.** Weibo's 热搜榜 (hot search board) is China's real-time pulse — what the whole country is talking about, minute by minute. This Actor pulls the live board with rank, keyword, hot value, category label, and a ready-to-use search URL.

No account, no session cookie, no CAPTCHA. Run it on a schedule to build a China-trend time series.

### Quick start

Just press Start:

```json
{}
```

Both boards:

```json
{ "boards": ["realtime", "hotgov"] }
```

### Output fields

`rank`, `keyword`, `note`, `hotValue`, `label` (e.g. 新 / 热 / 沸), `category`, `board`, `onboardTime`, `searchUrl`, `capturedAt`.

### Why this one

- **Cookie-free** — pure public-endpoint extraction, no login token.
- **Schedule it** — the hot board changes constantly; run this every N minutes with Apify Scheduler to build a trend history no one else has.
- **Search-ready** — every row includes a `searchUrl` so you can pivot straight into the topic.
- **Agent-ready** — typed rows + a SUMMARY in the key-value store, `capturedAt` on every row for time-series joins.
- **Self-healing** — direct first (free); on rate-limit/failure it retries through Apify residential proxy with a fresh rotating session before giving up, so proxy is billed only when needed.

***

### 中文说明（微博热搜采集）

**无需登录 Cookie 的微博热搜采集工具。** 实时拉取微博 **热搜榜** 与 **要闻榜**：排名、关键词、热度值、标签（新/热/沸）、分类，以及可直接跳转的话题搜索链接。

配合 Apify 定时调度，可每隔几分钟抓取一次，积累别人没有的中国热点趋势时间序列。适合舆情监测、内容选题、品牌预警。

```json
{ "boards": ["realtime", "hotgov"] }
```

Apify 平台在中国大陆及台湾地区可正常访问，每月 $5 免费额度，无需信用卡即可试用。

***

### For AI agents

```bash
curl -X POST "https://api.apify.com/v2/acts/apricot_blackberry~weibo-hotsearch-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" -d '{}'
```

Empty input returns the realtime hot board (never an error). Every row is `rowType: "hot-search"` with a `capturedAt` timestamp for building time series.

### Honest limits

- This Actor covers the **hot-search boards**. Individual **post/user timelines** and **keyword search** require a logged-in Weibo session and are not included in this cookie-free version.

# Actor input Schema

## `boards` (type: `array`):

Which trending boards to capture.

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

Cap on rows per board.

## `navigationTimeoutMs` (type: `integer`):

Per-request timeout in milliseconds.

## `maxProxyRetries` (type: `integer`):

If the direct request fails or is rate-limited, retry through Apify residential proxy with a fresh rotating session, up to this many times, before giving up. 0 disables proxy fallback.

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

Self-healing: DIRECT first (free), then Apify residential proxy with a fresh rotating session only if the request fails — so you pay for proxy only when needed. Set your own proxy to override. Proxy data is billed to your Apify account.

## Actor input object example

```json
{
  "boards": [
    "realtime"
  ],
  "maxItems": 100,
  "navigationTimeoutMs": 25000,
  "maxProxyRetries": 3
}
```

# Actor output Schema

## `results` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("apricot_blackberry/weibo-hotsearch-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 = {}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apricot_blackberry/weibo-hotsearch-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/eBTFbnxsNdvYHpqPZ/builds/pGKGzEuHXG0wtshKu/openapi.json
