# Weibo Scraper – Posts, Comments, Hot Search & Users (`scrapepilot/weibo-scraper-posts-comments-hot-search-users`) Actor

Scrape Weibo (微博) posts, comments, hot search 热搜, trending topics, user profiles & Black Cat 黑猫投诉. Search keywords, track trends, extract sentiment, monitor brands. No login, no cookies, no API key. Clean JSON, proxy ready.

- **URL**: https://apify.com/scrapepilot/weibo-scraper-posts-comments-hot-search-users.md
- **Developed by:** [Scrape Pilot](https://apify.com/scrapepilot) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 weibo scraped items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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, Hot Search & Black Cat Complaints

***

**Weibo Scraper — scrape 微博 (Chinese Twitter) posts, comments, hot search (微博热搜), trending topics, user profiles, user posts, post details, and Sina Black Cat (黑猫投诉) consumer complaints at scale. Zero login, zero cookies, zero API keys.** The most reliable **Weibo data scraper** for brand monitoring, sentiment analysis, Chinese social media intelligence, and China market research — built with auto-generated anonymous visitor sessions and residential proxy support.

If you searched for **weibo scraper**, **weibo posts scraper**, **weibo comments scraper**, **weibo hot search API**, **weibo trending topics**, **weibo search scraper**, **weibo user profile scraper**, **weibo sentiment analysis**, **weibo black cat complaints**, or a **no-login weibo data extractor** — this is the actor you're looking for. ✅

***

### 💡 What is the Weibo Scraper?

**Weibo** (微博, "Chinese Twitter") is China's #1 microblogging platform with **600M+ monthly active users**. This **Weibo scraper** is a full-stack **Chinese social media intelligence engine** that pulls structured data from multiple Weibo surfaces:

- **Hot Search (微博热搜)** — Real-time trending topics with rank, hot value, and status labels.
- **Hot Search Delta (热搜监控)** — Track rising / falling / new / dropped topics between scheduled runs.
- **Hot Timeline (热门微博)** — Viral posts feed with author, engagement metrics, media, and repost info.
- **Search Posts (微博搜索)** — Search by keyword, brand name, or alias with date-window filtering.
- **Post Comments (微博评论)** — Full comment threads for any post (mid or Base62 shortcode).
- **Post Details (微博详情)** — Deep metadata for a single post.
- **User Posts (用户微博)** — All posts from any public user timeline.
- **User Profile (用户资料)** — Full profile card: followers, verification, bio, location, sunshine credit.
- **Black Cat Complaints (黑猫投诉)** — Sina Black Cat consumer complaints by company or nationwide feed.

The **Weibo scraper** uses **real anonymous visitor-session generation** (no login) and combines Web + Mobile APIs for maximum reliability. Base62 shortcode ↔ numeric mid conversion is handled automatically.

***

### 🔥 SEO Keywords (Why This Weibo Scraper Ranks)

This actor is built to rank for **weibo scraper**, **weibo posts scraper**, **weibo comments scraper**, **weibo hot search**, **weibo trending topics API**, **weibo search scraper**, **weibo user profile scraper**, **weibo sentiment analysis tool**, **weibo black cat complaints**, **sina weibo data**, **chinese social media scraper**, **weibo monitor**, **weibo keyword tracking**, **weibo brand monitoring**, **weibo data extraction**, **no login weibo scraper**, **weibo data API alternative**, **apify weibo actor**, **微博数据采集**, **微博爬虫**, **微博热搜 API**.

***

### 🚀 Key Features (Why Users Choose This Weibo Scraper)

| Feature | Description |
|---------|-------------|
| **9 Powerful Modes** | Hot Search, Hot Search Delta, Hot Timeline, Search, Comments, Post Details, User Posts, User Profile, Complaints. |
| **Zero Login / Zero Cookie** | Automatic anonymous visitor session (`SUB` + `SUBP`) — no user credentials needed. |
| **Base62 Shortcode Decoder** | Converts `RjB5HwkDj` → `5346708137705813` automatically. |
| **Full Comment Threads** | Web + Mobile comment APIs with fallback for maximum coverage. |
| **Full Long Text** | Fetches complete post text when Weibo truncates in list views. |
| **Chinese Sentiment Analysis** | SnowNLP + custom keyword lexicon fallback (positive / negative / neutral + score). |
| **Geo Rollup** | Aggregates posts by province (34 China regions + overseas) with share % and sentiment mean. |
| **Delta Mode** | Tracks seen post/comment IDs so scheduled runs return only new items. |
| **Follow-up Comments** | Fetches replies 1–7 days after original posts for ongoing conversation tracking. |
| **Brand Auto-Localize** | English brand name → Chinese translation (Nike → 耐克, Tesla → 特斯拉, etc.). |
| **Ad Filtering** | `all`, `organic_only`, or `promo_only`. |
| **Date Window Filter** | `searchDateFrom` + `searchDateTo` (ISO or date-only). |
| **Black Cat Signature Auth** | SHA256 signing with salt for Sina Black Cat complaint APIs. |
| **Residential Proxy Ready** | Defaults to Apify residential proxies for high-volume production runs. |
| **Pay-Per-Result Pricing** | Only charged for successfully scraped items. Failed lookups are free. |

***

### 📥 Input Parameters

The **Weibo scraper** accepts a JSON object with the following fields:

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `mode` | string | Yes | `"hot_search"` | `hot_search`, `hot_search_delta`, `hot_timeline`, `search`, `post_comments`, `post_details`, `user_posts`, `user_profile`, `complaints`. |
| `searchQuery` | string | Search mode | `"人工智能"` | Keyword for **weibo search**. |
| `searchAliases` | array | No | `[]` | Additional search terms merged into the query. |
| `searchDateFrom` | string | No | – | Earliest date (`YYYY-MM-DD` or ISO 8601). |
| `searchDateTo` | string | No | – | Latest date (`YYYY-MM-DD` or ISO 8601). |
| `postIds` | array | Post modes | `["https://weibo.com/7087906569/RjB5HwkDj"]` | Post URLs, mids, or shortcodes. |
| `userIds` | array | User modes | `["1642634100"]` | User numeric IDs or profile URLs. |
| `complaintCompanyIds` | array | No | `[]` | Black Cat `couid` values or URLs. Empty = nationwide feed. |
| `maxResults` | integer | No | `50` | Max items to return. |
| `includeComments` | boolean | No | `false` | Include comment threads for each post. |
| `maxComments` | integer | No | `20` | Max comments per post. |
| `includeAuthorProfiles` | boolean | No | `false` | Also fetch profile cards for each author. |
| `fetchFullText` | boolean | No | `true` | Fetch full text via long-text API when truncated. |
| `sentimentAnalysis` | boolean | No | `false` | Add `sentiment` block to each post/comment. |
| `geoRollup` | boolean | No | `false` | Emit geographic rollup rows. |
| `autoLocalize` | boolean | No | `true` | Translate English brands to Chinese. |
| `adFilter` | string | No | `"all"` | `all`, `organic_only`, `promo_only`. |
| `deltaMode` | boolean | No | `false` | Only return unseen items across runs. |
| `deltaStateKey` | string | No | `"default"` | Separate delta memory for different pipelines. |
| `followUpComments` | boolean | No | `false` | Fetch follow-up comments for posts 1–7 days old. |
| `proxyConfiguration` | object | No | Residential | Apify proxy config. Defaults to `RESIDENTIAL`. |

***

### 📤 Output Fields (All Modes)

The **Weibo scraper** outputs **multiple record types** depending on mode. Every record includes `mode` and `scrapedAt`.

#### 1. `mode: "hot_search"` / `"hot_search_delta"` — Trending Topic

| Field | Type | Description |
|-------|------|-------------|
| `rank` | integer | Board position (null for promos). |
| `title` | string | Topic title. |
| `hotValue` | integer | Weibo hot value. |
| `labelName` | string | e.g., `热`, `爆`, `沸`. |
| `isHot` | boolean | Hot flag. |
| `isPromoted` | boolean | Promoted/sponsored. |
| `url` | string | Search URL for the topic. |
| `status` | string | (Delta) `new`, `rising`, `falling`, `steady`, `dropped`. |
| `rankDelta` | integer | (Delta) Position change vs last run. |
| `hotValueDelta` | integer | (Delta) Hot value change. |
| `firstSeenAt` | string | (Delta) First seen timestamp. |
| `minutesOnBoard` | integer | (Delta) Estimated minutes live. |
| `peakRank` | integer | (Delta) Best rank seen. |
| `peakHotValue` | integer | (Delta) Peak hot value. |
| `isNew` | boolean | (Delta) Newly appeared. |

#### 2. `mode: "hot_timeline"` / `"search"` / `"user_posts"` / `"post_detail"` — Post

| Field | Type | Description |
|-------|------|-------------|
| `postId` | string | Numeric mid. |
| `mid` | string | Alias for postId. |
| `text` | string | Full post text (HTML cleaned). |
| `isTruncated` | boolean | Text truncated? |
| `createdAt` | string | Raw date string. |
| `createdAtIso` | string | ISO 8601 in Beijing time (+08:00). |
| `source` | string | Platform source. |
| `repostsCount` | integer | Repost count. |
| `commentsCount` | integer | Comment count. |
| `attitudesCount` | integer | Like count. |
| `authorName` | string | Author name. |
| `authorId` | string | Author ID. |
| `authorDescription` | string | Author bio. |
| `authorFollowers` | integer | Follower count. |
| `authorFollowing` | integer | Following count. |
| `authorVerified` | boolean | Verified badge. |
| `authorVerifiedReason` | string | Verification reason. |
| `authorAvatar` | string | Avatar URL. |
| `images` | array | HD image URLs. |
| `videoUrl` | string | Video stream URL (if any). |
| `region` | string | Chinese province. |
| `regionEn` | string | English region. |
| `isPromoted` | boolean | Ad/promoted. |
| `isRepost` | boolean | Repost flag. |
| `repostOf` | object | Original post info. |
| `postUrl` | string | Canonical URL. |
| `sentiment` | object | `{polarity, score, method}` when enabled. |

#### 3. `mode: "post_comment"` — Comment

| Field | Type | Description |
|-------|------|-------------|
| `commentId` | string | Comment ID. |
| `text` | string | Comment text. |
| `createdAt` | string | Raw date string. |
| `createdAtIso` | string | ISO 8601. |
| `likeCount` | integer | Likes. |
| `replyCount` | integer | Replies. |
| `authorName` | string | Commenter name. |
| `authorId` | string | Commenter ID. |
| `authorFollowers` | integer | Followers. |
| `authorVerified` | boolean | Verified badge. |
| `authorRegion` | string | Region (Chinese). |
| `authorRegionEn` | string | Region (English). |
| `postId` | string | Parent post. |
| `postUrl` | string | Post URL. |
| `isFollowUp` | boolean | Follow-up flag. |
| `sentiment` | object | Sentiment block. |

#### 4. `mode: "user_profile"` / `"author_profile"` — Profile

| Field | Type | Description |
|-------|------|-------------|
| `userId` | string | Numeric ID. |
| `screenName` | string | Display name. |
| `description` | string | Bio. |
| `gender` | string | `m`, `f`, `n`. |
| `location` | string | Location. |
| `followersCount` | integer | Followers. |
| `friendsCount` | integer | Following. |
| `statusesCount` | integer | Post count. |
| `verified` | boolean | Verified. |
| `verifiedType` | integer | Verification code. |
| `verifiedReason` | string | Reason. |
| `avatarHd` | string | Avatar URL. |
| `coverImage` | string | Cover image. |
| `domain` | string | Custom domain. |
| `profileUrl` | string | `weibo.com/u/{uid}`. |
| `createdAt` | string | Account creation. |
| `birthday` | string | Birthday. |
| `company` | string | Company. |
| `sunshineCredit` | string | Sunshine credit. |

#### 5. `mode: "complaints"` — Black Cat Complaint

| Field | Type | Description |
|-------|------|-------------|
| `source` | string | `feed` or `company_list`. |
| `complaintId` | string | Complaint SN. |
| `title` | string | Title. |
| `summary` | string | Summary. |
| `isTruncated` | boolean | Truncation flag. |
| `appeal` | string | User's appeal. |
| `issue` | string | Category. |
| `amountInvolvedCny` | float | Amount (CNY). |
| `companyName` | string | Company. |
| `companyId` | string | Company ID. |
| `statusCode` | integer | Status code. |
| `status` | string | Chinese status. |
| `statusEn` | string | English status. |
| `createdAt` | string | ISO 8601. |
| `createdAtTimestamp` | integer | Unix epoch. |
| `upvoteCount` | integer | Upvotes. |
| `commentsCount` | integer | Comments. |
| `shareCount` | integer | Shares. |
| `url` | string | Complaint URL. |
| `sentiment` | object | Sentiment block. |

#### 6. `mode: "geo_rollup"` — Geographic Rollup

| Field | Type | Description |
|-------|------|-------------|
| `province` | string | Chinese province. |
| `provinceEn` | string | English province. |
| `isOverseas` | boolean | Overseas flag. |
| `postCount` | integer | Posts from this region. |
| `sharePct` | float | Share of located posts (0–1). |
| `promotedCount` | integer | Promoted posts. |
| `sentimentMean` | float | Mean sentiment score. |
| `sampleSize` | integer | Total located posts. |
| `lowConfidence` | boolean | Sample < 200. |

***

### 📚 Full Input & Output Examples (Every Mode)

#### 🔹 Example 1 — Hot Search (微博热搜)

**Input:**

```json
{
  "mode": "hot_search",
  "maxResults": 10,
  "adFilter": "organic_only"
}
```

**Output:**

```json
[
  {
    "rank": 1,
    "title": "iPhone 18 正式发布",
    "hotValue": 2856423,
    "labelName": "爆",
    "isHot": true,
    "isPromoted": false,
    "url": "https://s.weibo.com/weibo?q=iPhone%2018%20%E6%AD%A3%E5%BC%8F%E5%8F%91%E5%B8%83",
    "scrapedAt": "2026-10-10T12:00:00Z"
  },
  {
    "rank": 2,
    "title": "国庆假期返程高峰",
    "hotValue": 1987654,
    "labelName": "热",
    "isHot": true,
    "isPromoted": false,
    "url": "https://s.weibo.com/weibo?q=%E5%9B%BD%E5%BA%86%E5%81%87%E6%9C%9F%E8%BF%94%E7%A8%8B%E9%AB%98%E5%B3%B0",
    "scrapedAt": "2026-10-10T12:00:00Z"
  }
]
```

***

#### 🔹 Example 2 — Hot Search Delta (热搜监控)

**Input:**

```json
{
  "mode": "hot_search_delta",
  "maxResults": 50,
  "deltaStateKey": "trends-hourly"
}
```

**Output:**

```json
[
  {
    "rank": 1,
    "title": "iPhone 18 正式发布",
    "hotValue": 2856423,
    "status": "new",
    "rankDelta": 0,
    "hotValueDelta": 0,
    "previousRank": null,
    "firstSeenAt": "2026-10-10T12:00:00Z",
    "minutesOnBoard": 0,
    "peakRank": 1,
    "peakHotValue": 2856423,
    "isHot": true,
    "isNew": true,
    "url": "https://s.weibo.com/weibo?q=iPhone%2018%20%E6%AD%A3%E5%BC%8F%E5%8F%91%E5%B8%83",
    "snapshotAt": "2026-10-10T12:00:00Z"
  },
  {
    "rank": 5,
    "title": "国庆假期返程高峰",
    "hotValue": 1234567,
    "status": "rising",
    "rankDelta": 3,
    "hotValueDelta": 250000,
    "previousRank": 8,
    "firstSeenAt": "2026-10-10T11:00:00Z",
    "minutesOnBoard": 60,
    "peakRank": 5,
    "peakHotValue": 1234567,
    "isHot": true,
    "isNew": false,
    "url": "https://s.weibo.com/weibo?q=%E5%9B%BD%E5%BA%86%E5%81%87%E6%9C%9F%E8%BF%94%E7%A8%8B%E9%AB%98%E5%B3%B0",
    "snapshotAt": "2026-10-10T12:00:00Z"
  }
]
```

***

#### 🔹 Example 3 — Search Posts (微博搜索)

**Input:**

```json
{
  "mode": "search",
  "searchQuery": "特斯拉",
  "searchAliases": ["Tesla", "Model 3"],
  "searchDateFrom": "2026-09-01",
  "searchDateTo": "2026-09-30",
  "maxResults": 20,
  "includeComments": true,
  "maxComments": 10,
  "sentimentAnalysis": true,
  "geoRollup": true,
  "adFilter": "organic_only"
}
```

**Output:**

```json
[
  {
    "postId": "5346708137705813",
    "mid": "5346708137705813",
    "text": "特斯拉新款 Model 3 售价公布，续航提升 15%，智能驾驶功能升级...",
    "isTruncated": false,
    "createdAt": "Thu Sep 24 16:20:19 +0800 2026",
    "createdAtIso": "2026-09-24T16:20:19+08:00",
    "source": "iPhone客户端",
    "repostsCount": 1250,
    "commentsCount": 843,
    "attitudesCount": 5320,
    "authorName": "特斯拉中国",
    "authorId": "7087906569",
    "authorVerified": true,
    "authorVerifiedReason": "特斯拉官方微博",
    "images": ["https://wx1.sinaimg.cn/large/abc123.jpg"],
    "region": "上海",
    "regionEn": "Shanghai",
    "isPromoted": false,
    "isRepost": false,
    "repostOf": null,
    "postUrl": "https://weibo.com/7087906569/5346708137705813",
    "sentiment": {"polarity": "positive", "score": 0.42, "method": "snownlp"},
    "scrapedAt": "2026-10-10T12:00:00Z",
    "mode": "search"
  },
  {
    "commentId": "5346708137705900",
    "text": "这个价格真的香！",
    "createdAt": "Thu Sep 24 16:45:00 +0800 2026",
    "createdAtIso": "2026-09-24T16:45:00+08:00",
    "likeCount": 1520,
    "replyCount": 43,
    "authorName": "科技宅小明",
    "authorId": "5678123456",
    "authorFollowers": 12580,
    "authorVerified": false,
    "authorRegion": "广东",
    "authorRegionEn": "Guangdong",
    "postId": "5346708137705813",
    "postUrl": "https://weibo.com/detail/5346708137705813",
    "sentiment": {"polarity": "positive", "score": 0.68, "method": "keyword"},
    "scrapedAt": "2026-10-10T12:00:05Z",
    "mode": "post_comment"
  },
  {
    "mode": "geo_rollup",
    "province": "上海",
    "provinceEn": "Shanghai",
    "isOverseas": false,
    "postCount": 342,
    "sharePct": 0.1825,
    "promotedCount": 0,
    "sentimentMean": 0.38,
    "sampleSize": 1874,
    "lowConfidence": false,
    "scrapedAt": "2026-10-10T12:00:10Z"
  }
]
```

***

#### 🔹 Example 4 — Post Comments (微博评论)

**Input:**

```json
{
  "mode": "post_comments",
  "postIds": ["https://weibo.com/7087906569/RjB5HwkDj"],
  "maxComments": 20,
  "sentimentAnalysis": true
}
```

**Output:**

```json
[
  {
    "postId": "5346708137705813",
    "mid": "5346708137705813",
    "text": "特斯拉新款 Model 3 售价公布...",
    "createdAtIso": "2026-09-24T16:20:19+08:00",
    "repostsCount": 1250,
    "commentsCount": 843,
    "attitudesCount": 5320,
    "authorName": "特斯拉中国",
    "authorId": "7087906569",
    "postUrl": "https://weibo.com/7087906569/5346708137705813",
    "scrapedAt": "2026-10-10T12:00:00Z",
    "mode": "post_detail"
  },
  {
    "commentId": "5346708137705900",
    "text": "这个价格真的香！",
    "createdAtIso": "2026-09-24T16:45:00+08:00",
    "likeCount": 1520,
    "replyCount": 43,
    "authorName": "科技宅小明",
    "authorId": "5678123456",
    "authorFollowers": 12580,
    "authorVerified": false,
    "authorRegion": "广东",
    "authorRegionEn": "Guangdong",
    "postId": "5346708137705813",
    "postUrl": "https://weibo.com/detail/5346708137705813",
    "sentiment": {"polarity": "positive", "score": 0.68, "method": "keyword"},
    "scrapedAt": "2026-10-10T12:00:05Z",
    "mode": "post_comment"
  }
]
```

***

#### 🔹 Example 5 — Post Details (微博详情)

**Input:**

```json
{
  "mode": "post_details",
  "postIds": ["RjB5HwkDj", "https://weibo.com/7087906569/5346708137705813"],
  "maxResults": 2,
  "fetchFullText": true,
  "sentimentAnalysis": true
}
```

**Output:**

```json
[
  {
    "postId": "5346708137705813",
    "mid": "5346708137705813",
    "text": "特斯拉新款 Model 3 售价公布，续航提升 15%，智能驾驶功能升级，全新外观设计...（完整正文）",
    "isTruncated": false,
    "createdAtIso": "2026-09-24T16:20:19+08:00",
    "source": "iPhone客户端",
    "repostsCount": 1250,
    "commentsCount": 843,
    "attitudesCount": 5320,
    "authorName": "特斯拉中国",
    "authorId": "7087906569",
    "authorVerified": true,
    "authorVerifiedReason": "特斯拉官方微博",
    "images": ["https://wx1.sinaimg.cn/large/abc123.jpg"],
    "videoUrl": "",
    "region": "上海",
    "regionEn": "Shanghai",
    "isPromoted": false,
    "isRepost": false,
    "repostOf": null,
    "postUrl": "https://weibo.com/7087906569/5346708137705813",
    "sentiment": {"polarity": "positive", "score": 0.45, "method": "snownlp"},
    "scrapedAt": "2026-10-10T12:00:00Z",
    "mode": "post_detail"
  }
]
```

***

#### 🔹 Example 6 — User Posts (用户微博)

**Input:**

```json
{
  "mode": "user_posts",
  "userIds": ["1642634100"],
  "maxResults": 20,
  "fetchFullText": true,
  "sentimentAnalysis": true,
  "geoRollup": true
}
```

**Output:**

```json
[
  {
    "postId": "5012345678901234",
    "mid": "5012345678901234",
    "text": "今天分享一个关于 AI 大模型的思考...",
    "createdAtIso": "2026-10-05T09:15:00+08:00",
    "repostsCount": 320,
    "commentsCount": 145,
    "attitudesCount": 2890,
    "authorName": "某科技博主",
    "authorId": "1642634100",
    "authorFollowers": 1250000,
    "authorVerified": true,
    "images": [],
    "region": "北京",
    "regionEn": "Beijing",
    "postUrl": "https://weibo.com/1642634100/5012345678901234",
    "sentiment": {"polarity": "neutral", "score": 0.05, "method": "snownlp"},
    "scrapedAt": "2026-10-10T12:00:00Z",
    "mode": "user_posts"
  },
  {
    "mode": "geo_rollup",
    "province": "北京",
    "provinceEn": "Beijing",
    "isOverseas": false,
    "postCount": 15,
    "sharePct": 0.75,
    "promotedCount": 0,
    "sentimentMean": 0.22,
    "sampleSize": 20,
    "lowConfidence": true,
    "scrapedAt": "2026-10-10T12:00:05Z"
  }
]
```

***

#### 🔹 Example 7 — User Profile (用户资料)

**Input:**

```json
{
  "mode": "user_profile",
  "userIds": ["1642634100", "https://weibo.com/u/7087906569"]
}
```

**Output:**

```json
[
  {
    "userId": "1642634100",
    "screenName": "某科技博主",
    "description": "专注 AI 大模型、科技前沿资讯分享",
    "gender": "m",
    "location": "北京 朝阳区",
    "followersCount": 1250000,
    "friendsCount": 385,
    "statusesCount": 12450,
    "verified": true,
    "verifiedType": 0,
    "verifiedReason": "微博科技博主",
    "avatarHd": "https://tvax1.sinaimg.cn/crop.0.0.1080.1080.1024/abc123.jpg",
    "coverImage": "https://wx1.sinaimg.cn/orj360/abc123.jpg",
    "domain": "techblogger",
    "profileUrl": "https://weibo.com/u/1642634100",
    "createdAt": "2012-03-15",
    "birthday": "1990-05-20",
    "company": "某某科技公司",
    "sunshineCredit": "极好",
    "mode": "user_profile",
    "scrapedAt": "2026-10-10T12:00:00Z"
  }
]
```

***

#### 🔹 Example 8 — Black Cat Complaints (黑猫投诉)

**Input:**

```json
{
  "mode": "complaints",
  "complaintCompanyIds": ["https://tousu.sina.com.cn/company/view/?couid=1002079979"],
  "maxResults": 20,
  "sentimentAnalysis": true
}
```

**Output:**

```json
[
  {
    "mode": "complaints",
    "source": "company_list",
    "complaintId": "1734567890",
    "title": "某电商平台商品质量问题，售后不予处理",
    "summary": "我在平台购买的商品出现质量问题，多次联系客服均未解决...",
    "isTruncated": false,
    "appeal": "希望商家能退货退款并赔偿损失",
    "issue": "产品质量",
    "amountInvolvedCny": null,
    "companyName": "某电商平台",
    "companyId": "1002079979",
    "statusCode": 4,
    "status": "已回复",
    "statusEn": "replied",
    "createdAt": "2026-10-08T14:22:00+08:00",
    "createdAtTimestamp": 1759906920,
    "upvoteCount": 45,
    "commentsCount": 12,
    "shareCount": 3,
    "url": "https://tousu.sina.com.cn/complaint/view/1734567890/",
    "sentiment": {"polarity": "negative", "score": -0.72, "method": "keyword"},
    "scrapedAt": "2026-10-10T12:00:00Z"
  }
]
```

***

#### 🔹 Example 9 — Hot Timeline (热门微博)

**Input:**

```json
{
  "mode": "hot_timeline",
  "maxResults": 10,
  "includeComments": false,
  "sentimentAnalysis": true
}
```

**Output:**

```json
[
  {
    "postId": "5012345678909999",
    "mid": "5012345678909999",
    "text": "刚刚，某科技巨头发布重磅产品，业界震惊！",
    "isTruncated": false,
    "createdAtIso": "2026-10-10T10:30:00+08:00",
    "repostsCount": 8500,
    "commentsCount": 3240,
    "attitudesCount": 125000,
    "authorName": "科技每日说",
    "authorId": "1234567890",
    "authorVerified": true,
    "images": ["https://wx1.sinaimg.cn/large/xyz.jpg"],
    "region": "广东",
    "regionEn": "Guangdong",
    "isPromoted": false,
    "postUrl": "https://weibo.com/1234567890/5012345678909999",
    "sentiment": {"polarity": "positive", "score": 0.55, "method": "snownlp"},
    "scrapedAt": "2026-10-10T12:00:00Z",
    "mode": "hot_timeline"
  }
]
```

***

### 💰 Pricing

| Event | Price | When Charged |
|-------|-------|--------------|
| **item-scraped** | **$20.00 / 1,000** | Any successfully scraped record (post, comment, profile, hot topic, complaint, geo rollup row). |
| **apify-actor-start** | **$0.000005 per run** | One-time startup fee per run. |

- **Failed lookups are free** — no charge for missing / deleted posts or blocked requests.
- **Example:** 1,000 posts + 200 comments = **$20.00 × 1.2 = $24.00** + $0.000005 start.

***

### 🛠 How to Use This Weibo Scraper on Apify

1. **Create a task** with this **Weibo scraper**.
2. **Choose the mode** in your input JSON.
3. **Fill in the required fields** (searchQuery / postIds / userIds / complaintCompanyIds).
4. **Enable residential proxies** — **strongly recommended** for high-volume runs.
5. **Run** — the actor generates a visitor session automatically and starts scraping.
6. **Export** — download results as JSON, CSV, or Excel.

#### Running via API

```bash
curl -X POST "https://api.apify.com/v2/acts/your-username~weibo-scraper/runs" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
    "mode": "search",
    "searchQuery": "人工智能",
    "maxResults": 30,
    "sentimentAnalysis": true
  }'
```

***

### 🎯 Use Cases (Who Uses This Weibo Scraper)

- **Brand monitoring** – Track mentions of your brand on Weibo in real time.
- **Market intelligence** – Analyze China market sentiment on any topic.
- **Competitor research** – Follow competitor posts, engagement, and comment sentiment.
- **Trend tracking** – Delta monitor hot search topics hourly.
- **Influencer research (KOL)** – Build a database of verified KOLs.
- **Consumer complaints** – Aggregate Black Cat complaint data by company.
- **Academic research** – Build sentiment-labeled Chinese corpora for NLP.
- **Crisis monitoring** – Get early signals from rising negative posts/comments.

***

### ❓ Frequently Asked Questions

**1. Do I need a Weibo account or cookies?**\
No. The **Weibo scraper** generates a fresh anonymous visitor session (`SUB` + `SUBP`) automatically. No login, no user cookie, no API key.

**2. Can I search in English?**\
Yes. `autoLocalize: true` (default) translates English brand names to Chinese (Nike → 耐克, Tesla → 特斯拉). You can also pass `searchAliases` with Chinese keywords.

**3. How does delta mode work?**\
Each processed post/comment ID is stored in the actor's key-value store. On future runs with the same `deltaStateKey`, previously seen IDs are skipped.

**4. What is `hot_search_delta` mode?**\
It snapshots the hot search board and compares it with the previous run to produce `new`, `rising`, `falling`, `steady`, `dropped` topic records.

**5. Difference between `post_comments` and `includeComments` inside `search`?**\
`post_comments` mode only fetches comments for specific post URLs. `includeComments: true` in other modes automatically fetches comments for every post found.

**6. Does the actor work for Black Cat complaints?**\
Yes. Set `mode: "complaints"` and optionally provide `complaintCompanyIds`. Leave it empty for the nationwide feed.

**7. What is a "shortcode"?**\
Weibo uses Base62 shortcodes like `RjB5HwkDj` in URLs. The actor converts them to numeric mids automatically.

**8. Why is a post's `text` sometimes empty?**\
Very old posts or deleted posts may not return text. The actor logs the warning and continues.

**9. Do I need a proxy?**\
Not for small runs. For 500+ items per run, use Apify residential proxies to avoid rate limits.

**10. Can I run this outside Apify?**\
Yes — it's a standalone Python script using the `apify` SDK. Run it locally with the Apify CLI.

***

***

### 🔗 Related Actors

- **[Bilibili Scraper – Videos, Comments, Danmaku & Users](https://apify.com/your-username/bilibili-scraper)**
- **[WhatsApp Number Lookup – Profile, Leaks & Carrier](https://apify.com/your-username/whatsapp-number-lookup)**
- **[Telegram Username Info](https://apify.com/your-username/telegram-username-info)**

***

***

**Start scraping Weibo today — $20 per 1,000 items, $0.00005 actor start. Zero login, zero cookies, zero API keys.**

````



# Actor input Schema

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

Select what data to extract: trending topics, hot timeline feed, keyword search, post comments, deep post details, user posts, user profiles, or Black Cat consumer complaints.
## `searchQuery` (type: `string`):

Keyword to search for in 'search' mode. Example: '人工智能', '耐克', or 'Nike'.
## `searchAliases` (type: `array`):

Custom query variants to search alongside searchQuery (e.g. ['AJ', 'Air Jordan'] for 'Nike'). Merged and deduped.
## `searchDateFrom` (type: `string`):

Earliest post date (inclusive) in Beijing time (+08:00). Format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS. Example: '2026-09-01'.
## `searchDateTo` (type: `string`):

Latest post date (inclusive) in Beijing time (+08:00). Format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS. Example: '2026-09-03'.
## `postIds` (type: `array`):

List of post numeric IDs, base62 shortcodes, or URLs (e.g. '5346708137705813', 'RjB5HwkDj', 'https://weibo.com/7087906569/RjB5HwkDj'). Used in 'post_comments' and 'post_details' modes.
## `userIds` (type: `array`):

List of numeric user IDs or profile URLs (e.g. '1642634100' or 'https://weibo.com/u/1642634100'). Used in 'user_posts' and 'user_profile' modes.
## `complaintCompanyIds` (type: `array`):

List of company couid IDs or Black Cat company URLs (e.g. 'https://tousu.sina.com.cn/company/view/?couid=2092643773' or '2092643773'). Leave empty to fetch Black Cat's nationwide latest complaints feed.
## `maxResults` (type: `integer`):

Maximum number of items (posts, topics, profiles, or complaints) to return.
## `includeComments` (type: `boolean`):

In 'search' or 'hot_timeline' modes, also extract live comment threads for each post.
## `maxComments` (type: `integer`):

Maximum comments to fetch per post when includeComments is enabled or in post_comments mode.
## `includeAuthorProfiles` (type: `boolean`):

In 'search', 'hot_timeline', or 'user_posts' modes, fetch public profiles of distinct post authors (up to 50 authors per run).
## `fetchFullText` (type: `boolean`):

Automatically retrieve the full body of posts truncated by Weibo's list endpoints.
## `sentimentAnalysis` (type: `boolean`):

Score Chinese posts and comments with polarity (positive/neutral/negative) and numerical score (-1.0 to +1.0).
## `geoRollup` (type: `boolean`):

Add aggregated location rollup rows by Chinese province and overseas origins when at least 50 posts carry location metadata.
## `autoLocalize` (type: `boolean`):

When searching Latin brand names (e.g. 'Nike'), automatically also search the Chinese name ('耐克') and merge results.
## `adFilter` (type: `string`):

Filter organic vs sponsored/promoted posts or trending slots.
## `deltaMode` (type: `boolean`):

Only return new items not seen in previous runs with the same deltaStateKey.
## `deltaStateKey` (type: `string`):

Key identifier to persist deduplication memory in Key-Value store (e.g. 'nike-daily').
## `followUpComments` (type: `boolean`):

In deltaMode search, re-read comment threads of previously delivered posts between 1 and 7 days old.
## `proxyConfiguration` (type: `object`):

Apify Residential Proxy configuration. Recommended and enabled by default for Weibo access.

## Actor input object example

```json
{
  "mode": "hot_search",
  "searchQuery": "人工智能",
  "searchAliases": [],
  "postIds": [
    "https://weibo.com/7087906569/RjB5HwkDj"
  ],
  "userIds": [
    "1642634100"
  ],
  "complaintCompanyIds": [],
  "maxResults": 50,
  "includeComments": false,
  "maxComments": 20,
  "includeAuthorProfiles": false,
  "fetchFullText": true,
  "sentimentAnalysis": false,
  "geoRollup": false,
  "autoLocalize": true,
  "adFilter": "all",
  "deltaMode": false,
  "deltaStateKey": "default",
  "followUpComments": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
````

# Actor output Schema

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

Collection of extracted microblog posts, comments, hot search trends, user profiles, or consumer complaints.

# 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("scrapepilot/weibo-scraper-posts-comments-hot-search-users").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("scrapepilot/weibo-scraper-posts-comments-hot-search-users").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 scrapepilot/weibo-scraper-posts-comments-hot-search-users --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapepilot/weibo-scraper-posts-comments-hot-search-users"
        }
    }
}
```

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/Z6YpqRp9Rnfd32kVI/builds/NFmM7Q1uWdXiebkPl/openapi.json
