# Weibo Scraper - Posts, Comments & Trends | $3/1K (`crawloop/weibo-scraper`) Actor

Scrape public Weibo posts by keyword, user and URL, plus comments, profiles and hot search. Many keywords in one run; monitor mode returns only new posts. No login. $3 per 1,000 posts.

- **URL**: https://apify.com/crawloop/weibo-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (community)
- **Categories:** Social media, Automation, Lead generation
- **Features:** Limited permissions
- **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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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, Trending & Keyword Monitor

> **Disclaimer:** Unofficial tool — not affiliated with, sponsored by, or endorsed by Weibo Corporation or its affiliates. Data is read from publicly accessible search, profile, post, comment, and hot-search pages only. No login. You are responsible for complying with applicable law (including GDPR where personal data appears) and the site’s terms. No warranty on accuracy or availability. Provided for informational and research use.

Pull public Weibo posts for many keywords, profiles, and post URLs in one run. Each keyword returns the latest and top posts from that search. Schedule the Actor with monitor mode to keep only posts you have not saved before.

Use it as a Weibo API alternative from Python, Node.js, cURL, or an MCP client. Export JSON from the dataset.

### What you get

| Row | What it contains |
| --- | --- |
| Post | Text, topics, mentions, pictures, video, reposts, comments, likes, author, region |
| Comment | Text, likes, nested reply count, region, author |
| User | Screen name, bio, followers, following, post count, verification, location |
| Trend | Hot-search rank, word, label, category, heat |
| Error | A target that could not be read, with a reason. Not charged. |

### When to use it

Use this Actor to watch a brand, a hashtag, or a set of accounts and to export posts for research. One run covers every keyword, user, and post you list.

Schedule it when you need an ongoing feed. The first monitor run saves a baseline and marks those posts as new. The next runs return only posts that were not in that baseline.

### Input

| Field | Default | What it does |
| --- | --- | --- |
| `keywords` | empty | Search words or hashtags such as `特斯拉`, `Nike`, `#话题#` |
| `searchTabs` | realtime, top, hot | Which search tabs to read. Duplicates across tabs are dropped. |
| `users` | empty | User id or profile URL. Adds a profile row and the latest posts. |
| `posts` | empty | Post URL, numeric id, or bid. Adds the post. |
| `includeTrending` | false | Current hot-search list |
| `includeComments` | false | Comments on posts this run keeps |
| `maxCommentsPerPost` | 50 | Cap per post. `0` saves none. |
| `fetchFullText` | true | Replace a cut post with the full text |
| `excludeAds` | true | Drop promoted posts and sponsored hot-search words |
| `monitorMode` | false | Return only posts not saved for this target set |
| `maxItems` | 0 | Cap on charged rows. `0` means no cap. |

#### Keyword monitor

```json
{
  "keywords": ["特斯拉", "Nike", "#话题#"],
  "searchTabs": ["realtime", "top", "hot"],
  "monitorMode": true,
  "maxItems": 200
}
```

Run this on a schedule. Each run returns the latest and top posts for every keyword. Monitor mode keeps the next run to posts that were not saved yet.

#### Users

```json
{
  "users": [
    "1669879400",
    "https://weibo.com/u/1669879400",
    "https://m.weibo.cn/profile/1669879400"
  ]
}
```

#### Posts with comments

```json
{
  "posts": [
    "https://weibo.com/1669879400/RqMJekz8M",
    "https://m.weibo.cn/detail/5363838444901644"
  ],
  "includeComments": true,
  "maxCommentsPerPost": 50,
  "fetchFullText": true
}
```

#### Hot search

```json
{
  "includeTrending": true,
  "excludeAds": true
}
```

### Output

Posts use `https://weibo.com/<uid>/<bid>`. Counts such as `1.2万` are integers (`12000`). A missing value is `null`.

```json
{
  "type": "post",
  "id": "5367964067169746",
  "bid": "Rsw3su5b4",
  "url": "https://weibo.com/2827386331/Rsw3su5b4",
  "createdAt": "2026-11-22T08:03:48+08:00",
  "text": "重磅！特斯拉FSD V15来了！",
  "repostsCount": 29,
  "commentsCount": 199,
  "likesCount": 535,
  "regionName": "发布于 山东",
  "topics": ["特斯拉车载算力实时AI建模", "特斯拉在美推出FSDv15"],
  "matchedKeyword": "特斯拉",
  "searchTab": "top",
  "isNew": true,
  "author": {
    "id": "2827386331",
    "screenName": "科技新一",
    "verified": true,
    "followersCount": 6577000
  }
}
```

### Use cases

- **Brand monitoring in China.** Track a product name or campaign hashtag and schedule monitor mode so each run adds only new posts.
- **Market research.** Compare several keywords in one dataset: text, engagement, topics, and region.
- **PR.** Read comments on specific posts and see which accounts are posting.
- **Academic NLP.** Export plain text, topics, and timestamps for public posts.

### Integration examples

Replace `YOUR_TOKEN` with an Apify API token. The actor id is `crawloop/weibo-scraper`.

#### Node.js

```javascript
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: "YOUR_TOKEN" });
const run = await client.actor("crawloop/weibo-scraper").call({
  keywords: ["特斯拉"],
  monitorMode: true,
  maxItems: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("crawloop/weibo-scraper").call(run_input={
    "keywords": ["特斯拉"],
    "monitorMode": True,
    "maxItems": 50,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["type"], item.get("text") or item.get("word"))
```

#### cURL

```bash
curl "https://api.apify.com/v2/acts/crawloop~weibo-scraper/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords":["特斯拉"],"monitorMode":true,"maxItems":50}'
```

### MCP and AI assistants

Connect the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) and call this Actor from an assistant.

- "Run the Weibo scraper for keywords 特斯拉 and Nike, monitor mode on, and summarise new posts."
- "Fetch comments for this Weibo post URL and list the most liked ones."
- "Get today's Weibo hot search and group the words by category."

### Pricing

Pay only for the rows you get. No start fee, no subscription.

| Row | Price |
|---|---|
| Post | $3.00 per 1,000 |
| Comment | $1.00 per 1,000 |
| User profile | $3.00 per 1,000 |
| Trending topic | $0.50 per 1,000 |

Error rows are free. Example: monitoring 2 brands every hour returns about 18,000 new posts a month, about $54. A run stops at `maxItems` (counts all row types) or at your charge limit.

### FAQ

**Does one keyword return every historical post?**
No. Each run returns the latest and top posts for that keyword (the realtime, top, and hot tabs you select). Schedule monitor mode to collect continuously.

**What does monitor mode store?**
Seen post ids for the same keywords, users, and posts. The first run emits all of them with `isNew: true`. Later runs emit only posts that were not pushed before. Comments are loaded only for those new posts.

**Can I turn comments off?**
Yes. Leave `includeComments` off, or set `maxCommentsPerPost` to `0`.

**Why is a row type `error`?**
That input was not a Weibo user or post the Actor could read. The rest of the run continues. Error rows are not charged.

### Related Actors

| Actor | |
| --- | --- |
| Weibo Scraper — Posts, Comments, Trending & Keyword Monitor | ◄── you are here |
| [Xiaohongshu (RedNote) Scraper](https://apify.com/crawloop/xiaohongshu-scraper) | Public Xiaohongshu notes |

# Actor input Schema

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

Search terms or hashtags, for example 特斯拉, Nike, or #话题#. Each keyword returns the latest and top public posts from the selected tabs.

## `searchTabs` (type: `array`):

Which search tabs to read for every keyword. Allowed values: realtime (newest), top, and hot. Default is all three. Duplicates across tabs are removed.

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

Numeric user ids or profile URLs (weibo.com/u/<uid>, weibo.com/<uid>, m.weibo.cn/u/<uid>, m.weibo.cn/profile/<uid>). Each user produces a profile row and the latest posts.

## `posts` (type: `array`):

Post URLs (weibo.com/<uid>/<bid>, m.weibo.cn/detail/<id>, m.weibo.cn/status/<bid or id>) or a numeric id or bid. Each one produces a post row.

## `includeTrending` (type: `boolean`):

Add the current public hot-search list (rank, word, label, category, heat).

## `includeComments` (type: `boolean`):

Fetch comments for every post this run keeps. In monitor mode, comments are fetched only for new posts.

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

Cap on comments saved for each post. 0 saves none.

## `fetchFullText` (type: `boolean`):

When a post is cut off, load the full text. On by default.

## `excludeAds` (type: `boolean`):

Drop promoted posts and sponsored hot-search entries.

## `monitorMode` (type: `boolean`):

Remember posts already returned for this set of targets. The first run is a baseline and marks every row as new. Later runs return only posts that were not saved before. Schedule the Actor to collect continuously.

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

Maximum charged rows for the run (posts, comments, users, and trends). 0 means no cap. The run also stops at your charge limit.

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

Optional Apify Proxy settings. Leave unused for a normal run.

## Actor input object example

```json
{
  "keywords": [
    "特斯拉"
  ],
  "searchTabs": [
    "realtime",
    "top",
    "hot"
  ],
  "includeTrending": false,
  "includeComments": false,
  "maxCommentsPerPost": 50,
  "fetchFullText": true,
  "excludeAds": true,
  "monitorMode": false,
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Default dataset items.

# 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": [
        "特斯拉"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/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": ["特斯拉"] }

# Run the Actor and wait for it to finish
run = client.actor("crawloop/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": [
    "特斯拉"
  ]
}' |
apify call crawloop/weibo-scraper --silent --output-dataset

```

## MCP server setup

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