# Weibo Scraper: Hot Search, Posts, Search & Comments (No Login) (`cn-data-lab/weibo-scraper`) Actor

Scrape Weibo (微博): real-time Hot Search ranking with heat scores, top posts per trending topic, keyword search, post details and comments. No login, no cookies, privacy-first.

- **URL**: https://apify.com/cn-data-lab/weibo-scraper.md
- **Developed by:** [CN Data Lab](https://apify.com/cn-data-lab) (community)
- **Categories:** Social media, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 posts

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

## Weibo Scraper: Hot Search, Trending Posts, Search & Comments (No Login)

Scrape **Weibo (微博)**, China's biggest public social network, with **no login, no cookies and no browser**. Track what 600M+ Chinese users are talking about right now.

- 🔥 **Real-time Hot Search (微博热搜榜)**: about 50 trending topics with rank, **heat score** and label (新 new / 热 hot / 沸 boiling / 爆 explosive). Promoted (ad) topics are filtered out.
- 📰 **Top posts for every trending topic**: see *why* a topic is trending, in one run
- 🔎 **Keyword and #hashtag# search**: top, real-time and hot tabs
- 🔗 **Post URLs → full post details**, with long posts automatically expanded (全文)
- 💬 **Comments**: paginated, with likes, reply counts and timestamps
- 🔒 **Privacy-first**: only **verified accounts** (media, brands, officials, public figures) are identified. Ordinary users are anonymized by default.
- 💸 **Low price, pay only for results**: posts $3/1,000, comments $1/1,000, trends $1/1,000

### Who uses Weibo data?

| Use case | What you get |
|---|---|
| **Trend & news monitoring** | Hourly or daily Hot Search snapshots with heat, plus the posts behind each topic |
| **Brand & product monitoring in China** | Posts and comments about your brand, competitors or launch (e.g. 比亚迪, iPhone, DeepSeek) |
| **Media, PR & government affairs** | What official and media accounts post, and how the public reacts |
| **Finance & research** | Sentiment around companies, policies and events |
| **AI / LLM** | Fresh, timestamped Chinese social text |

**Pair it with our [Bilibili Scraper](https://apify.com/cn-data-lab/bilibili-scraper)** to get video and danmaku reactions. Together they give you full Chinese social listening.

### How to use

1. Click **Try for free**.
2. Keep **Hot Search** on and/or add **keywords** or **post URLs**.
3. Optional: set **Top posts per trending topic** and turn on **comments**.
4. Click **Start**. Export to JSON, CSV or Excel, use the API, or schedule it (e.g. every hour, to build a Hot Search history).

#### Input example

```json
{
  "includeHotSearch": true,
  "maxHotSearchTopics": 50,
  "postsPerHotTopic": 3,
  "searchKeywords": ["比亚迪", "#iPhone17#"],
  "searchTypes": ["top", "realtime"],
  "maxPostsPerKeyword": 30,
  "postUrls": ["https://weibo.com/2656274875/Rnd3XnJF3"],
  "scrapeComments": true,
  "maxCommentsPerPost": 100
}
```

### Output

Each dataset item has a `type`: `trend`, `post`, `comment` or `error`. There are ready-made views for **Hot Search**, **Posts** and **Comments**.

#### Trend (real example)

```json
{"type": "trend", "rank": 1, "topic": "法国骚乱百年市政厅被烧毁", "heat": 1154575, "label": null, "isAd": false,
 "topicUrl": "https://s.weibo.com/weibo?q=%23%E6%B3%95%E5%9B%BD...%23", "snapshotAt": "2026-10-18T08:48:21+00:00"}
```

#### Post (real example, verified media account)

```json
{
  "type": "post",
  "postId": "5355354680723366",
  "url": "https://m.weibo.cn/detail/5355354680723366",
  "text": "#法国多地骚乱#【#法国骚乱百年市政厅被烧毁#】当地时间17日，法国数十万人走上街头……",
  "createdAt": "2026-10-18T04:58:36+00:00",
  "reposts": 396, "comments": 511, "likes": 5156,
  "hashtags": ["法国多地骚乱", "法国骚乱百年市政厅被烧毁"],
  "hasVideo": true,
  "authorVerified": true, "authorName": "央视新闻", "authorVerifiedReason": "中央广播电视总台央视新闻官方账号",
  "authorFollowers": 141000000,
  "source": "hotTopic", "hotTopic": "法国骚乱百年市政厅被烧毁", "hotTopicRank": 1
}
```

#### Comment (real example)

```json
{"type": "comment", "postId": "5355375382498938", "text": "今年的法考，难的我怀疑监考老师是不是偷偷把我的草稿纸给吃了",
 "createdAt": "2026-10-18T06:26:03+00:00", "likes": 12, "replyCount": 1, "authorVerified": true, "authorName": "评论罗伯特"}
```

For a non-verified user, `authorId` and `authorName` are `null`, and their name is masked in the text.

### Pricing (pay per event)

| Event | Price |
|---|---|
| Post | **$0.003** ($3 per 1,000) |
| Comment | **$0.001** ($1 per 1,000) |
| Hot Search topic | **$0.001** ($1 per 1,000) |

Failed inputs come back as `error` items and are **not charged**. Your **maximum cost per run** is respected. A full Hot Search snapshot (50 topics) costs **$0.05**. Running it every hour for a month costs about $36.

### FAQ

**Do I need a Weibo account or cookies?** No. The Actor uses the same anonymous guest access a browser gets when it opens Weibo without logging in.

**How many search results per keyword?** Weibo shows logged-out visitors the **first page** of each search tab, about 10 posts. With all three tabs (top, real-time, hot) that is about 20–30 unique posts per keyword. For more coverage, add more specific keywords and hashtags, or use `postsPerHotTopic`. Deep historical search needs a logged-in account, which this Actor intentionally doesn't use.

**Comments limit?** Comments are paginated. In our tests guest access returned 60+ comments per post without issues.

**Personal data?** By default only verified accounts are identified, and ordinary users are anonymized. If you enable `includeAllAuthors`, you are responsible for having a lawful basis under GDPR, PIPL and other applicable laws.

**Is it legal?** The Actor collects only data that Weibo shows to any anonymous visitor. It doesn't log in or bypass access controls. Make sure your use complies with Weibo's terms and the laws that apply to you.

### Keywords

Weibo scraper, Weibo API, 微博爬虫, 微博热搜, Weibo hot search, Weibo trending, Weibo comments scraper, Chinese social media monitoring, China social listening, Sina Weibo data.

# Actor input Schema

## `includeHotSearch` (type: `boolean`):

Save the current Weibo Hot Search ranking: topic, rank, heat score and label (新/热/沸/爆).

## `maxHotSearchTopics` (type: `integer`):

How many trending topics to save (Weibo shows about 50).

## `postsPerHotTopic` (type: `integer`):

Also fetch the top posts for each trending topic (0 = off, up to ~10 per topic for guest access).

## `includeAdTopics` (type: `boolean`):

Weibo inserts paid topics into the ranking. They are skipped by default.

## `searchKeywords` (type: `array`):

Find posts by keyword or #hashtag#, e.g. 比亚迪, DeepSeek, #iPhone17#.

## `searchTypes` (type: `array`):

Which Weibo search tabs to collect from: top (综合), realtime (实时, newest) and hot (热门). Guest access returns the first page (~10 posts) of each tab.

## `maxPostsPerKeyword` (type: `integer`):

Upper limit of posts per keyword across the selected tabs.

## `postUrls` (type: `array`):

Weibo post URLs (weibo.com/<uid>/<bid>, m.weibo.cn/detail/<id>) or post IDs.

## `scrapeComments` (type: `boolean`):

Collect comments for every post found (charged per comment).

## `maxCommentsPerPost` (type: `integer`):

Upper limit of comments per post.

## `expandLongText` (type: `boolean`):

Fetch the full text of long posts (全文) instead of the truncated preview.

## `includeAllAuthors` (type: `boolean`):

By default only verified accounts (media, brands, public figures) are identified; ordinary users are anonymized. Enable only if you have a lawful basis to process personal data.

## `maxConcurrency` (type: `integer`):

Parallel requests. Keep it low to stay polite.

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

Optional. Usually not needed.

## Actor input object example

```json
{
  "includeHotSearch": true,
  "maxHotSearchTopics": 50,
  "postsPerHotTopic": 0,
  "includeAdTopics": false,
  "searchKeywords": [
    "DeepSeek"
  ],
  "searchTypes": [
    "top",
    "realtime"
  ],
  "maxPostsPerKeyword": 30,
  "postUrls": [],
  "scrapeComments": false,
  "maxCommentsPerPost": 100,
  "expandLongText": true,
  "includeAllAuthors": false,
  "maxConcurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `posts` (type: `string`):

No description

## `comments` (type: `string`):

No description

## `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 = {
    "searchKeywords": [
        "DeepSeek"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("cn-data-lab/weibo-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 = { "searchKeywords": ["DeepSeek"] }

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

```

## MCP server setup

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