# Weibo Hot Search, Posts, Comments & User Scraper – 微博热搜榜 API (`deadc0dex/weibo-scraper`) Actor

Weibo scraper API, no login: 微博热搜榜 hot search, Weibo hot posts, trending topics, Weibo posts search 微博搜索 by keyword or #topic# hashtag, Weibo comments 微博评论, replies, reposts 转发, likers, Weibo user profiles 微博用户, user posts, followers 粉丝. Chinese social media JSON for AI agents, MCP. $0.002-0.006/row

- **URL**: https://apify.com/deadc0dex/weibo-scraper.md
- **Developed by:** [AsiaData](https://apify.com/deadc0dex) (community)
- **Categories:** Social media, News, AI
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 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 Hot Search, Posts, Comments & User Scraper – 微博热搜榜 API

**Weibo scraper and Weibo API for the live hot search list (微博热搜榜), posts and comments — flat JSON, no login, no cookies, no API key.** One Actor covers every public Sina Weibo (新浪微博) data type: Weibo hot search 热搜榜 (plus 文娱榜, 要闻榜, 生活榜, 社会榜), topic ranking 话题榜, trending posts 热门微博, Weibo posts by keyword or #topic#, post details, Weibo comments and replies, Weibo reposts (转发), who liked a post (likers), Weibo user profiles, user posts, followers / followings (粉丝 / 关注, paged) and account search. You decide what is fetched (`operation`, `include`), what comes back (`fields`, `outputMode` — including a **lean, token-efficient mode for AI agents**), what is kept (`dateFrom`, `minLikes`, `originalOnly`, `contentType`, `deltaKey` …) and what it may cost (`maxItems`, `maxCostUsd`, free `dryRun`). **$0.002 per hot search row or comment, $0.006 per post, $0.004 per profile.** A default call (`{}` = top 20 trends) finishes in about 2 s.

### For AI agents

Actor `deadc0dex/weibo-scraper` · MCP tool `deadc0dex--weibo-scraper` · all inputs optional · `{}` = live hot search list · run `{"operation":"capabilities"}` for a free machine-readable manifest.

#### Operations

| `operation` | Input | Returns (`type`) | Price per row |
|---|---|---|---|
| `keywordResearch` (v2) | `keywords[]` and/or `trendingTopics` (1-20) | `post` rows (top `maxPosts` per keyword) + their `comment` rows (`commentsPerPost`, `commentSort`, `replyDepth`) + optional first-page reposts (`include:["reposts"]`) + one free `insights` row per keyword | $0.006 / $0.002 |
| `auto` (default) | anything | routed per value: post URL/id → postDetails, profile/`users` → userProfile, text → search, nothing → hotSearch | by row type |
| `hotSearch` | – (`hotSearchBoard`: realtime / entertainment / news / life / social) | `hotSearch`: rank, word, heat, category, label | $0.002 |
| `hotTopics` | – | `hotTopic`: topic, category, summary, readCount, mentionCount | $0.002 |
| `hotPosts` | – | `post` (trending feed, paginated) | $0.006 |
| `search` | `keywords[]` | `post` (5 tabs + deeper result pages: hundreds per keyword, up to ~1000) | $0.006 |
| `topic` | `keywords[]` (#话题#) or topic URL | `post` (topic page + more posts of the #topic# from search pages) | $0.006 |
| `postDetails` | `urls[]` / `ids[]` | `post` with full text | $0.006 |
| `comments` | `urls[]` / `ids[]` of posts | `comment` (paginated; `include:["replies"]` adds replies) | $0.002 |
| `replies` | `ids[]` = comment ids | `comment` with `isReply: true` | $0.002 |
| `reposts` (v1.3) | `urls[]` / `ids[]` of posts | `post` rows of reposts 转发 (reposter, text, time, likes, `repostedPost`); guests see the first page (~10-20) | $0.006 |
| `likers` (v1.2) | `urls[]` / `ids[]` of posts | `user` rows of accounts that liked the post (up to ~200 per post for guests) | $0.004 |
| `userProfile` | `users[]` (uid, profile URL, @name) | `user`: followersCount, followingCount, postsCount, verifiedReason, ipLocation, totalLikes … | $0.004 |
| `userPosts` | `users[]` | `post`: newest ~10 (all types), then older photo/video posts | $0.006 |
| `userSearch` | `keywords[]` | `user` (20 accounts per page, several pages) | $0.004 |
| `fans` / `following` | `users[]` | `user` rows of followers 粉丝 / followed accounts 关注 with bio and gender, paged (v1.3: far beyond the old first page of ~20) | $0.004 |
| `capabilities` | – | `capabilities` manifest | free |

Free rows: `error` (with `errorCode` + `fix`), `plan` (dryRun), `capabilities`, and the final `summary` (counts, billed events, `costUsd`, warnings, `nextSteps` with ready-made follow-up inputs). Plus $0.00005 per run start.

#### Fields

Every billable row starts with `type, operation, input, queryUsed, id, url, fetchedAt`, then:

- **post:** `rank, searchTab, postId, bid, text, isLongText, textTruncated, createdAt, likesCount, commentsCount, repostsCount, authorName, authorId, authorVerified, topics, region, source, mediaType, isRepost, repostedPost, isPinned` + media `imageUrls, imageCount, videoUrl, videoCoverUrl, videoDurationSeconds, videoPlayCount, videoTitle`
- **hotSearch:** `board, rank, word, heat, category, label, labelEn, isPinned, isAd, onboardAt, note, relatedPostUrl` · **hotTopic:** `rank, topic, category, summary, readCount, mentionCount, imageUrl, leadPostId`
- **comment:** `rank, commentId, postId, isReply, rootCommentId, replyToCommentId, text, likesCount, replyCount, createdAt, region, floor`
- **user:** `rank, userId, screenName, description, verified, verifiedReason, gender, location, ipLocation, followersCount, followingCount, postsCount, totalInteractions, totalLikes, totalComments, totalReposts, accountCreatedAt, avatarUrl`

`fields: ["text","likesCount","url"]` returns only those keys (+ `type`). `outputMode: "full"` adds secondary fields, the raw Weibo object and the v0.x keys `mode`/`scrapedAt`.

Field notes from the v1.2 verification audit (each field checked on ≥3 live samples against a second Weibo source, see `AUDIT_FIELDS_v1.2.md`): counts are live and move between requests; `videoPlayCount` is rounded by Weibo to 万 (10,000) on posts from search/topic/user timelines and exact on trending posts; `ipLocation` is currently **always null** (Weibo no longer shows the IP region of profiles to logged-out visitors; the post-level `region` still works); `source` (posting client) is null on search/topic rows because Weibo puts the author's tagline there; `editedAt` is only known for posts from m.weibo.cn. Times are UTC ISO 8601.

#### Token-efficient mode (lean output for AI agents)

`outputMode: "lean"` returns the same rows (same billing) with 54-83 % fewer tokens (mean 64 % over 10 row types, measured with tiktoken cl100k_base):

- no keys whose value is null, "", \[] or false (a missing key means null / false / empty);
- no per-row envelope: `operation`, `input`, `queryUsed`, `fetchedAt` are in the summary row (`summary.lean.jobs`; `input` stays on rows only when the run had several inputs);
- no `url`: build it from `summary.lean.urlPatterns` (post `https://m.weibo.cn/detail/{id}`, user `https://weibo.com/u/{id}`, trend `https://s.weibo.com/weibo?q=%23{id}%23`);
- `id` replaces `postId` / `commentId` / `userId` / `topic` / `word`;
- minimal fields per row type (post: id, text, createdAt, likesCount, commentsCount, repostsCount, authorName, authorId, topics, mediaType, isRepost, videoPlayCount) — `fields` still overrides;
- text cut to `maxTextChars` (default 300 in lean) ending with "…" and `truncated: true`; dates as `YYYY-MM-DDTHH:MMZ` (UTC); numbers stay numbers.

`leanFormat: "table"` additionally returns all rows as one tab-separated table per row type (header line once) in `summary.leanTable` (if under 20 KB) and in the key-value record `LEAN_TABLE` — the most compact form for an LLM context. Measured on live runs (tokens per row, compact / lean / table): keyword-search post ~516 / ~209 / ~171, comment ~178 / ~68 / ~50, hot search row ~239 / ~42 / ~29, user profile ~299 / ~104 / –.

#### Include options (add to the defaults `fullText`, `media`)

`author` (post: authorFollowersCount, authorDescription, authorVerifiedReason, authorAvatarUrl; comment: commenter name + id) · `comments` (embed up to `commentsPerItem` hot comments per post as `topComments`, free) · `replies` (with `comments`: reply rows, `repliesPerComment` each) · `raw`.

#### Filters and limits (applied before billing)

`dateFrom` / `dateTo` (`2026-10-01`, ISO, or `24h`/`7d`/`1m`), `minLikes`, `minComments`, `minReposts`, `originalOnly` (no reposts), `contentType` (`images` / `videos` / `text`), `authorType` (`verified` / `organization` = blue V / `individual`), `deltaKey` (only rows not returned by earlier runs with the same key — for scheduled monitoring), `sortBy` (`relevance`, `newest`, `mostLiked`, `mostCommented`, `mostReposted`), `maxItems` (default 20, max 10000, clamped), `maxItemsPerInput` (0 = split evenly), `maxCostUsd` (stops before exceeding), `dedupe` (default true). English keywords are translated with a built-in dictionary when `expandQuery` is on (default): `BYD` → `比亚迪`, `Lei Jun` → `雷军`; rows show `queryUsed`.

#### Cost examples

| Call | Rows | Cost |
|---|---|---|
| `{}` (top 20 trends) | 20 | $0.04 |
| `{"maxItems":51}` (full 热搜榜) | 51 | $0.10 |
| `{"keywords":["BYD"],"maxItems":20}` | 20 posts | $0.12 |
| `{"operation":"comments","urls":[…],"maxItems":100}` | 100 comments | $0.20 |
| `{"operation":"userProfile","users":[…5 accounts]}` | 5 | $0.02 |

#### Example calls

```json
{"operation": "hotSearch", "maxItems": 10, "fields": ["rank", "word", "heat", "category"]}
```

```json
{"keywords": ["BYD", "小米汽车"], "maxItemsPerInput": 20, "sortBy": "newest", "dateFrom": "7d", "minLikes": 10, "fields": ["text", "likesCount", "createdAt", "url", "queryUsed"]}
```

```json
{"operation": "comments", "urls": ["https://weibo.com/2761630725/RmbnfkgUR"], "maxItems": 50, "include": ["replies"], "repliesPerComment": 3, "maxCostUsd": 0.2}
```

```json
{"keywords": ["华为"], "maxItems": 50, "outputMode": "lean", "leanFormat": "table", "originalOnly": true}
```

```json
{"operation": "likers", "urls": ["https://weibo.com/2761630725/RmbnfkgUR"], "maxItems": 100}
```

```json
{"operation": "hotSearch", "maxItems": 51, "deltaKey": "hot-monitor", "outputMode": "lean"}
```

#### Copy-paste input per operation

| `operation` | Example input |
|---|---|
| `keywordResearch` | `{"operation":"keywordResearch","keywords":["比亚迪"],"maxPosts":5,"commentsPerPost":20,"maxCostUsd":0.3}` or `{"operation":"keywordResearch","trendingTopics":3}` |
| `hotSearch` | `{"operation":"hotSearch","maxItems":10}` (or `{}`) |
| `hotTopics` | `{"operation":"hotTopics","maxItems":20}` |
| `hotPosts` | `{"operation":"hotPosts","maxItems":20,"fields":["text","likesCount","authorName","url"]}` |
| `search` | `{"operation":"search","keywords":["比亚迪"],"maxItems":30,"sortBy":"newest"}` |
| `topic` | `{"operation":"topic","keywords":["#华为#"],"maxItems":20}` |
| `postDetails` | `{"operation":"postDetails","urls":["https://weibo.com/2761630725/RmbnfkgUR"]}` |
| `comments` | `{"operation":"comments","urls":["https://weibo.com/2761630725/RmbnfkgUR"],"maxItems":50}` |
| `replies` | `{"operation":"replies","ids":["<commentId from a comment row>"],"maxItems":20}` |
| `reposts` | `{"operation":"reposts","urls":["https://weibo.com/6634214154/RlKGYtlAb"],"maxItems":20}` |
| `likers` | `{"operation":"likers","urls":["https://weibo.com/2761630725/RmbnfkgUR"],"maxItems":50}` |
| `userProfile` | `{"operation":"userProfile","users":["1699432410","@人民日报"]}` |
| `userPosts` | `{"operation":"userPosts","users":["2115259662"],"maxItems":30}` |
| `userSearch` | `{"operation":"userSearch","keywords":["华为"],"maxItems":20}` |
| `fans` | `{"operation":"fans","users":["6634214154"],"maxItems":100}` |
| `following` | `{"operation":"following","users":["6634214154"],"maxItems":50}` |
| `capabilities` | `{"operation":"capabilities"}` (free) |

Not sure? Add `"dryRun": true` to get the plan (detected operation per input, estimated rows and cost) for free.

#### Error codes (rows with `type: "error"`, never billed; the run still SUCCEEDS)

| `errorCode` | Meaning | Fix |
|---|---|---|
| `MISSING_INPUT` | The operation needs keywords/urls/users/ids | Pass them, or use `{}` / `capabilities` |
| `INVALID_URL` | Not a Weibo post / user / topic URL or id | See the `fix` text for accepted forms |
| `INVALID_INPUT` | A value is not valid for its field | Use a documented value |
| `NOT_FOUND` | Deleted, private or login-only | Nothing to retry |
| `NO_RESULTS` | Nothing found, or everything removed by your filters | Loosen filters / try the Chinese term |
| `LOGIN_REQUIRED` | Weibo shows this only to logged-in users | Use a public operation instead |
| `BLOCKED` | Rate limit after all retries | Retry; or RESIDENTIAL proxy, country CN |
| `UPSTREAM_ERROR` | Unexpected Weibo error | Retry |
| `BUDGET_REACHED` | maxItems / maxCostUsd / charge limit hit before this input | Raise the limit |

Typical runtime (v1.3, 256 MB, medians of 3 live runs): hot search ~2.3 s, 20 comments ~2.4 s, one profile ~3.2 s, 10 user posts ~3.6 s, 10 topic posts ~4.4 s, 10 search posts ~5 s, 200 followers ~8 s, 200 search posts ~27 s, 300 newest comments ~20 s — a default call fits the MCP 30 s wait. Several keywords/URLs/users are fetched in parallel. Use `get-dataset-items` with the returned dataset id; the last row is the summary.

***

### Weibo hot search API (微博热搜榜)

`{}` or `{"operation":"hotSearch"}` returns the live Weibo hot search list: rank, word, heat, category, label (热/新/沸), pinned and ad flags, links. `hotSearchBoard` switches between the realtime board (热搜榜, ~50 rows), entertainment (文娱榜), news (要闻榜), life (生活榜) and society (社会榜). Add `deltaKey` to a scheduled run to get only words that are new since the last run. Use it for trend monitoring: what China is talking about right now.

### Weibo trending topics and hot posts (话题榜, 热门微博)

`{"operation":"hotTopics"}` returns the Weibo topic ranking (话题榜) with category, summary, read and mention counts. `{"operation":"hotPosts"}` returns the trending posts feed (热门微博) with full text, paginated up to a few hundred posts.

### Weibo search posts by keyword (微博搜索)

`{"keywords":["比亚迪","iPhone 17"]}` searches public Weibo posts: five search tabs first, then deeper result pages (v1.3), so one keyword can return hundreds of posts (up to ~1000). English names are translated (`BYD` → `比亚迪`, `Lei Jun` → `雷军`). Filter by `dateFrom`/`dateTo`/`minLikes`/`originalOnly`/`contentType`, sort by newest or engagement. Use it for brand and social listening in China.

### Weibo topic and hashtag posts (微博话题)

`{"operation":"topic","keywords":["#华为#"]}` returns the posts of a #hashtag# topic page, then more posts of the same #topic# from search pages (v1.3; the topic page alone shows ~15).

### Weibo post details

Post URLs, mids or bids (`{"urls":["https://weibo.com/2761630725/RmbnfkgUR"]}`) return the full post: full text, counts, author, images, video URL, region, edit time. `include:["videoPlays"]` returns the exact video play count instead of the 万-rounded mobile number.

### Weibo comments and replies (微博评论)

`{"operation":"comments","urls":["https://weibo.com/2761630725/RmbnfkgUR"],"maxItems":200}` pages through a post's comments in hot order or newest first (`sortBy:"newest"`, hundreds of comments deep); `include:["replies"]` adds reply rows, `{"operation":"replies","ids":[…]}` fetches replies of given comments. Commenter identities only with `include:["author"]`. Use it for sentiment and public-opinion analysis.

### Weibo reposts (微博转发)

`{"operation":"reposts","urls":["https://weibo.com/6634214154/RlKGYtlAb"]}` (v1.3) returns the reposts Weibo shows logged-out visitors: the first page of the repost list (top reposts, then the newest; ~10-20 rows), each with reposter, repost text, time, repost and like counts and `repostedPost`. Deeper repost pages need a login, so `repostsCount` gives the total.

### Weibo likers

`{"operation":"likers","urls":[…]}` lists the accounts that liked a post (up to ~200 per post), with followers count and verification. Bio and gender are not in Weibo's liker list; pass the `userId`s to `userProfile` for those.

### Weibo user profile (微博用户)

`{"operation":"userProfile","users":["1699432410","@人民日报"]}` returns followers, following, posts count, verification, bio, gender, location, total likes / comments / reposts and account age.

### Weibo user posts

`{"operation":"userPosts","users":["2115259662"],"maxItems":50}` returns a user's newest ~10 posts of every type, then (v1.3) older photo and video posts from the profile media feed; text-only posts older than the newest ~10 need a login. `dateFrom` stops paging early.

### Weibo user search

`{"operation":"userSearch","keywords":["华为"]}` finds accounts by name or keyword, 20 per page over several pages.

### Weibo followers and following (微博粉丝, 关注)

`{"operation":"fans","users":["6634214154"],"maxItems":500}` returns an account's followers (粉丝), newest first, with bio, gender, followers and posts counts; `following` returns the accounts it follows (关注). v1.3 pages these lists far beyond the old first page (~20). Use it for KOL and audience research.

### Research workflow, trust fields, snapshots (v2)

- **One call, full pipeline:** `{"operation":"keywordResearch","keywords":["小米汽车"],"maxPosts":10,"commentsPerPost":20,"sortBy":"mostCommented"}` → the 10 most-discussed posts, 20 hot comments each, and a free `insights` row (top terms as CJK n-grams, hashtags, authors, regions, engagement medians, lexicon sentiment labelled *heuristic*; no LLM).
- **What is trending and why:** `{"operation":"keywordResearch","trendingTopics":3,"maxPosts":3,"commentsPerPost":10}` takes the top 3 words of the live 热搜榜 (ads and the pinned row skipped) and researches each; `summary.jobs[].trend` gives the word's rank, heat and category. Also works with `search` and `topic`.
- **Budget-balanced:** when `maxItems` / `maxCostUsd` cannot fit `maxPosts` × `commentsPerPost`, the run takes fewer top posts so each one keeps its comments (the budget is split evenly over keywords) and says so in `warnings`. `dryRun` shows the same split for free.
- **`matchTerms`** keeps only comments (keywordResearch, comments) or posts whose text contains a term. It filters after fetching: fewer billed rows, not fewer requests.
- **Trust fields** on every billable row: `isPartial`, `unavailableFields[]`, `collectionWarnings[]` (e.g. play counts rounded to 万). Null means Weibo did not give the value; 0 means Weibo said 0. The summary has requested vs returned per input (`jobs[]`), `pagesFetched`, `stopReason`, and `trust.adsSkipped` (promoted posts dropped from post lists).
- **Computed metrics** (marked computed): `engagementTotal`, `engagementPer1kFollowers`, `engagementPer1kPlays`, `interactionsPerPost`.
- **Snapshot mode:** `deltaKey` + `trackMetrics: true` keeps every row and adds `likesDelta`, `rankDelta`, `heatDelta`, `followersDelta` … against your previous run with the same key (compact vectors in your own key-value store).

### Speed and efficiency (v1.3)

Requests reuse warm connections, inputs run in parallel, rows are saved in batches, and the Actor only calls the Weibo endpoints your `fields` need. v1.3: data requests go straight from the Apify server to Weibo (about 1 s each instead of 1-6 s through the proxy; a host that refuses falls back to the proxy for the rest of the run), only the guest-cookie request uses the proxy, the anonymous guest cookie is reused for up to 12 h (`cacheGuestCookies`), and a request that is still pending after 2.5 s is retried once on a fresh proxy IP (first answer wins). Medians of 3 runs, v1.2.6 → v1.3: 20 comments 3.9 → 2.4 s, one profile 3.2 → 3.2 s, 10 user posts 5.5 → 3.6 s, 10 topic posts 7.5 → 4.4 s. Peak memory stays under ~65 MB. Set `networkMode:"proxy"` for the v1.2 all-proxy behaviour.

### Input reference

All fields are optional. The most used ones:

| Field | Type | Default | Notes |
|---|---|---|---|
| `operation` | string | `auto` | see the operations table |
| `keywords` | string\[] | – | search / topic / userSearch |
| `urls` | string\[] | – | post URLs, mids, bids; profile/topic/search links are routed automatically |
| `users` | string\[] | – | uid, `https://weibo.com/u/<uid>`, custom domain URL, `@name` |
| `ids` | string\[] | – | post mids, comment ids (replies), user ids |
| `maxItems` | integer | 20 | total billable rows |
| `maxItemsPerInput` | integer | 0 | per keyword/post/user; 0 = even split |
| `fields` | string\[] | – | projection |
| `include` | string\[] | – | author, comments, replies, raw (fullText, media always on) |
| `outputMode` | string | compact | compact / lean (token-efficient) / full |
| `maxTextChars`, `leanFormat` | integer, string | 300 in lean, rows | text cut length; `table` adds a TSV table |
| `sortBy`, `dateFrom`, `dateTo`, `minLikes`, `minComments`, `minReposts`, `originalOnly`, `contentType`, `authorType` | | | filters, applied before billing |
| `deltaKey` | string | – | only rows new since earlier runs with the same key |
| `maxCostUsd` | number | – | cost cap for this run |
| `dryRun` | boolean | false | free plan, no scraping |
| `expandQuery` | boolean | true | English → Chinese keywords |
| `hotSearchBoard` | string | realtime | realtime / entertainment / news / life / social |
| `commentsPerItem`, `repliesPerComment` | integer | 5 | embedded comments / replies per comment |
| `searchTabs`, `includePinned`, `includeAds`, `dedupe`, `proxyConfiguration`, `maxRequestRetries`, `requestDelayMs` | | | advanced |

Inputs from v0.x keep working: `mode` (= operation), `searchKeywords`, `postUrls`, `maxPostsPerKeyword` (= maxItemsPerInput), `includeComments` (= include comments), `maxCommentsPerPost` (= commentsPerItem), `includeCommentAuthor`, `fetchFullText`.

### Output example (real post row, compact; text and imageUrls shortened)

```json
{
  "type": "post",
  "operation": "search",
  "input": "华为",
  "queryUsed": "华为",
  "id": "5352461439076122",
  "url": "https://weibo.com/3050893364/Rm0LdC574",
  "fetchedAt": "2026-10-12T17:36:52.739Z",
  "rank": 1,
  "searchTab": "all",
  "postId": "5352461439076122",
  "bid": "Rm0LdC574",
  "text": "#华为 懂车帝# 懂车帝前高管终于找到前同事来作证了…[努力]…",
  "isLongText": false,
  "textTruncated": false,
  "createdAt": "2026-10-10T05:21:54.000Z",
  "likesCount": 5854,
  "commentsCount": 930,
  "repostsCount": 203,
  "authorName": "万点昊",
  "authorId": "3050893364",
  "authorVerified": true,
  "topics": [
    "华为 懂车帝"
  ],
  "region": "上海",
  "source": "财经博主 职业投资人  投资达人 财经观察官",
  "mediaType": "images",
  "isRepost": false,
  "repostedPost": null,
  "isPinned": false,
  "imageUrls": [
    "https://wx4.sinaimg.cn/mw2000/b5d8f034gy1ihx6tfxmsqj20u0320qth.jpg"
  ],
  "imageCount": 2,
  "videoUrl": null,
  "videoCoverUrl": null,
  "videoDurationSeconds": null,
  "videoPlayCount": null,
  "videoTitle": null
}
```

### Pricing (pay per event)

| Event | Price | Charged for |
|---|---|---|
| `result` | $0.006 | each post row |
| `hot-search-row` | $0.002 | each hot search or topic-ranking row |
| `comment` | $0.002 | each comment or reply row |
| `profile` | $0.004 | each user row (userProfile, userSearch, likers, fans, following) |
| `apify-actor-start` | $0.00005 | once per run |

Error, summary, plan and capabilities rows are free; rows removed by filters or de-duplication are never charged. You can always cap a run with `maxItems`, `maxCostUsd` or the platform's max charge per run.

### Limits (guest access, honest list)

- **Login-only on Weibo today (re-tested 2026-10-13), so not offered:** repost pages after the first, text-only posts older than a user's newest ~10, `ipLocation` (IP属地) on profiles (Weibo returns it empty to logged-out visitors; the per-post `region` field is filled), liker bio/gender (not in Weibo's liker list; use `userProfile`).
- Search and topic results end where Weibo's own result pages end (up to ~1000 posts per keyword); hot search ~51 rows; topic ranking ~24-50 topics; likers ~200 per post.
- Video play counts on posts from m.weibo.cn are rounded by Weibo (2万); add `include:["videoPlays"]` for the exact number.
- Promoted rows are skipped by default; deleted/private posts return `NOT_FOUND` rows.
- Public data only. Commenter identities are omitted unless you ask for `include: ["author"]`. Use the data in line with Weibo's terms and applicable law (e.g. PIPL, GDPR).

### FAQ

**Does it need a Weibo login or cookies?** No. It uses the same anonymous guest (visitor) access as a logged-out browser and never logs in. Data that Weibo shows only to logged-in users (repost pages after the first, older text-only posts of a user) is not offered.

**How do I use fewer tokens in my agent?** Set `outputMode: "lean"` (and `leanFormat: "table"` for a TSV table). Same price, about 55-85 % fewer tokens per row (mean 64 %).

**How often does Weibo hot search update?** Weibo refreshes the realtime board about every minute; each run returns the list at that moment (`onboardAt` shows when a word entered the board).

**Can I search in English?** Yes. Common English names of brands, people, places and products are translated to Chinese (`queryUsed` shows the query sent). Set `expandQuery: false` to search the literal text.

**Is it official?** No. This is an unofficial tool, not affiliated with Weibo or Sina. It collects public data only; use it in line with Weibo's terms and applicable law.

# Changelog

This Actor's version history is a separate document: https://apify.com/deadc0dex/weibo-scraper/changelog.md

# Actor input Schema

## `operation` (type: `string`):

auto = detect per input ({} -> hotSearch). keywordResearch = keyword -> top posts -> comments (+replies, reposts) -> free insights. hotSearch = 热搜榜. hotTopics = 话题榜. hotPosts = 热门微博. search = keyword posts. topic = #hashtag# posts. postDetails = posts by URL/id. comments = comments (urls). replies = replies (ids = comment ids). reposts / likers of a post (urls). userProfile / userPosts / fans / following (users). userSearch = find accounts. capabilities = free list.

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

Search terms, one per item (Chinese or English; English names like BYD, Xiaomi, Lei Jun are translated to Chinese when expandQuery is on). Used by search, topic (#话题#) and userSearch. Example: \["比亚迪", "iPhone 17", "#郑钦文#"]. A Weibo URL placed here is routed by its form. Leave all inputs empty for the live hot search list.

## `urls` (type: `array`):

Weibo links or ids, one per item. Posts: https://weibo.com/<uid>/<bid>, https://m.weibo.cn/detail/<mid>, a 16-digit mid or 9-char bid (used by postDetails, comments, reposts, likers). Also accepted: profile URLs (-> userProfile), s.weibo.com search/topic links, hot-list pages. Unusable values return a free INVALID_URL error row.

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

Accounts for userProfile / userPosts / fans / following, one per item: numeric uid (1699432410), https://weibo.com/u/<uid>, https://m.weibo.cn/u/<uid>, https://weibo.com/<custom-domain>, or @screen name (exact, e.g. @新华社).

## `ids` (type: `array`):

Numeric ids, one per item. 15-20 digit ids are posts (mid) for postDetails/comments, or comment ids for operation replies; 5-12 digit ids are user ids. Get ids from earlier rows (postId, commentId, userId).

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

Maximum billable rows in total (posts, comments, users, hot-search rows). Empty = 20 (keywordResearch: keywords × maxPosts × (1 + commentsPerPost)); range 1-10000. Error, plan, insights and summary rows are free and not counted. A full hot search list is 51 rows.

## `maxPosts` (type: `integer`):

keywordResearch: how many top posts per keyword to collect comments from (after your post filters and sortBy). Empty = 10; range 1-500. Tip: sortBy mostCommented picks the most-discussed posts.

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

keywordResearch: comments returned per post (hot order, or newest with commentSort). Empty = 20; range 0-2000 (0 = posts only). Each comment is a billable comment row; posts with 0 comments cost no request.

## `maxItemsPerInput` (type: `integer`):

Cap per keyword / post / user. 0 (default) = split maxItems evenly across inputs so every input gets results. Guest limits: search and topic up to ~1000 posts per keyword, userPosts newest ~10 of all types then photo/video posts, reposts first page (~10-20), likers ~200; comments, fans and userSearch paginate.

## `fields` (type: `array`):

Projection: return only these output fields (type is always kept). Empty = compact default set. Examples: text, likesCount, commentsCount, repostsCount, createdAt, url, authorName, word, heat, rank, followersCount. Unknown names are ignored with a warning. Full list: operation capabilities.

## `include` (type: `array`):

Extras (fullText, media on by default). author = author followers/bio on posts, commenter name+id on comments. comments = embed commentsPerItem hot comments per post (free). replies = operation comments also returns replies (billed as comments). reposts = keywordResearch also returns first-page reposts per post. raw = original object. videoPlays = exact play count (1 extra request per video).

## `outputMode` (type: `string`):

compact (default) = flat rows, core fields per row type, null when unknown. lean = token-efficient for LLMs: minimal fields, no null/empty/false keys, no per-row envelope (it is in the summary row), no url (pattern in summary), text cut to maxTextChars, dates YYYY-MM-DDTHH:MMZ; about 55-85 % fewer tokens, same price. full = adds secondary fields, the raw Weibo object and v0.x keys.

## `sortBy` (type: `string`):

Order of posts/comments within each input (applied before maxItemsPerInput, so it also picks which rows you get). relevance = Weibo order. newest = newest first (search starts with the real-time tab; comments use time order). mostLiked / mostCommented / mostReposted = highest counts first.

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

Keep only posts/comments created at or after this time. YYYY-MM-DD (China time), ISO timestamp, or relative: 24h, 7d, 2w, 1m. Filtered rows are not billed. Guests only see recent/top results, so old ranges return few rows.

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

Keep only posts/comments created at or before this time. Same formats as dateFrom; a plain date includes that whole day.

## `minLikes` (type: `integer`):

Keep only posts/comments with at least this many likes (0 = no filter). Filtered rows are not billed.

## `matchTerms` (type: `array`):

Keep only rows whose text contains one of these words (case-insensitive): comments in comments/keywordResearch, posts in search/topic/hotPosts/userPosts. Example: \["续航", "电池"]. Runs after fetching, before billing: fewer billed rows, not fewer requests (Weibo has no server-side comment search).

## `maxCostUsd` (type: `number`):

Stop before the next billable row would push this run's charges above this amount, e.g. 0.10. Works on top of the platform max charge per run. Leave empty for no extra limit.

## `dryRun` (type: `boolean`):

true = scrape nothing and bill no rows: returns a free plan row with the operation detected for each input, queryUsed, estimated rows and estimated cost, plus warnings. Use it to check messy input before paying.

## `hotSearchBoard` (type: `string`):

Board for operation hotSearch. realtime = main 热搜榜 (pinned topic + top 50). entertainment = 文娱榜. news = 要闻榜 (sometimes empty; returns a free NO_RESULTS row then). life = 生活榜 (~50). social = 社会榜 (~50).

## `trendingTopics` (type: `integer`):

keywordResearch, search or topic: also run on the top N words of the live realtime hot search 热搜 (ads and the pinned row skipped), so one call answers "what is trending and what are people saying". Empty/0 = off; range 1-20. With no other input and operation auto it runs keywordResearch. summary.jobs\[].trend gives each word's rank, heat and category.

## `expandQuery` (type: `boolean`):

Translate Latin-script keywords to Chinese with a built-in dictionary (800+ brands, companies, people, places, topics): BYD -> 比亚迪, Xiaomi -> 小米, Lei Jun -> 雷军. Chinese keywords are unchanged. Each row shows queryUsed; the summary lists every expansion.

## `replyDepth` (type: `integer`):

keywordResearch: 0 (default) = top-level comments only; 1 = also the replies of each comment (up to repliesPerComment each, billed as comment rows).

## `commentSort` (type: `string`):

keywordResearch: hot (default) = Weibo hot order (top comments first); newest = newest comments first.

## `insights` (type: `boolean`):

Add one free type=insights row per input: counts, engagement medians, top posts/authors/hashtags, top terms (CJK n-grams) and heuristic lexicon sentiment (labelled, no LLM). On by default for keywordResearch (false = off); true = also for search, topic, comments, hotSearch and others.

## `trackMetrics` (type: `boolean`):

With deltaKey: compare every row with its last snapshot and add snapshotAt, deltaHours, likesDelta/commentsDelta/repostsDelta (posts), previousRank/rankDelta/heatDelta (hot search), readCountDelta (topics), followersDelta (users). Rows are not skipped. Snapshots: your key-value store weibo-scraper-snapshots, 30 days.

## `maxTextChars` (type: `integer`):

Cut text fields (post/comment text, topic summary, bio) to this many characters, ending with "…", and mark the row truncated: true. Empty = 300 in lean mode, no limit otherwise; 0 = no limit. Range 0-100000.

## `leanFormat` (type: `string`):

Only with outputMode lean. rows (default) = lean JSON rows. table = the same rows (billing unchanged) plus one tab-separated table per row type with the header once - the most token-efficient form - in the summary row (leanTable, if under 20 KB) and in key-value record LEAN_TABLE.

## `minComments` (type: `integer`):

Keep only posts with at least this many comments (comments: replies). Empty or 0 = no filter. Filtered rows are not billed.

## `minReposts` (type: `integer`):

Keep only posts with at least this many reposts. Empty or 0 = no filter. Filtered rows are not billed.

## `originalOnly` (type: `boolean`):

Posts: skip reposts (转发) and keep only posts the author wrote. Filtered before billing.

## `contentType` (type: `string`):

Posts: any (default) = no filter; images = posts with pictures; videos = posts with a video; text = no pictures or video. Filtered before billing.

## `authorType` (type: `string`):

Posts: any (default); verified = any verified account; organization = organisations, media, companies (blue V); individual = verified people (orange/gold V). Filtered before billing.

## `deltaKey` (type: `string`):

Name a tracking stream, e.g. "byd-monitor". Alone: rows already returned by earlier runs with the same deltaKey are skipped (not billed; ids in your key-value store weibo-scraper-delta). With trackMetrics: nothing is skipped and each row gets change fields vs the last run. For scheduled monitoring.

## `commentsPerItem` (type: `integer`):

With include comments: hot comments embedded per post as topComments, 1-20 (free). For many comments use operation comments instead.

## `repliesPerComment` (type: `integer`):

With operation comments + include replies: replies returned per comment, 1-100 (each billed as a comment row).

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

Used by search. Weibo search tabs to collect (results de-duplicated). Default: all five (page 1 of each tab, ~20 posts per tab; then deeper result pages). all = 综合, hot = 热门, realtime = 实时 newest, videos = 视频, images = 图片.

## `includePinned` (type: `boolean`):

hotSearch: include the pinned official topic above the list (rank 0, isPinned true).

## `includeAds` (type: `boolean`):

hotSearch: include paid/promoted rows (isAd true, rank null).

## `dedupe` (type: `boolean`):

Skip rows already returned in this run (same post/comment/user id across inputs). Duplicates are never billed.

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

Default Apify Proxy (datacenter): guest-cookie requests use the proxy and data requests go direct from the Apify server when that works (faster; see networkMode). Any custom setting (groups, country, own URLs) sends all requests through it. If you get BLOCKED errors repeatedly, use RESIDENTIAL with country CN.

## `networkMode` (type: `string`):

auto (default) = data requests go direct from the Apify server and fall back to the proxy per host after the first failure; guest-cookie requests always use the proxy. proxy = every request through proxyConfiguration (v1.2 behaviour).

## `cacheGuestCookies` (type: `boolean`):

Keep the anonymous guest (visitor) cookies Weibo issues for up to 12 h in a key-value store named weibo-scraper-cache in your account, so later runs skip that 1-3 s step. No login and no personal data. false = fetch new guest cookies on every run.

## `hedgeAfterMs` (type: `integer`):

If a Weibo response has not arrived after this many ms, the same request is sent once more on a fresh proxy IP and the first answer wins (cuts slow-IP delays; at most 8 per run). Default 2500; 0 = off; range 0-30000.

## `maxRequestRetries` (type: `integer`):

Retries with a fresh guest session and IP on rate-limit or risk-control responses (0-10).

## `requestDelayMs` (type: `integer`):

Minimum gap in ms between request starts to the same Weibo host (up to 4 requests in flight per host). Default 150; range 0-10000. Raise it (e.g. 400) if you get BLOCKED errors.

## Actor input object example

```json
{
  "operation": "auto",
  "maxItemsPerInput": 0,
  "outputMode": "compact",
  "sortBy": "relevance",
  "minLikes": 0,
  "dryRun": false,
  "hotSearchBoard": "realtime",
  "expandQuery": true,
  "leanFormat": "rows",
  "commentsPerItem": 5,
  "repliesPerComment": 5,
  "includePinned": true,
  "includeAds": false,
  "dedupe": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "networkMode": "auto",
  "cacheGuestCookies": true,
  "hedgeAfterMs": 2500,
  "maxRequestRetries": 5,
  "requestDelayMs": 150
}
```

# Actor output Schema

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

All dataset rows as flat JSON. Filter by the 'type' field (post, hotSearch, hotTopic, comment, user, insights, error, summary, plan, capabilities).

## `runSummary` (type: `string`):

Counts per row kind, billed events, cost in USD, stop reason, warnings, query expansions and next-step inputs.

## `leanTable` (type: `string`):

Only with outputMode lean + leanFormat table: all rows as one tab-separated text table per row type (header once), the most token-efficient form.

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

```

## MCP server setup

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