# Weibo Scraper (`automly/weibo-scraper`) Actor

Scrape Weibo (微博) posts by keyword, any account's posts and profile, single posts by link, their comments and the Weibo hot search list: text, likes, comments, reposts, pictures, video links, topics and region. No login or cookies.

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

## Pricing

from $2.79 / 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

### What is Weibo Scraper?

**Weibo Scraper** is a tool that lets you **scrape Weibo (微博) posts by keyword, any account's posts and profile, single posts by link, their comments, and the Weibo hot search list (微博热搜)**: post text, likes, comments, reposts, pictures, video links, topics, region, author and follower counts. Type keywords or paste Weibo links, click **Start**, and download the data as Excel, CSV or JSON.

- ⚡ **Fast:** 1,000 posts with their whole texts in about 2 minutes, 1,000 posts and comments from two accounts in 40 seconds (our tests)
- 🔎 **Keyword search past 1,000 posts:** each keyword goes back in time until it reaches your number or start date
- 👤 **Any account's posts** from its profile link, ID or @name, newest first, with a date range
- 💬 **Comments** of every post, most liked first, with the commenter's region and follower count
- 🔥 **Weibo hot search (微博热搜):** the ~50 trending topics right now with rank, heat and label
- 🔓 **No login:** no Weibo account, cookies or API key needed

### What can Weibo Scraper do?

- **Search Weibo posts by keyword** (微博搜索), newest first, with a date range and a post-type filter (original, pictures, videos)
- Scrape a **Weibo account's posts** (用户微博) from a profile link, numeric ID, custom link (weibo.com/rmrb) or @name
- Scrape **Weibo profiles**: followers, following, post count, verification, location, IP region and join date
- Scrape any public **Weibo post** from its link or ID, with reads, topics and the whole text
- Scrape **Weibo comments** (评论) with likes, reply counts and the commenter's region
- Get the **Weibo hot search list** (热搜榜) with rank, heat score and badge
- Export to Excel, CSV, JSON, HTML or XML, or send the data to Google Sheets, Make, Zapier and more

### What data can you extract from Weibo?

| | | |
|---|---|---|
| 📝 Post text, whole long posts | ❤️ Likes | 💬 Comments |
| 🔁 Reposts | 👀 Reads (posts by link) | 🏷️ Hashtag topics |
| 🖼️ Picture links | 🎬 Video link, cover, length and views | 📍 Region (发布于) |
| 📅 Posting date and time | 📱 Posted from (app or device) | 🔁 Reposted post, its text and author |
| 👤 Author name, ID, link and verification | 👥 Followers, following, post count | 🗓️ Account join date, IP region |
| 💬 Comment text, likes and replies | 🌍 Commenter region and followers | 🔥 Hot search rank, heat and label |

### How to scrape Weibo

1. [Create a free Apify account](https://console.apify.com/sign-up) (no credit card needed).
2. Open **Weibo Scraper**.
3. Type **search keywords** (e.g. 人工智能) and/or paste **Weibo links**: profiles, posts or @names, one per line.
4. Set how many posts you want per keyword and per profile, pick a date range if you need one, and turn on **comments** or the **hot search list**. Click **Start**.
5. When the run finishes, download your data as Excel, CSV, JSON, HTML or XML.

### How much does it cost to scrape Weibo?

Weibo Scraper charges per result: each post, profile, comment and hot search topic is one result, priced by type. The exact prices for your Apify plan are on the **Pricing** tab. A free Apify account comes with monthly credit, enough to try the scraper on a few thousand posts.

Tips to keep the cost down:

- Set **Max results** to what you need: the run stops there.
- Turn on **comments** only when you need them; a busy post has hundreds.
- Use the **date range** to read only the days you care about.

### ⬇️ Input

| Field | What to enter |
|---|---|
| **Search keywords** | Words to search posts for, e.g. `人工智能`, `新能源汽车`, `iPhone`, `#topic#` |
| **Weibo links or IDs** | Profile links (`https://weibo.com/u/2803301701`, `https://weibo.com/rmrb`), post links (`https://weibo.com/2803301701/RoETV5T6e`, `https://m.weibo.cn/detail/5358770991403446`), `@人民日报`, or numeric IDs |
| **Posts per keyword** | Most posts to save per keyword, e.g. 100 |
| **Posts per profile** | How many of each account's newest posts to save; 0 for the profile only |
| **Posted on or after / before** | A date range (China time), e.g. 2026-10-01 to 2026-10-27, or a period like `7 days` |
| **Kind of posts** | All posts, original posts only, posts with pictures, or posts with videos |
| **Whole text of long posts** | On by default: long posts come with their whole text |
| **Include comments** / **Comments per post** | Save each post's comments, most liked first |
| **Include the Weibo hot search list** | Save the ~50 trending topics right now |
| **Max results** | Most rows in the whole run |

Example input:

```json
{
  "searchQueries": ["人工智能"],
  "startUrls": ["https://weibo.com/u/2803301701", "@央视新闻"],
  "maxPostsPerSearch": 200,
  "postsPerProfile": 20,
  "dateFrom": "7 days",
  "includeComments": true,
  "commentsPerPost": 20,
  "includeHotSearch": true,
  "maxItems": 1000
}
```

### ⬆️ Output

Every row has a `type`: `post`, `profile`, `comment` or `trending`. Here is a post:

```json
{
  "type": "post",
  "id": "5358770991403446",
  "bid": "RoETV5T6e",
  "url": "https://weibo.com/2803301701/RoETV5T6e",
  "text": "【#你好，明天#｜#一座城认真对待一株花为何动人#】近日，海南儋州一株三角梅攀上10米路灯，开成了“全网最励志的三角梅”。……",
  "textComplete": true,
  "createdAt": "2026-10-27T15:13:48Z",
  "region": null,
  "client": "微博视频号",
  "reposts": 405,
  "comments": 473,
  "likes": 702,
  "reads": 381518,
  "topics": ["你好，明天", "一座城认真对待一株花为何动人"],
  "pictures": [],
  "videoUrl": "http://f.video.weibocdn.com/o0/mUhq2xO6lx08BQUNuLQA01041200aHho0E010.mp4?...",
  "videoCoverUrl": "https://wx4.sinaimg.cn/orj480/0033ImPzly1iiew357rjvj60u01hcadb02.jpg",
  "videoDurationSeconds": 15,
  "videoViews": 638797,
  "isRepost": false,
  "isAd": false,
  "authorId": "2803301701",
  "authorName": "人民日报",
  "authorUrl": "https://weibo.com/u/2803301701",
  "authorVerified": true,
  "source": "https://weibo.com/2803301701/RoETV5T6e",
  "scrapedAt": "2026-10-28T03:00:00Z"
}
```

A profile:

```json
{
  "type": "profile",
  "id": "2803301701",
  "url": "https://weibo.com/u/2803301701",
  "name": "人民日报",
  "customDomain": "rmrb",
  "bio": "人民日报法人微博。参与、沟通、记录时代。",
  "followers": 158123628,
  "following": 3096,
  "posts": 154681,
  "verified": true,
  "verifiedReason": "《人民日报》法人微博",
  "gender": "male",
  "location": "北京",
  "accountCreatedAt": "2012-07-21T18:28:35Z",
  "likesReceived": 2532208488
}
```

A comment:

```json
{
  "type": "comment",
  "id": "5358774166754260",
  "postId": "5358770991403446",
  "postUrl": "https://weibo.com/2803301701/RoETV5T6e",
  "text": "晚安 做个好梦",
  "createdAt": "2026-10-27T15:26:25Z",
  "likes": 8,
  "replies": 1,
  "region": "湖南",
  "authorName": "孤猫幻影",
  "authorFollowers": 12065
}
```

A hot search topic:

```json
{
  "type": "trending",
  "rank": 2,
  "topic": "中国新晋女首富身家1270亿",
  "url": "https://s.weibo.com/weibo?q=%23...%23",
  "heat": 298678,
  "label": "热",
  "isAd": false
}
```

### How can I use Weibo data?

- **Brand monitoring and social listening in China:** track what Weibo says about your brand, product or competitors every day.
- **Public opinion and sentiment research:** collect posts and comments on a topic for analysis or AI training data.
- **Influencer (KOL) research:** compare accounts by followers, posting rate and engagement.
- **Trend tracking:** save the hot search list on a schedule and see what rises and falls.
- **Media and academic research:** build datasets of Chinese social media posts with dates, regions and topics.

### How to monitor a keyword or the hot search list

Create a task with your keywords and a short date range (e.g. `dateFrom: "1 day"`), then add a **schedule** in Apify Console to run it every day or every hour. Turn on **Include the Weibo hot search list** to save the trending topics each time. Every run gives a new dataset you can send to Google Sheets, Slack or your own system.

### Use Weibo Scraper from your code

Run it from Python with the Apify client:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("automly/weibo-scraper").call(run_input={
    "searchQueries": ["新能源汽车"],
    "maxPostsPerSearch": 500,
    "dateFrom": "7 days",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["createdAt"], item["text"][:50])
```

### Use with AI agents (MCP)

AI agents can run Weibo Scraper through the Apify MCP server. Ask in plain words, for example: "Get the 100 newest Weibo posts about 新能源汽车 from the last 3 days with their comments", and the agent sends `{"searchQueries": ["新能源汽车"], "maxPostsPerSearch": 100, "dateFrom": "3 days", "includeComments": true}`.

### ❓FAQ

#### How much does it cost to scrape Weibo?

You pay per result (post, profile, comment or hot search topic); see the **Pricing** tab for your plan's prices. Set **Max results** to cap the cost of a run.

#### How many posts can I get for one keyword?

As many as Weibo has for it. Weibo's own search shows about 1,000 posts at a time; Weibo Scraper keeps going back in time from there until it reaches your **Posts per keyword** or your start date. Posts come newest first.

#### How many posts can I get from one account?

Set **Posts per profile** to the number you need. Posts come newest first, reposts included; use **Kind of posts: original** to leave reposts out, or a date range to read one period.

#### How many comments can I scrape from one Weibo post?

Up to about 300 per post, most liked first, which is what Weibo shows visitors. Each row has the comment's likes, reply count, region and the commenter's follower count.

#### Can I get the whole text of long posts?

Yes. Weibo's lists cut long posts at about 150 characters; with **Whole text of long posts** on (the default), each one comes with its whole text. The `textComplete` column tells you which rows have it.

#### Do I need a Weibo account?

No. Weibo Scraper reads what Weibo shows publicly, with no login, cookies or API key.

#### Can I scrape private accounts or deleted posts?

No. Only public posts and accounts can be read. A post or account that does not exist (deleted, hidden or never there) is listed as "not found" in the run report and not charged.

#### Does it give phone numbers or emails?

No. Weibo Scraper returns only what Weibo shows publicly on posts and profiles, and it replaces phone numbers and emails that people type into posts, comments or bios with `[removed]`.

#### Is it legal to scrape Weibo?

Weibo Scraper collects only public data that anyone can see without logging in. Personal data is protected by laws such as China's PIPL and the EU's GDPR, so only collect what you have a legitimate reason to use, and check with a lawyer if you are unsure. Weibo Scraper is not affiliated with or endorsed by Weibo or Sina.

#### Something isn't working. What should I do?

Open the **Issues** tab and tell us the input you used and what you expected. We read every report and usually fix problems within a day. If the scraper works well for you, a review on the Store helps other people find it.

# Actor input Schema

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

Words to search Weibo posts for, one per line, e.g. 人工智能, 新能源汽车, iPhone or #topic#. Chinese keywords find the most posts. Each keyword gives its posts newest first.

## `startUrls` (type: `array`):

Weibo post or profile links, one per line, e.g. https://weibo.com/2803301701/RoETV5T6e (a post), https://weibo.com/u/2803301701 or https://weibo.com/rmrb (a profile), https://m.weibo.cn/detail/5358770991403446, @人民日报 (an account by name), or a numeric post or user ID. A profile gives the account and its newest posts; a post gives that post. s.weibo.com search links work as keywords.

## `maxPostsPerSearch` (type: `integer`):

Most posts to save for each keyword, e.g. 100. Busy keywords have far more than 1,000 posts; the run keeps going back in time until it reaches this number or the start date.

## `postsPerProfile` (type: `integer`):

How many of each account's newest posts to save, e.g. 20. Set 0 for the profile row only.

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

Only posts published on or after this day (China time), e.g. 2026-10-01, or a period like 7 days. Applies to keyword searches and profile posts. Leave empty for no start date.

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

Only posts published on or before this day (China time), e.g. 2026-10-27. Leave empty to start from the newest posts.

## `postType` (type: `string`):

Which posts to keep in keyword searches and profile posts: all, original (no reposts), pictures (posts with images) or videos (posts with a video).

## `fullText` (type: `boolean`):

Weibo's lists cut long posts at about 150 characters. Keep this on to get every post's whole text (a little slower). The textComplete column says whether a row has the whole text.

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

Also save the comments of every post saved (from keywords, profiles and links), e.g. for sentiment or audience research. Each comment is its own row, charged as a comment.

## `commentsPerPost` (type: `integer`):

Most comments to save per post, e.g. 20. Most liked first; Weibo shows visitors up to about 300 comments of a post.

## `includeHotSearch` (type: `boolean`):

Also save Weibo's hot search list (微博热搜): the ~50 trending topics right now with rank, heat and label (热, 新, 爆). Works with no keywords or links too.

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

Most rows to save in the whole run (posts, profiles, comments and hot topics together), e.g. 100. Set 0 for no limit.

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

Leave the default.

## Actor input object example

```json
{
  "searchQueries": [
    "人工智能"
  ],
  "startUrls": [
    "https://weibo.com/u/2803301701"
  ],
  "maxPostsPerSearch": 50,
  "postsPerProfile": 20,
  "postType": "all",
  "fullText": true,
  "includeComments": false,
  "commentsPerPost": 20,
  "includeHotSearch": false,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `details` (type: `string`):

No description

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

No description

## `report` (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 = {
    "searchQueries": [
        "人工智能"
    ],
    "startUrls": [
        "https://weibo.com/u/2803301701"
    ],
    "maxPostsPerSearch": 50,
    "postsPerProfile": 20,
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/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": ["人工智能"],
    "startUrls": ["https://weibo.com/u/2803301701"],
    "maxPostsPerSearch": 50,
    "postsPerProfile": 20,
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automly/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": [
    "人工智能"
  ],
  "startUrls": [
    "https://weibo.com/u/2803301701"
  ],
  "maxPostsPerSearch": 50,
  "postsPerProfile": 20,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automly/weibo-scraper --silent --output-dataset

```

## MCP server setup

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