# Weibo Comments Scraper - Comments & Replies of Any Post (`pipiagent/weibo-comments-scraper`) Actor

Scrape the comments under any public Weibo (微博) post: text, likes, replies, date, region and author with follower count. For sentiment analysis and campaign tracking in China. No login needed.

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

## Pricing

$5.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 Comments Scraper

Export the comments under any public post on [Weibo](https://weibo.com) (微博), China's largest microblogging platform.

Use it to measure how the public reacted to a post, a product launch or a statement, to collect Chinese-language comments for sentiment analysis, or to see which regions and which kinds of accounts are commenting.

- **Comments and replies.** Each comment comes with its likes and reply count. Turn on replies to get the full thread.
- **Who is commenting.** Region of the comment, author name, verification type and follower count.
- **English field names.** Clean JSON. Text stays in Chinese.
- **No login, no cookie and no proxy needed.**
- **Low price.** $5 per 1,000 comments.

### How to use it

1. Click **Try for free**.
2. Paste post URLs in **Post URLs**. Leave it empty to try the Actor on a trending post.
3. Click **Start**, then download the results as JSON, CSV or Excel.

### Input example

```json
{
    "postUrls": ["https://weibo.com/1669879400/RjCH5q8hs"],
    "includeReplies": true,
    "maxItems": 1000
}
```

### Output example

```json
{
    "type": "comment",
    "commentId": "5346770336090639",
    "postId": "5346769756228362",
    "postUrl": "https://weibo.com/1669879400/RjCH5q8hs",
    "isReply": false,
    "parentCommentId": null,
    "text": "迪迪抱抱[期待][期待]",
    "createdAt": "2026-09-24T12:27:29Z",
    "likes": 18810,
    "replyCount": 1474,
    "postedFrom": "江苏",
    "likedByPostAuthor": false,
    "authorId": "1787569845",
    "authorName": "护舒宝",
    "authorUrl": "https://weibo.com/u/1787569845",
    "authorVerified": true,
    "authorVerifiedType": "company",
    "authorFollowers": 619498,
    "authorCity": "北京",
    "scrapedAt": "2026-09-29T11:20:05Z"
}
```

Replies have `isReply: true` and the id of the comment they answer in `parentCommentId`. Emoticons appear as codes in square brackets, for example `[期待]`.

### How much does it cost?

You pay per saved result: **$5.00 per 1,000 comments**. There is no start fee and no monthly rental. A reply counts as one result.

| Run | Results | Cost |
|---|---|---|
| 100 top comments of a post | 100 | $0.50 |
| 1,000 comments of a post | 1,000 | $5.00 |

Set a maximum charge per run in the run options and the Actor stops when it is reached.

### Limits you should know

- **Very large threads are not always complete.** Weibo stops serving more comments after some depth, which differs from post to post.
- **You need the post URL.** Weibo requires login to search posts or to list the posts of a user, so the Actor cannot find posts for you. To get started without a URL, use the trending posts mode of the Weibo Scraper below.
- **Deleted posts and posts hidden from visitors are skipped** with a warning.

### Related Actors

- [Weibo Scraper](https://apify.com/pipiagent/weibo-scraper): trending posts, post details and user profiles.
- [Weibo Hot Search Scraper](https://apify.com/pipiagent/weibo-hot-search-scraper): the live chart of trending topics in China.

### FAQ

**Is it legal?** The Actor collects only data that Weibo shows publicly to every visitor. Results can contain personal data such as usernames. Make sure you have a legitimate reason to process it, as required by the GDPR and similar laws.

**Something is broken or missing?** Open a ticket in the Issues tab. Issues are usually answered within a day.

# Actor input Schema

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

weibo.com or m.weibo.cn post URLs, for example https://weibo.com/1669879400/RjCH5q8hs. Leave empty to try the Actor on a trending post.

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

Maximum number of results to save in this run. You are only charged for saved results.

## `maxItemsPerPost` (type: `integer`):

Optional. Limits results for each post, so that one post with many comments does not use up the whole run.

## `commentSort` (type: `string`):

Which comments come first.

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

Also saves the replies under each comment. Every reply counts as one result.

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

Optional. The Actor works without a proxy. Turn one on only if runs start failing with blocked requests.

## Actor input object example

```json
{
  "maxItems": 100,
  "commentSort": "hot",
  "includeReplies": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Comments and replies saved by the run, one item per comment.

# 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("pipiagent/weibo-comments-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("pipiagent/weibo-comments-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 pipiagent/weibo-comments-scraper --silent --output-dataset

```

## MCP server setup

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