# Weibo Scraper: $4 per 1,000 Posts (`rowfinch/weibo-scraper`) Actor

Scrape Weibo (微博) posts by keyword, user or link: full text, likes, comments, reposts, images and video, with each post's comments, user profiles and the hot search list. No login. $4 per 1,000 posts.

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

## Pricing

from $4.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

Get Weibo (微博) posts by keyword, by user or by link: the whole text, likes, comments, reposts, hashtags, images and video, with the author and where it was posted from. Add each post's comments and replies, users' profiles, or the hot search list (热搜榜). No login or cookies.

**$4 per 1,000 posts.**

### What it's for

- **Brand and market research**: what Chinese consumers say about a brand, a product or a competitor, post by post, with the comments under them.
- **Social listening**: a topic's new posts on a schedule, with a period like `1 day`.
- **KOL analysis**: an account's posts and their likes, comments and reposts, before you work with it.
- **Trend tracking**: Weibo's hot search list with each topic's rank and heat, as often as you run it.
- **Research and AI**: Chinese text with dates and places, ready for sentiment, classification or RAG.

### Input

| Field | What it does |
|---|---|
| `keywords` | Words to search, one per line. Chinese finds far more: `瑞幸` rather than `Luckin` |
| `userIds` | Profile links (`weibo.com/u/…`, `weibo.com/rmrb`) or user IDs |
| `postIds` | Post links (`weibo.com/…/…`, `m.weibo.cn/detail/…`) or IDs |
| `maxResults` | Posts per keyword or user, newest first (default 100; 0 returns the users' profiles alone) |
| `hotSearch` | Adds the hot search list as it is now |
| `maxComments` | Comments per post, Weibo's top ones first (default 0) |
| `maxRepliesPerComment` | Replies under each comment (default 0) |
| `publishedFrom`, `publishedTo` | Days in China time, or a period like `7 days`, for keywords and users |
| `searchType` | `all`, `hot`, `original` (no reposts), `verified` or `media` |
| `includeType` | `all`, `pic`, `video`, `music` or `link` |

Coming from another Weibo scraper? Inputs saved for the most used ones on Apify keep working (`mode`, `searchQuery`, `searchDateFrom`, `includeComments`, `operation`, `keyword`, `weiboIds`…), and posts keep the field names of the most used one (`postId`, `attitudesCount`, `authorFollowers`…).

### Output

One row per post:

```json
{
  "postId": "5356224494441715",
  "postUrl": "https://weibo.com/2803301701/RnAEFiDuz",
  "text": "【#张河清说老登也懂年轻人的奇奇怪怪#】#和年轻人玩在一起的老师真可爱#10月18日，广州大学迎新晚会…",
  "createdAt": "2026-10-20T22:34:56+08:00",
  "source": "微博视频号",
  "region": null,
  "repostsCount": 158,
  "commentsCount": 199,
  "attitudesCount": 1310,
  "topics": ["张河清说老登也懂年轻人的奇奇怪怪", "和年轻人玩在一起的老师真可爱"],
  "images": [],
  "videoUrl": "https://f.video.weibocdn.com/o0/....mp4?label=mp4_720p&...",
  "videoDuration": 28,
  "videoViews": 255009,
  "authorId": "2803301701",
  "authorName": "人民日报",
  "authorUrl": "https://weibo.com/u/2803301701",
  "authorAvatar": "https://tvax4.sinaimg.cn/crop.0.0.1018.1018.1024/....jpg",
  "authorVerified": true,
  "authorVerifiedReason": "《人民日报》法人微博",
  "authorFollowers": 158115462,
  "isRepost": false,
  "repostOf": null,
  "isPinned": false,
  "input": "https://weibo.com/rmrb"
}
```

`attitudesCount` is likes. `region` is the province or country Weibo shows for where the post was sent from. A repost carries the post it shares in `repostOf`, with the same fields. `authorFollowers` comes with users' posts and long posts; search results leave it `null`. Posts found by a keyword also have `keyword`. Video links expire within about an hour: download them right away.

Comments come after their post, each top-level one followed by its replies:

```json
{
  "commentId": "5357329961719950",
  "postId": "5357248551589726",
  "text": "123这么过渡过去的吗 那确实好少[允悲]",
  "createdAt": "2026-10-23T23:47:40+08:00",
  "likeCount": 2,
  "replyCount": 2,
  "region": "广东",
  "authorId": "1000000001",
  "authorName": "Commenter 1",
  "authorUrl": "https://weibo.com/u/1000000001",
  "authorFollowers": 7,
  "replyToCommentId": null,
  "input": "https://weibo.com/7332627069/Ro1in6FyK"
}
```

On replies, `replyToCommentId` is the comment that opens the thread.

With `maxResults: 0`, one row per user: `userId`, `screenName`, `profileUrl`, `description`, `followersCount`, `friendsCount`, `statusesCount`, `verified`, `verifiedReason`, `gender`, `location`, `domain` and `avatarHd`.

With `hotSearch`, one row per topic:

```json
{ "rank": 1, "title": "去年全国结婚登记676万对", "hotValue": 1164999, "labelName": null, "isPromoted": false, "isPinned": false, "url": "https://s.weibo.com/weibo?q=%23...%23", "snapshotAt": "2026-10-24T19:25:26+08:00" }
```

`labelName` is Weibo's badge: 新 new, 热 hot, 沸 boiling, 爆 exploding. The pinned topic and the paid slot have no `rank`.

Users and links that can't be read get a row with the reason, free of charge:

```json
{ "input": "https://weibo.com/1000000001/RnlFthCuX", "error": "Not found" }
```

### Price

- **$4 per 1,000 posts**
- **$2 per 1,000 comments and replies**
- **$4 per 1,000 profiles**
- **$2 per 1,000 hot search topics**
- Deleted posts and invalid users or links: free

| Run | Cost |
|---|---|
| 1,000 posts for a keyword | $4 |
| 100 posts with 20 comments each | $4.40 |
| 100 profiles | $0.40 |
| The hot search list, about 50 topics | $0.10 |

A run stops at the maximum cost you set for it. On Apify's free plan, a run returns up to 100 results.

### FAQ

**Do I need a Weibo account?**
No. It reads what Weibo shows anyone, with no login or cookies.

**How far back does a search go?**
To any date since Weibo began. Weibo shows about 500 results per search, so the dates are split into smaller ranges to reach the posts past that. Without dates, a search starts from the newest posts.

**Why does a search post have no follower count?**
Weibo's post pages leave it out. Add the author to `userIds` with `maxResults: 0` for the profile.

**Is it legal?**
It reads only public posts and profiles. Names and comments are personal data under China's PIPL, the GDPR and similar laws: use them for a legitimate purpose and honor deletion requests.

# Actor input Schema

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

Chinese keywords find far more: 瑞幸 rather than Luckin.

## `userIds` (type: `array`):

Profile links (weibo.com/u/…, weibo.com/rmrb) or user IDs, one per line.

## `postIds` (type: `array`):

Links or post IDs, one per line.

## `maxResults` (type: `integer`):

Newest first. 0 returns the users' profiles alone.

## `hotSearch` (type: `boolean`):

Weibo's board as it is now: about 50 topics with rank and heat.

## `maxComments` (type: `integer`):

Weibo's top comments first.

## `maxRepliesPerComment` (type: `integer`):

0 leaves replies out.

## `publishedFrom` (type: `string`):

China time (UTC+8). A period like 7 days counts back from today, for scheduled runs.

## `publishedTo` (type: `string`):

China time (UTC+8).

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

Weibo's own search tabs.

## `includeType` (type: `string`):

Posts with this attached.

## Actor input object example

```json
{
  "keywords": [
    "瑞幸咖啡"
  ],
  "maxResults": 20,
  "hotSearch": false,
  "maxComments": 0,
  "maxRepliesPerComment": 0,
  "searchType": "all",
  "includeType": "all"
}
```

# Actor output Schema

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

No description

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

No description

## `profiles` (type: `string`):

No description

## `hotSearch` (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 = {
    "keywords": [
        "瑞幸咖啡"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowfinch/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": ["瑞幸咖啡"],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("rowfinch/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": [
    "瑞幸咖啡"
  ],
  "maxResults": 20
}' |
apify call rowfinch/weibo-scraper --silent --output-dataset

```

## MCP server setup

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