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

Scrape Weibo (微博) without login or cookies: keyword and hashtag search, the hot search board (微博热搜), user profiles with recent posts, single posts and comments. Fast, no browser, pay per record.

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

## Pricing

Pay per event

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

Collect public data from [Weibo](https://weibo.com) (微博), China's largest microblogging platform: keyword and hashtag search, the hot search board (微博热搜), user profiles with their latest posts, single posts, and comments.

No login and no cookies: the Actor reads Weibo the way a visitor does. It needs no browser and runs on plain datacenter proxies, so runs are fast and cheap.

### What you can collect

| Input | You get |
| --- | --- |
| Search keywords or hashtags | Posts from the Top, Hot, Latest, Video and Image search tabs, merged and de-duplicated |
| User IDs or profile URLs | The profile (followers, verification, bio) and the user's 10 most recent posts |
| Post URLs or IDs | The full post with text, images, video and engagement numbers |
| Hot search board | The live board of about 50 ranked topics with heat, plus the rising topics list |
| Comments (optional) | The most popular comments of every post in the run |

You can combine inputs in one run. For example: search a brand name and collect the top comments of every post found.

### Typical uses

- **Brand and crisis monitoring in China.** Schedule a keyword search every hour and catch new posts as they appear.
- **Trend tracking.** Schedule the hot search board and build a history of what China is talking about.
- **Influencer research.** Follower counts, verification and recent post performance for any account.
- **Datasets for analysis and AI.** Chinese-language posts and comments with timestamps and locations.

### Input example

```json
{
  "searchQueries": ["iPhone", "#新能源汽车#"],
  "userIds": ["https://weibo.com/u/1669879400"],
  "includeHotSearch": true,
  "maxCommentsPerPost": 20
}
```

Tips:

- Chinese keywords find far more than English ones.
- Write hashtags the Weibo way, with a `#` on both sides: `#新能源汽车#`.
- A user ID is the number in `https://weibo.com/u/1669879400`. Nicknames are not accepted.

### What a visitor can and cannot see

Weibo limits what it shows without login. This Actor is honest about those limits instead of failing halfway:

- **Search:** the first page of each search tab. Across the five tabs that is roughly 40 to 80 posts per keyword. To follow a keyword over time, schedule the Actor; each run picks up the newest posts.
- **User posts:** the 10 most recent posts of each user.
- **Comments:** up to 20 comments per post, most popular first.
- **Hot search board, profiles and single posts:** complete.

### Output

Every record has a `type`: `post`, `user`, `comment` or `hotSearch`.

#### Post

```json
{
  "type": "post",
  "foundBy": "search",
  "query": "iPhone",
  "searchTab": "top",
  "id": "5341489761618229",
  "bid": "RhpkY6MYt",
  "url": "https://weibo.com/6529876887/RhpkY6MYt",
  "text": "折叠屏iPhone Duo、18 Pro系列现场上手！",
  "isTruncated": false,
  "postedAt": "2026-09-09T22:44:22.000Z",
  "source": "微博视频号",
  "location": "浙江",
  "reposts": 1138,
  "comments": 1306,
  "likes": 20290,
  "imageUrls": [],
  "video": { "title": "老师好我叫何同学的微博视频", "durationSeconds": 115.542, "streamUrl": "https://f.video.weibocdn.com/..." },
  "author": { "id": 6529876887, "name": "老师好我叫何同学", "url": "https://weibo.com/u/6529876887", "verified": true },
  "repostOf": null
}
```

Long posts are loaded in full. `isTruncated` is `true` only if the full text could not be loaded.

#### User

```json
{
  "type": "user",
  "id": 1669879400,
  "url": "https://weibo.com/u/1669879400",
  "name": "Dear-迪丽热巴",
  "bio": "一只喜欢默默表演的小透明。",
  "gender": "female",
  "verified": true,
  "verifiedReason": "嘉行传媒签约演员",
  "followers": 82583000,
  "following": 294,
  "postCount": 1942
}
```

#### Comment

```json
{
  "type": "comment",
  "postId": "5362180014737287",
  "postUrl": "https://m.weibo.cn/detail/5362180014737287",
  "commentId": "5362336791003732",
  "text": "转发原po，抽一位铁粉，送手机",
  "likes": 67,
  "replyCount": 16,
  "postedAt": "2026-11-06T11:23:00.000Z",
  "location": "安徽",
  "author": { "id": 2863918220, "name": "张梦龙", "verified": true, "followers": 5222000 }
}
```

#### Hot search topic

```json
{
  "type": "hotSearch",
  "board": "realtime",
  "rank": 1,
  "topic": "中俄美元首会晤将在深圳举行",
  "heat": 125803,
  "label": null,
  "url": "https://s.weibo.com/weibo?q=%23...%23"
}
```

`board` is `realtime` for the main board and `rising` for the rising topics list. The topic Weibo pins above the board has no rank.

### Speed and cost

A run that collected 160 posts, 2,323 comments, 2 profiles and the hot search board finished in about four minutes. You pay per record collected; set a maximum cost per run in the run options and the Actor stops when it is reached.

### Is this legal?

The Actor reads only data that Weibo shows publicly to visitors who are not logged in. Posts and comments can contain personal data, so make sure your use has a lawful basis under the rules that apply to you (for example GDPR or PIPL).

### Feedback

Found a bug or need a field that is missing? Open an issue on the Issues tab and it will be looked at quickly.

# Actor input Schema

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

Keywords or hashtags to search on Weibo. Chinese keywords return the most results. Write a hashtag as #话题#. Each keyword is collected from the Top, Hot, Latest, Video and Image tabs.

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

Without login Weibo shows the first page of each search tab, which adds up to roughly 40-80 posts per keyword.

## `userIds` (type: `array`):

Numeric user IDs (for example 1669879400) or profile links (https://weibo.com/u/1669879400). Returns the profile and the user's 10 most recent posts. No cookie needed.

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

Without login Weibo shows a user's 10 most recent posts. Set 0 for the profile only.

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

Post links (https://weibo.com/1669879400/QabcD1234 or https://m.weibo.cn/detail/5341489761618229) or bare post IDs.

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

Adds the current Weibo hot search board (微博热搜), about 50 topics with their heat.

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

Comments to collect for every post in the output, most popular first. Without login Weibo shows up to 20 comments per post. 0 turns comments off.

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

Weibo cuts long posts short in lists. With this on, the full text is loaded for those posts (one extra request each, no extra charge).

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

Datacenter proxies are enough for Weibo.

## Actor input object example

```json
{
  "searchQueries": [
    "iPhone"
  ],
  "maxPostsPerQuery": 80,
  "maxPostsPerUser": 10,
  "includeHotSearch": false,
  "maxCommentsPerPost": 0,
  "fullText": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Posts, users, comments and hot-search topics collected by the run.

# 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": [
        "iPhone"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fieldwright/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": ["iPhone"],
    "proxyConfiguration": { "useApifyProxy": True },
}

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

```

## MCP server setup

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