# Weibo Scraper - Posts, Comments, Hot Search, Profiles (`teodor_banea/weibo-scraper`) Actor

Scrape public Weibo data: keyword search posts with a date window, user posts, comments with replies, post details with full text, the hot-search board and profile details. No login, no proxy setup.

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

## Pricing

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

### What does Weibo Scraper do?

Weibo Scraper exports public data from Weibo (微博), China's largest open social network, without a login, cookies of your own or proxy setup. Pick one of six modes:

- **Keyword search** — posts that mention your words, newest first, with an optional date window (Beijing time). Goes deep: hundreds or thousands of posts per query.
- **User posts** — the latest posts of users (by user id, profile link, custom address or screen name), optionally with their older video posts.
- **Comments of posts** — top comments and the newest comments of posts, each followed by up to 10 (configurable) replies.
- **Post details** — one row per post link or id, with the full text of long posts.
- **Hot search board** — the live 50-entry hot-search list (热搜榜) with heat, category and labels; optionally the entertainment board.
- **Profile details** — followers, following, posts, verification, account age and public badges of users.

Every row is flat, every key is always present (null when Weibo has no value), dates are ISO 8601 UTC and counters are integers. Chinese text is kept as-is.

### Why use this Actor?

- **Deep keyword search with a date window** — search walks back in time from the end of your window and stops at its start, so scheduled runs only fetch what is new.
- **User timelines without your own Weibo cookie** — the newest 100 posts of any public account in one request, plus older video posts on request.
- **Full text of long posts** — long posts arrive cut off in lists; the Actor reads the whole text (on by default).
- **Rich rows** — topics, mentions, external links, images, live photos, video URL / cover / duration / plays, repost source, edit date, IP region, promoted flag.
- **Privacy by default** — commenters' screen names are off unless you turn them on; profile bios only for verified accounts; no gender, birthday, school or employer.

### How much does it cost?

The Actor is priced per result: **$2 per 1,000 rows** plus **$0.005 per run start**. Platform usage is included.

| Example run | Rows | Price |
|---|---|---|
| 20 newest posts for 新能源汽车 (the prefilled input) | 20 | $0.045 |
| 1,000 search posts in a date window | 1,000 | $2.005 |
| Newest 100 posts of 10 accounts | 1,000 | $2.005 |
| The hot-search board (one run) | ~52 | ~$0.11 |
| 300 comments of two busy posts | 300 | $0.605 |

Queries without results, users or posts that do not exist and posts without comments produce no rows and cost nothing beyond the start fee.

### Input

| Field | Mode | Description | Example |
|---|---|---|---|
| `mode` | all | `keywordSearch`, `userPosts`, `postComments`, `postDetails`, `hotSearch` or `profiles` | `keywordSearch` |
| `searchQueries` | keyword search | Words or phrases, one per line | `["新能源汽车"]` |
| `dateFrom` / `dateTo` | keyword search, user posts | Day window in Beijing time (UTC+8), both days included; or a period such as `7 days` | `2026-11-01` / `2026-11-07` |
| `maxPostsPerQuery` | keyword search | Posts per query (0 = all Weibo lists) | `100` |
| `users` | user posts, profiles | User id, profile link, custom address or screen name | `["1234567890"]` |
| `maxPostsPerUser` | user posts | Posts per user (newest first) | `100` |
| `includeOlderVideoPosts` | user posts | Go back through older video posts after the newest 100 | `false` |
| `postUrls` | comments, post details | Post links, numeric post ids or post codes | `["https://weibo.com/1234567890/AbCdEfGhI"]` |
| `maxCommentsPerPost` | comments | Comments (with replies) per post | `500` |
| `includeReplies` | comments | Add the replies under each comment | `true` |
| `maxRepliesPerComment` | comments | Replies taken under each comment (0 = all Weibo shows) | `10` |
| `includeCommenterNames` | comments | Add commenters' screen names (off by default) | `false` |
| `includeEntertainmentBoard` | hot search | Add the entertainment hot list | `false` |
| `expandLongText` | posts | Read the full text of long posts (one extra request each) | `true` |
| `maxResults` | all | Stop after this many rows (0 = unlimited, capped at 10,000) | `20` |

### Output

One dataset per run; the row type follows the mode (`rowType` says which). Example post row (fictitious):

```json
{
    "rowType": "post",
    "postId": "5300000000000001",
    "mblogId": "AbCdEfGhI",
    "url": "https://weibo.com/1000000001/AbCdEfGhI",
    "authorId": "1000000001",
    "authorScreenName": "示例品牌官方",
    "authorVerified": true,
    "authorVerifiedType": 2,
    "authorFollowers": 125000,
    "text": "#新能源汽车# 新车型今天发布，续航提升 20%。@示例媒体 http://t.cn/AXexampl",
    "isLongText": false,
    "isTextTruncated": false,
    "createdAt": "2026-11-17T03:30:01Z",
    "editedAt": null,
    "editCount": null,
    "source": null,
    "regionName": "北京",
    "repostsCount": 120,
    "commentsCount": 45,
    "likesCount": 980,
    "picCount": 1,
    "imageUrls": ["https://wx1.sinaimg.cn/mw2000/example1.jpg"],
    "livePhotoUrls": [],
    "videoUrl": null,
    "videoCoverUrl": null,
    "videoDurationSec": null,
    "videoPlayCount": null,
    "isRepost": false,
    "repostedPostId": null,
    "repostedPostUrl": null,
    "repostedAuthorId": null,
    "repostedText": null,
    "topics": ["新能源汽车"],
    "mentions": ["示例媒体"],
    "links": ["http://t.cn/AXexampl"],
    "isPinned": false,
    "isPromoted": false,
    "searchQuery": "新能源汽车",
    "sourceInput": "新能源汽车",
    "scrapedAt": "2026-11-19T10:00:00.000Z"
}
```

Comment row (fictitious, screen names off):

```json
{
    "rowType": "comment",
    "commentId": "5300000000000102",
    "postId": "5300000000000001",
    "postUrl": "https://weibo.com/1000000001/AbCdEfGhI",
    "rootCommentId": "5300000000000101",
    "parentCommentId": "5300000000000101",
    "isReply": true,
    "text": "续航提升很明显",
    "createdAt": "2026-11-17T04:02:11Z",
    "likesCount": 3,
    "replyCount": null,
    "floorNumber": null,
    "regionName": "浙江",
    "imageUrls": [],
    "authorId": "1000000007",
    "authorScreenName": null,
    "authorVerified": false,
    "isPostAuthor": false,
    "sourceInput": "https://weibo.com/1000000001/AbCdEfGhI",
    "scrapedAt": "2026-11-19T10:00:00.000Z"
}
```

Hot-search rows carry `board`, `rank` (0 = the pinned entry; null for promoted entries, which Weibo slots in between), `word`, `label` (热/新/沸…), `category`, `heat`, `onboardAt`, `isTopic`, `isPinned`, `isPromoted`, `subjects` and a search `url`. Profile rows carry `userId`, `screenName`, `url`, `customDomain`, `verified`, `verifiedType`, `verifiedReason`, `description`, `followersCount`, `followingCount`, `postsCount`, `totalInteractions`, `memberRank`, `isSvip`, `labels`, `avatarUrl`, `coverUrl`, `createdAt` and `createdAtBeijing`.

Inputs that could not be read (unknown users, deleted posts, pages Weibo shows only to logged-in users) are listed under **ERRORS** in the run's key-value store with a plain-language reason; they never stop the rest of the run.

### What Weibo shows logged-out visitors (read this)

- **Keyword search is a large sample, not every post.** Weibo filters what its search shows (spam, low-quality and sensitive posts are left out), for logged-in users too. Busy keywords give thousands of posts; niche ones fewer.
- **Search is newest first.** Each query starts at the end of your date window (or now) and walks back in time. A run capped by Maximum posts per query or Maximum results therefore covers the most recent part of the window, not a spread across it — raise the limits or narrow the window to cover all of it.
- **User posts: the newest 100 per user.** Weibo lists only a user's newest 100 posts to logged-out visitors. Older posts can be added only when they are videos (`includeOlderVideoPosts`).
- **Comments: part of them, and it varies.** Weibo shows logged-out visitors the top comments plus a newest-first list whose length depends on the post and even on the run: from a few hundred to several thousand per post (one test post gave 952 of the 953 shown, another 7,549 on a "100万+" post, while the same 953-comment post gave 318 in a run together with a big post). State-media accounts show a curated selection (78 of 10,414 in one test). The row count is never guaranteed to match the comment count shown on the post, which also includes deleted and folded comments.
- **Large counters are rounded or capped by Weibo**: follower counts in lists such as "8258.2万" become 82,582,000; repost / comment / like counts in user timelines stop at 1,000,000 ("100万+"). Post details give exact counts.
- **Images and videos are hotlink-protected**: the URLs are correct but load only for requests that come from a weibo.com page (they will not preview in Apify Console; set weibo.com as the referring page in your downloader). Avatar and video links are signed and expire after some hours or days — download what you need soon after the run.

### Tips and tricks

- Search in Chinese; Weibo's search is tuned for it. Use several related queries for broader coverage (posts found by two queries appear once per query, with `searchQuery` telling which).
- Use `dateTo` to jump straight to an older period; `dateFrom` ends each query as soon as older posts appear.
- Turn off `expandLongText` for the fastest, cheapest search runs (about a quarter of posts are long; their `text` is then the preview and `isTextTruncated` is true).
- Feed post URLs from a search run into "Comments of posts" or "Post details".

### Scheduling

The Actor keeps nothing between runs. For a daily feed, schedule a keyword search with `dateFrom` set to `2 days` (a small overlap) and de-duplicate downstream by `postId`. For the hot-search board, schedule the mode as often as you need a snapshot; `scrapedAt` tells the snapshot time.

### Personal data

The Actor returns public data only and never logs in. It minimises personal data: post rows carry the author's id, screen name, verification and follower count only; commenters' screen names are off by default (then @mentions inside comment texts are shown as @… and the leading 回复@name: is removed); profile bios and verification texts are returned only for verified accounts; gender, birthday, school, employer and self-written location are never returned. You are responsible for having a lawful basis (e.g. GDPR, PIPL) for the data you collect.

### Integrations

Results are available as JSON, CSV, Excel or XML from the run's dataset, through the Apify API, and through integrations such as Google Sheets, Zapier, Make, Slack and webhooks. Start a run from your own code with the Apify API client for JavaScript or Python and read the dataset when it finishes.

# Changelog

This Actor's version history is a separate document: https://apify.com/teodor_banea/weibo-scraper/changelog.md

# Actor input Schema

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

Choose what the run collects. Keyword search: posts that match your words (newest first, with an optional date window). User posts: the latest posts of users. Comments: comments and replies of posts. Post details: one row per post with its full text. Hot search: the live hot-search board. Profiles: one row per user.

## `searchQueries` (type: `array`):

Enter words or phrases to search Weibo for, one per line (Chinese works best, e.g. 新能源汽车). Each query is read newest first. Weibo filters what it shows in search, so results are a large sample of the matching posts, not every post. Up to 100 queries per run.

## `dateFrom` (type: `string`):

Keep only posts published on or after this day (Beijing time, UTC+8), or within a recent period such as "7 days". Search stops as soon as it reaches older posts, so this also makes runs faster. Applies to keyword search and user posts.

## `dateTo` (type: `string`):

Keep only posts published on or before this day (Beijing time, UTC+8; the whole day is included). Search starts at the end of this day, so you can reach older periods directly. Applies to keyword search and user posts.

## `maxPostsPerQuery` (type: `integer`):

Limit the posts taken for each search query. Set to 0 for as many as Weibo lists (still limited by Maximum results).

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

Enter Weibo users, one per line: a numeric user id (1234567890), a profile link (https://weibo.com/u/1234567890, https://m.weibo.cn/u/1234567890, or a custom address like https://weibo.com/example), or a screen name. Up to 500 per run.

## `maxPostsPerUser` (type: `integer`):

Limit the posts taken from each user (newest first). Weibo shows logged-out visitors at most the newest 100 posts of a user; above 100, only older video posts can be added (turn on the option below). Set to 0 for all.

## `includeOlderVideoPosts` (type: `boolean`):

After the newest 100 posts, keep going back through the user's video posts (video posts only — Weibo does not list older non-video posts to logged-out visitors). Useful for creators who post mostly videos.

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

Enter posts, one per line: a post link (https://weibo.com/1234567890/AbCdEfGhI, https://m.weibo.cn/detail/5300000000000000 or https://m.weibo.cn/status/AbCdEfGhI), a numeric post id or a post code. Up to 1,000 per run.

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

Limit the comments (replies included) taken from each post, newest first after the top comments. Set to 0 for all that Weibo shows.

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

Add the replies under each comment, right after it (one more request per comment that has several replies). Up to "Maximum replies per comment" each.

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

Limit the replies taken under each comment, so busy threads do not crowd out the other comments. Set to 0 for all replies Weibo shows (to leave replies out, turn off "Include replies").

## `includeCommenterNames` (type: `boolean`):

Commenters are mostly private people, so their screen names are left out by default: the author name is null, @mentions in the comment text become @… and the leading 回复@name: is removed (the numeric user id is always kept). Turn this on only if you have a lawful reason to process the names.

## `includeEntertainmentBoard` (type: `boolean`):

Mode "Hot search board": also add the entertainment hot list (about 50 more rows).

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

Long posts arrive cut off with a "full text" link. On: one more request per long post gets the whole text (about a quarter of search results are long posts). Off: the preview is kept and isTextTruncated is true.

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

Stop after this many rows in total (posts, comments, hot-search entries or profiles). Set to 0 for unlimited (capped at 10,000 for safety).

## Actor input object example

```json
{
  "mode": "keywordSearch",
  "searchQueries": [
    "新能源汽车",
    "咖啡"
  ],
  "maxPostsPerQuery": 100,
  "users": [
    "1234567890",
    "https://weibo.com/u/1234567890"
  ],
  "maxPostsPerUser": 100,
  "includeOlderVideoPosts": false,
  "postUrls": [
    "https://weibo.com/1234567890/AbCdEfGhI",
    "5300000000000000"
  ],
  "maxCommentsPerPost": 500,
  "includeReplies": true,
  "maxRepliesPerComment": 10,
  "includeCommenterNames": false,
  "includeEntertainmentBoard": false,
  "expandLongText": true,
  "maxResults": 20
}
```

# Actor output Schema

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

Every row of the run as JSON.

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

Post rows.

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

Comment rows.

## `hotSearch` (type: `string`):

Hot-search rows.

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

Profile rows.

## `resultsCsv` (type: `string`):

The same rows as a CSV download.

## `errors` (type: `string`):

Inputs that could not be read and why. Only present when something went wrong.

# 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 = {
    "searchQueries": [
        "新能源汽车"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("teodor_banea/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 = {
    "searchQueries": ["新能源汽车"],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("teodor_banea/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 '{
  "searchQueries": [
    "新能源汽车"
  ],
  "maxResults": 20
}' |
apify call teodor_banea/weibo-scraper --silent --output-dataset

```

## MCP server setup

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