# Weibo Scraper: Posts, Hot Searches, Comments & Creators (`serenido/weibo-scraper`) Actor

Search Weibo posts by keyword (many keywords per run) and get likes, reposts, comments, topics, author followers and paid-post flags. Also hot searches, the popular feed by category, comments and creator profiles. No login.

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

## Pricing

from $0.70 / 1,000 row saveds

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

### What does Weibo Scraper do?

Weibo (微博) is China's Twitter, with more than 500 million monthly users. This scraper turns it into clean rows for Excel, Google Sheets, your app or your AI agent. No login, no cookie, no API key.

It has five modes:

- **Search posts** by keyword, in Chinese or English. Add many keywords in one run. Get the text, likes, reposts, comments, topics, pictures, video plays, place, publish time and the author's follower count and verification.
- **Post details** from post links or ids, with the full text of long posts.
- **Comments** of any post, with the location Weibo shows for each commenter.
- **Creator profiles**: followers, following, number of posts, verification, bio, location, join date and creator stats (for example total video plays), plus their latest posts if you want.
- **Trending**: Weibo's hot searches (热搜, about 50 topics with their heat score) and the popular feed (热门) by category: society, tech, finance, cars, beauty, games and more.

### Why this one?

- **Many keywords in one run.** Each keyword is searched on its own and every row says which keyword and which Weibo search tab found it.
- **Paid posts are flagged.** `isSponsored` marks posts Weibo labels as commercial (brand deals). Very useful for brand and influencer monitoring.
- **Accurate.** We checked the numbers against each post's own Weibo page: likes, reposts and comments matched.
- **Full text.** Weibo cuts long posts short in lists; the scraper fetches the whole text.
- **Reliable.** Every request retries on its own and switches connection if Weibo slows it down. If one item fails, the rest of the run still finishes.
- **Fair billing.** You pay only for rows saved. Deleted posts, bad links, paid ad slots in the hot search list and requests that stay blocked are skipped and **not charged**.

### How much does it cost?

You pay per row saved (a post, a comment, a creator or a hot search). Check the **Pricing** tab for the current price.

### How to use it

1. Pick **What to scrape**.
2. Fill in the matching box: keywords, post links or creator ids. Trending needs nothing else.
3. Optional: search tabs, comments per post, latest posts per creator, popular feed category.
4. Click **Start**. Download as Excel, CSV, JSON or HTML, or use the API.

### Input example

```json
{
  "mode": "search",
  "keywords": ["咖啡", "比亚迪", "iPhone 17"],
  "includeComments": true,
  "maxCommentsPerPost": 20
}
```

### Output example

```json
{
  "type": "post",
  "searchKeyword": "咖啡",
  "searchTab": "top",
  "rank": 1,
  "postId": "5222394602193402",
  "url": "https://weibo.com/5103328156/Q9oAk9cBs",
  "text": "沪上特调咖啡地图☕️‼️ ...",
  "author": "林汤团",
  "authorFollowers": 4699000,
  "authorVerified": true,
  "authorVerifiedAs": "美食博主 微博原创视频博主",
  "postedAt": "2025-10-16T07:22:43Z",
  "reposts": 1550,
  "comments": 1296,
  "likes": 5402,
  "imageCount": 12,
  "isSponsored": true,
  "region": "上海"
}
```

Every row has a `type` (post, comment, creator or hotSearch). The output tabs **Posts**, **Comments**, **Creators** and **Hot searches** show the right columns for each.

### Good to know

This scraper sees Weibo exactly as a logged-out visitor does. That keeps it simple and safe, and it also sets the limits:

- **Search:** Weibo shows visitors the first page of each search tab (Top, Latest, Hot, With pictures, With videos). All five together give **about 90 different posts per keyword**. Schedule the run (for example every hour with the Latest tab) to follow a topic over time.
- **Comments:** visitors see the top comments of a post (usually about 50), with some replies under each.
- **Creators:** the latest posts option gives the newest posts Weibo shows to visitors (about 10).
- **Popular feed:** about 30 to 40 posts per category at a time.
- **Dates** are in UTC.

### Use cases

- **Brand monitoring in China:** what people say about a brand, product or launch, and which creators were paid to post about it.
- **Trend watching:** schedule hot searches and see what China talks about, hour by hour.
- **Influencer research:** compare creators by followers, posts, verification and engagement.
- **News and research:** follow a topic or an event as it develops.
- **AI and NLP data:** real Chinese social media text and comments.

### Is it legal?

It collects only public data that Weibo shows to any logged-out visitor. It does not log in, solve captchas or collect private data. Check that your use follows Weibo's terms and the law where you are.

# Actor input Schema

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

Pick one per run. No login or cookie needed in any mode.

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

Search mode. One keyword per line, in Chinese or English. Each keyword is searched separately.

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

Weibo's own search tabs. All five together give about 90 different posts per keyword (logged-out visitors see the first page of each tab).

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

Search gives about 90 posts per keyword. The popular feed and hot searches can give more or fewer.

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

Weibo cuts long posts short in lists. One extra request per long post gets the whole text. Same price per row.

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

For Post details and Comments. Accepts weibo.com/USER/POSTID links, m.weibo.cn/detail/... links, numeric post ids and short ids.

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

Search, Post details and Trending modes: adds comment rows (type: comment). Every comment is one billed row.

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

Weibo shows logged-out visitors the top comments of a post (usually about 50), with some replies under each.

## `creatorIds` (type: `array`):

Creator profiles mode. The number in weibo.com/u/NUMBER, or the full profile link.

## `includeLatestPosts` (type: `boolean`):

Adds the creator's newest posts (about 10, the first page Weibo shows to visitors).

## `trendingList` (type: `string`):

Trending mode.

## `category` (type: `string`):

For the popular feed.

## `maxConcurrency` (type: `integer`):

How many requests run at the same time. 4 is fast and gentle.

## `proxy` (type: `object`):

Not needed: the scraper connects directly and switches to Apify proxies by itself if Weibo slows it down.

## Actor input object example

```json
{
  "mode": "search",
  "keywords": [
    "咖啡",
    "iPhone 17"
  ],
  "searchTabs": [
    "top",
    "latest",
    "hot",
    "pictures",
    "videos"
  ],
  "maxResults": 100,
  "fullText": true,
  "includeComments": false,
  "maxCommentsPerPost": 50,
  "includeLatestPosts": false,
  "trendingList": "hot_searches",
  "category": "popular",
  "maxConcurrency": 4
}
```

# Actor output Schema

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

No description

## `all` (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": [
        "咖啡",
        "iPhone 17"
    ]
};

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

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

```

## MCP server setup

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