# 微博 Weibo Scraper - Search, Posts, Comments, Hot Search API (`selleraim.com/weibo-scraper`) Actor

微博 / Weibo scraper and API. Search posts by keyword, pull any user's timeline and profile, get post details with read counts, export comments, and read the live hot-search board (微博热搜). No cookies or login. For social listening, brand monitoring, KOL research and AI datasets.

- **URL**: https://apify.com/selleraim.com/weibo-scraper.md
- **Developed by:** [Seller Aim](https://apify.com/selleraim.com) (community)
- **Categories:** Social media, Developer tools, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 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.

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 — Search, Posts, Comments, Profiles & Hot Search

Scrape **Weibo (微博)**, China's largest public social network, without cookies, login or proxies. Search posts by keyword, pull any user's timeline, read profiles, get full post details with read counts, export comment threads, and capture the live **hot-search board (微博热搜)**.

Every result is one flat row, ready for JSON, CSV or Excel export, or for the Apify API.

### Support / 联系我们

Found a bug, need a field, or want a custom mode? Open a ticket in the **Issues** tab. We answer in English and 中文.

### What can this Weibo scraper do?

| Mode | What you get | Input |
|---|---|---|
| `search` | Posts matching a keyword or `#话题#`, with 7 filters (all, hot, realtime, original, verified, media, viewpoint) | Keywords |
| `userPosts` | A user's timeline, newest first | Profile URLs or user IDs |
| `userProfile` | Followers, following, post count, verification, bio | Profile URLs or user IDs |
| `postDetails` | Full long text, **read count**, likes, comments, reposts, images, video | Post URLs or IDs |
| `comments` | Every comment with author, likes, IP location, optional replies | Post URLs or IDs |
| `hotSearch` | The live hot-search board, about 50 ranked topics | Nothing |

- **No cookies, no login, no proxy setup.** Paste keywords or links and run.
- **Chinese keywords work as-is.** No encoding needed.
- **Any link format.** `weibo.com/<uid>/<code>`, `m.weibo.cn/detail/<id>`, `weibo.com/u/<uid>`, custom profile names like `weibo.com/rmrb`, or bare numeric IDs.
- **You only pay for rows you receive.** Failed inputs cost nothing.

### Why scrape Weibo?

- **Brand and reputation monitoring** — track what Chinese consumers say about a brand, product or campaign.
- **Trend research** — the hot-search board shows what China is talking about right now.
- **KOL and influencer research** — compare follower counts and engagement across accounts.
- **Sentiment analysis and AI datasets** — export posts and comment threads as clean text.
- **News and public-opinion tracking** — follow media and official accounts.

### How to use it

1. Click **Try for free**.
2. Pick a **mode**.
3. Fill the matching field: keywords, users, or post links.
4. Set **Max results** per keyword, user or post. This is your cost cap.
5. Click **Start**, then export from the **Output** tab or fetch via API.

Running with no input searches today's top hot-search topic, so you can see real output straight away.

### Input examples

Search hot posts for two keywords:

```json
{
    "mode": "search",
    "keywords": ["人工智能", "新能源汽车"],
    "searchType": "hot",
    "maxItemsPerInput": 100
}
```

A user's latest 200 posts:

```json
{
    "mode": "userPosts",
    "users": ["https://weibo.com/u/2803301701"],
    "maxItemsPerInput": 200
}
```

Comments with replies:

```json
{
    "mode": "comments",
    "postUrls": ["https://weibo.com/2803301701/Rs6lh3hPy"],
    "maxItemsPerInput": 500,
    "includeReplies": true
}
```

The hot-search board:

```json
{ "mode": "hotSearch" }
```

### Output

Each row carries a `type` field: `post`, `comment`, `profile` or `hotSearch`.

A post (from `userPosts` or `postDetails`):

```json
{
    "type": "post",
    "postId": "5366975670783528",
    "mblogId": "Rs6lh3hPy",
    "url": "https://weibo.com/2803301701/Rs6lh3hPy",
    "text": "【…】11月19日，…",
    "createdAt": "2026-11-19T06:36:16.000Z",
    "authorId": "2803301701",
    "authorName": "人民日报",
    "authorUrl": "https://weibo.com/u/2803301701",
    "authorVerified": true,
    "source": "微博视频号",
    "repostsCount": 12,
    "commentsCount": 31,
    "likesCount": 94,
    "readsCount": 87056,
    "hashtags": ["…"],
    "images": [],
    "videoUrl": "http://f.video.weibocdn.com/…mp4",
    "videoDurationSecs": 15,
    "scrapedAt": "2026-11-19T06:50:00.000Z"
}
```

A comment:

```json
{
    "type": "comment",
    "commentId": "5366976370446341",
    "postId": "5366975670783528",
    "text": "欢迎👏",
    "likesCount": 0,
    "replyCount": 0,
    "createdAt": "2026-11-19T06:39:03.000Z",
    "ipLocation": "重庆",
    "authorId": "6696356676",
    "authorName": "…",
    "authorFollowers": 1100,
    "authorGender": "male",
    "isReply": false,
    "parentCommentId": null
}
```

A hot-search entry:

```json
{ "type": "hotSearch", "rank": 2, "keyword": "…", "heat": 1023320, "tag": "新", "isPinned": false, "url": "https://s.weibo.com/weibo?q=…" }
```

The entry Weibo pins above the board comes first with `rank: 0`, `isPinned: true` and no heat value.

#### Field availability — read this before you build on it

- **`readsCount` is only returned by `postDetails`.** Search and timeline rows leave it empty. To get read counts for search results, feed their `url` values into a `postDetails` run.
- **Search filters differ in richness.** `all`, `hot` and `realtime` return full rows: likes, comments, reposts, author followers, verification and IP location. `original`, `verified`, `media` and `viewpoint` return lighter rows without engagement counts, `authorVerified`, `authorFollowers` or `ipLocation`.
- **`realtime` goes deeper with lighter rows.** Weibo serves only the newest dozen or so posts in full; rows beyond that are the lighter kind. To get counts for them, feed their `url` values into a `postDetails` run.
- **Long posts are cut short in search and timeline rows** (`isLongText: true`). `postDetails` returns the full text.
- **Lighter rows take their timestamp from display text** (for example `11月18日 09:17`). `createdAt` is converted to UTC on a best-effort basis and the original is kept in `createdAtText`.
- **Weibo limits how deep a keyword search goes** — typically a few hundred posts per keyword and filter. For more coverage, run several filters or narrower keywords.
- **`includeReplies` returns up to 20 replies per comment**, not every nested reply of very long threads. Replies count toward your limit, so raise **Max results** when you turn it on.
- **Some posts only expose a curated set of comments** (博主精选评论). The Actor returns what Weibo shows publicly.
- **`ipLocation` on comments** is the province Weibo displays ("来自 重庆"); it is absent on some older comments.

### Pricing

**$4.99 per 1,000 results**, pay per result. A result is one dataset row: one post, one comment, one profile or one hot-search entry.

| Example | Rows | Cost |
|---|---|---|
| Hot-search board | about 50 | about $0.25 |
| 200 posts for a keyword | 200 | $1.00 |
| 1,000 comments | 1,000 | $4.99 |
| 100 profiles | 100 | $0.50 |

Platform compute is included in the per-result price. There is a negligible per-run start fee ($0.00005). Use **Max results** to cap what a run can cost.

On the Apify free plan, runs are limited to a small sample (10 results, 2 runs) so you can check the data before upgrading.

### Tips

- Use `searchType: "realtime"` to monitor a keyword over time, and schedule the run hourly or daily.
- Use `searchType: "hot"` for the posts that drove the conversation.
- Chain modes: `search` → take the `url` column → `comments` for full threads.
- Schedule `hotSearch` every 10–30 minutes to build a trend history.

### FAQ

**Do I need a Weibo account or cookies?** No.

**Can I scrape private or follower-only posts?** No. Only publicly visible content is returned.

**A post returned nothing.** It was deleted, made private, or the link is not a post link. The run log names the reason per input, and you are not charged for it.

**Is it legal to scrape Weibo?** The Actor returns only publicly available data. You are responsible for how you use it; personal data is protected by laws such as GDPR and China's PIPL. Consult a lawyer if unsure.

**Can I call it from code?** Yes — use the Apify API, the JavaScript or Python client, or integrations such as Make, n8n and Zapier.

### 中文说明

微博数据采集工具，无需 Cookie、无需登录、无需代理。

- **关键词搜索**：支持综合、热门、实时、原创、认证用户、媒体、观点七种筛选。
- **用户微博 / 用户资料**：支持主页链接、自定义域名或数字 UID。
- **微博详情**：长文全文、阅读数、点赞、评论、转发、图片与视频地址。
- **微博评论**：评论内容、作者、点赞数、IP 属地，可选包含回复。
- **微博热搜榜**：实时热搜约 50 条，含排名与热度。

按结果计费：**每 1,000 条 $4.99**。失败的输入不收费。阅读数仅在"微博详情"模式返回。

# Actor input Schema

## `mode` (type: `string`):

search = posts matching keywords · userPosts = a user's timeline · userProfile = follower counts and bio · postDetails = full text and read count of given posts · comments = comments under given posts · hotSearch = the live hot-search board (微博热搜).

## `keywords` (type: `array`):

For mode "search". One search per keyword; Chinese keywords and #话题# work. Leave empty to run a demo on today's top hot-search topic. 留空则自动演示当前热搜第一的话题。

## `searchType` (type: `string`):

For mode "search". all = everything by relevance · hot = popular posts · realtime = newest first · original = original posts only · verified = verified accounts · media = media outlets · viewpoint = opinion posts.

## `users` (type: `array`):

For modes "userPosts" and "userProfile". Profile URLs (https://weibo.com/u/2803301701, https://weibo.com/rmrb) or numeric user IDs. 支持主页链接或数字 UID。

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

For modes "postDetails" and "comments". Post URLs (https://weibo.com/2803301701/Rs6lh3hPy, m.weibo.cn links) or numeric post IDs. 支持网页链接、手机端链接或数字 ID。

## `maxItemsPerInput` (type: `integer`):

Stop after this many results for each keyword, user or post. Results are billed per row, so this is your cost cap. 每个关键词、用户或微博的采集上限,也是你的成本上限。

## `includeReplies` (type: `boolean`):

For mode "comments". Also return the replies shown under each top-level comment as their own rows with parentCommentId set. Replies count toward the limit above. 回复会作为独立行返回,并计入上限。

## Actor input object example

```json
{
  "mode": "search",
  "keywords": [
    "人工智能"
  ],
  "searchType": "all",
  "users": [
    "https://weibo.com/u/2803301701"
  ],
  "postUrls": [],
  "maxItemsPerInput": 50,
  "includeReplies": false
}
```

# Actor output Schema

## `results` (type: `string`):

Every scraped post, comment, profile or hot-search entry, one row each, tagged with a `type` field.

## `consoleOutput` (type: `string`):

Browse and export the results as JSON, CSV, Excel or HTML.

# 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 = {
    "keywords": [
        "人工智能"
    ],
    "users": [
        "https://weibo.com/u/2803301701"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("selleraim.com/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 = {
    "keywords": ["人工智能"],
    "users": ["https://weibo.com/u/2803301701"],
}

# Run the Actor and wait for it to finish
run = client.actor("selleraim.com/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 '{
  "keywords": [
    "人工智能"
  ],
  "users": [
    "https://weibo.com/u/2803301701"
  ]
}' |
apify call selleraim.com/weibo-scraper --silent --output-dataset

```

## MCP server setup

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