# Weibo Scraper — Search, Hot Search, Posts & Comments (`istmobot/weibo-scraper-cheap`) Actor

Scrape Weibo (微博) with no login or cookie. Input: a mode plus a keyword, post IDs or user IDs. Modes: keyword search with a date window, hot-search board, hot posts, an account's newest posts, post details, comments, user profiles. Output: one row per post, topic, comment or profile.

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

## Pricing

from $15.20 / 1,000 item scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Weibo Scraper — Search, Hot Search, Posts & Comments, No Login

**A cheaper drop-in alternative to the most-used Weibo scraper on Apify, with the same input field names and the same output field names.** Paste the input you already use (`mode`, `searchQuery`, `postIds`, `userIds`, `maxResults`, `includeComments`...) and get rows with the same fields: `postId`, `text`, `createdAtIso`, `repostsCount`, `commentsCount`, `attitudesCount`, `authorName`, `images`, `videoUrl`, `postUrl` and the rest. It reads only what Weibo (微博) shows to a visitor who is not logged in: no account, no cookie, no API key. Not every mode of that scraper is here; read [Limits to know](#limits-to-know) before you switch.

| | This Actor | Most-used Weibo scraper on Apify |
|---|---|---|
| 1,000 results | **$19** | $35 |
| 10,000 results | **$190** | $350 |
| An account's newest posts | no cookie needed, about 10 newest posts per account | needs your login cookie, goes deeper |
| Failed or empty items | free error rows | not charged |

Other Actor's price as listed on Apify on 2026-11-14.

### What is Weibo Scraper?

Weibo is China's largest microblog, with more than 580 million monthly users. It is where Chinese public opinion forms, where brands talk to consumers and where news breaks first. Its hot-search board (微博热搜) is the closest thing China has to a live ranking of public attention. Weibo has no public API for developers outside China.

This Actor reads Weibo's public pages and returns clean rows. Use it to:

- **Monitor a brand or a topic**: every new post for a keyword, newest first, with a date window.
- **Track what China is talking about**: the hot-search board with rank, heat score and badges (新 / 热 / 沸 / 爆).
- **Collect opinions**: the comment thread of any post, one row per comment, with the commenter's province.
- **Follow accounts**: the newest posts of media, brands and KOLs, and their follower counts over time.
- **Build Chinese text datasets**: full post text, not the 140-character preview, for NLP and AI training.

### What data can I get from Weibo?

Seven modes, one per run:

| Mode | Returns | Needs |
|---|---|---|
| `search` | Posts for a keyword, newest first, back in time up to `maxResults` | `searchQuery` |
| `hot_search` | The trending board: about 50 topics plus the paid slot | nothing |
| `hot_timeline` | The posts Weibo's own hot feed is pushing right now | nothing |
| `user_posts` | The newest posts of each account (about 10 per account) | `userIds` |
| `user_profile` | One row per account: followers, posts, verification, bio | `userIds` |
| `post_details` | One row per post: current text and engagement | `postIds` |
| `post_comments` | Each post plus its comments, one row per comment | `postIds` |

Post rows (`search`, `hot_timeline`, `user_posts`, `post_details`):

| Field | Meaning |
|---|---|
| `postId`, `mid` | Weibo post ID |
| `text` | Post text as plain text. Long posts come in full (see `fetchFullText`) |
| `isTruncated` | `true` only when Weibo did not give the full text of a long post |
| `createdAt`, `createdAtIso` | Weibo's raw date (`Wed Apr 09 12:49:23 +0800 2026`) and the same moment in ISO 8601 with the +08:00 offset |
| `source` | Client or label Weibo shows under the post |
| `repostsCount`, `commentsCount`, `attitudesCount` | Reposts, comments and likes |
| `authorName`, `authorId`, `authorAvatar` | Author name, numeric user ID and avatar |
| `authorDescription`, `authorFollowers`, `authorFollowing`, `authorVerified`, `authorVerifiedReason` | Author bio, followers, following and verification, when Weibo sends them with the post |
| `images` | Image links, large size |
| `videoUrl` | Signed MP4 link. It expires about 1 hour after the run |
| `region`, `regionEn` | Location Weibo shows on the post (`发布于 广东`), in Chinese and in English |
| `isPromoted` | `true` when Weibo marks the post as promoted |
| `isRepost`, `repostOf` | Whether the post is a repost, and the original post with the same fields |
| `postUrl` | Link to the post on weibo.com |
| `mode`, `scrapedAt` | Row type and time of the scrape |

Hot-search rows: `rank`, `title`, `note`, `hotValue`, `category`, `labelName`, `iconDesc`, `isHot`, `isNew`, `isPromoted`, `url`, `mode`, `scrapedAt`. The paid slot has `rank: null` and `isPromoted: true`.

Comment rows: `commentId`, `text`, `createdAt`, `createdAtIso`, `likeCount`, `replyCount`, `authorName`, `authorId`, `authorFollowers`, `authorVerified`, `authorRegion`, `authorRegionEn`, `postId`, `postUrl`, `mode` (`post_comment`), `scrapedAt`.

Profile rows: `userId`, `screenName`, `description`, `gender`, `location`, `followersCount`, `friendsCount`, `statusesCount`, `verified`, `verifiedType`, `verifiedReason`, `avatarHd`, `coverImage`, `domain`, `profileUrl`, `createdAt`, `birthday`, `company`, `sunshineCredit`, `mode` (`user_profile`), `scrapedAt`.

All text is in the original Chinese. A value Weibo does not send is `null`.

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

Pay-per-event pricing: you pay for the rows you get.

| Event | Price |
|---|---|
| Actor start | $0.005 per run |
| `item-scraped` (one post, topic, comment or profile in the dataset) | $0.019 per row, or **$19 per 1,000** |

Examples:

- The hot-search board (about 51 rows): $0.005 + 51 × $0.019 = **$0.97**.
- 100 posts for a brand keyword: $0.005 + 100 × $0.019 = **$1.91**.
- 20 hot posts with 20 comments each (420 rows): **$7.99**.
- 10,000 posts for a dataset: **$190**. The most-used Weibo scraper on Apify charges $350 for the same rows.

Error rows, posts Weibo does not show, accounts that do not exist and empty searches are **not charged**. Full text of long posts is included in the row price. Silver, Gold and higher Apify plans pay less per row. You can set a **maximum cost per run**; the Actor stops cleanly when it reaches it.

### How to scrape Weibo

1. Click **Try for free**.
2. Pick a **Mode**.
3. Type a keyword in **Search query**, or paste post links or user IDs, depending on the mode.
4. Set **Max results**.
5. Click **Start**.
6. Download the dataset as JSON, CSV or Excel, or read it through the Apify API.

### ⬇️ Input

Search posts for a keyword:

```json
{
    "mode": "search",
    "searchQuery": "人工智能",
    "maxResults": 100
}
```

A brand in a date window, with the comments of each post:

```json
{
    "mode": "search",
    "searchQuery": "Nike",
    "searchAliases": ["耐克"],
    "searchDateFrom": "2026-11-10",
    "searchDateTo": "2026-11-12",
    "includeComments": true,
    "maxComments": 20,
    "maxResults": 200
}
```

The trending board, a list of posts, and a list of accounts:

```json
{ "mode": "hot_search", "maxResults": 50 }
```

```json
{ "mode": "post_comments", "postIds": ["https://weibo.com/2803301701/RrkuTbF8d"], "maxComments": 100 }
```

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

| Field | Type | What it does |
|---|---|---|
| `mode` | string | `search`, `hot_search`, `hot_timeline`, `user_posts`, `user_profile`, `post_details` or `post_comments` |
| `searchQuery` | string | Keyword for `search`. Chinese keywords find more posts: `耐克` returns more than `Nike` |
| `searchAliases` | array | Other terms to search and merge with the query. The terms take turns and share `maxResults` |
| `searchDateFrom`, `searchDateTo` | string | Date window for `search`, e.g. `2026-09-01` or `2026-09-01T08:00:00`. Beijing time (UTC+08:00) unless you write an offset |
| `userIds` | array | Numeric user IDs or links such as `https://weibo.com/u/1642634100`, for `user_posts` and `user_profile` |
| `postIds` | array | Post IDs (`5346708137705813`), short codes (`RjB5HwkDj`) or post links, for `post_details` and `post_comments` |
| `maxResults` | integer | Maximum posts or topics, 1 to 5,000. Default 100. Per account in `user_posts` |
| `includeComments` | boolean | In `search`, `hot_timeline` and `user_posts`: also return each post's comments as rows |
| `maxComments` | integer | Comments per post, 1 to 1,000. Default 20 |
| `fetchFullText` | boolean | Get the full text of long posts. Default `true`, no extra charge |
| `proxyConfiguration` | object | Proxy for the requests. The default, Apify datacenter proxy, works. Keep a proxy on: with none, Weibo did not answer from Apify's servers |

How the date window works: Weibo's search takes an end time and no start time. The Actor starts at `searchDateTo` (or now) and goes back in time until it reaches `searchDateFrom` or `maxResults`. Posts before `searchDateFrom` are not returned and not charged. A plain date in `searchDateFrom` means 00:00:00 that day; in `searchDateTo` it means 23:59:59.

### ⬆️ Output

One post row (`search` mode):

```json
{
    "postId": "5365143806411102",
    "mid": "5365143806411102",
    "text": "#美国全国航班停飞 见证历史#美国这次全国停飞，名义上是通信故障，实则是基础设施在AI浪潮下的一次“过载崩溃”。\n当全美22个空管中心同时失联，FAA出于安全考虑按下暂停键。……",
    "isTruncated": false,
    "createdAt": "Sat Nov 14 13:17:05 +0800 2026",
    "createdAtIso": "2026-11-14T13:17:05+08:00",
    "source": "超话小主持人（南昌事超话）",
    "repostsCount": 0,
    "commentsCount": 0,
    "attitudesCount": 0,
    "authorName": "人生有知味",
    "authorId": "1514696174",
    "authorDescription": "我就是你，你就是我，普普通通，平平淡淡",
    "authorFollowers": 36000,
    "authorFollowing": 4039,
    "authorVerified": true,
    "authorVerifiedReason": "超话小主持人（南昌事超话）",
    "authorAvatar": "https://wx1.sinaimg.cn/orj480/5a486deely8hlxkre0hxwj20u00u0gny.jpg",
    "images": [],
    "videoUrl": null,
    "region": "江西",
    "regionEn": "Jiangxi",
    "isPromoted": false,
    "isRepost": false,
    "repostOf": null,
    "postUrl": "https://weibo.com/1514696174/5365143806411102",
    "mode": "search",
    "scrapedAt": "2026-11-14T05:17:15.067Z"
}
```

One hot-search row:

```json
{
    "rank": 1,
    "title": "无人健身房火了小伙5年开1300家",
    "note": "无人健身房火了小伙5年开1300家",
    "hotValue": 1189102,
    "category": "",
    "labelName": "热",
    "iconDesc": "热",
    "isHot": true,
    "isNew": false,
    "isPromoted": false,
    "url": "https://s.weibo.com/weibo?q=%23%E6%97%A0%E4%BA%BA%E5%81%A5%E8%BA%AB%E6%88%BF%E7%81%AB%E4%BA%86%E5%B0%8F%E4%BC%995%E5%B9%B4%E5%BC%801300%E5%AE%B6%23",
    "mode": "hot_search",
    "scrapedAt": "2026-11-14T05:17:05.736Z"
}
```

One comment row:

```json
{
    "commentId": "5365137751149856",
    "text": "感谢科普 一定要记住 太实用了",
    "createdAt": "Sat Nov 14 12:53:02 +0800 2026",
    "createdAtIso": "2026-11-14T12:53:02+08:00",
    "likeCount": 12,
    "replyCount": 0,
    "authorName": "养只猪包",
    "authorId": "7577767351",
    "authorFollowers": 1880,
    "authorVerified": true,
    "authorRegion": "广东",
    "authorRegionEn": "Guangdong",
    "postId": "5365136512779721",
    "postUrl": "https://weibo.com/detail/5365136512779721",
    "mode": "post_comment",
    "scrapedAt": "2026-11-14T05:18:08.827Z"
}
```

One profile row:

```json
{
    "userId": "2803301701",
    "screenName": "人民日报",
    "description": "人民日报法人微博。参与、沟通、记录时代。",
    "gender": "m",
    "location": "北京",
    "followersCount": 158160075,
    "friendsCount": 3096,
    "statusesCount": 155317,
    "verified": true,
    "verifiedType": 3,
    "verifiedReason": "《人民日报》法人微博",
    "avatarHd": "https://tvax4.sinaimg.cn/crop.0.0.1018.1018.1024/0033ImPzly8h8vgemh8kxj60sa0sadgw02.jpg",
    "coverImage": "https://wx1.sinaimg.cn/crop.0.0.640.640.640/0033ImPzly1gs64jwa7uyj60v90v9n1r02.jpg",
    "domain": "rmrb",
    "profileUrl": "https://weibo.com/u/2803301701",
    "createdAt": "2012-07-22 02:28:35",
    "birthday": "1948-06-15 双子座",
    "company": "人民日报社",
    "sunshineCredit": "阳光信用极好",
    "mode": "user_profile",
    "scrapedAt": "2026-11-14T05:18:15.028Z"
}
```

### Error items

When something cannot be delivered, the dataset gets a row with `error` and `errorCode` in place of data. **Error rows are never charged.**

```json
{
    "mode": "post_details",
    "postId": "1234567890123456",
    "errorCode": "NOT_FOUND",
    "error": "Weibo shows no post with this ID (deleted, hidden or never existed: 该微博不存在). Not charged.",
    "scrapedAt": "2026-11-14T05:18:02.143Z"
}
```

| `errorCode` | Meaning |
|---|---|
| `INVALID_INPUT` | A keyword, ID or date is missing or not recognized |
| `NOT_FOUND` | Weibo has no such post or user |
| `NO_RESULTS` | Weibo returned nothing for this search or account |
| `FETCH_FAILED` | Weibo did not answer after 5 attempts |
| `UNSUPPORTED_MODE`, `UNKNOWN_MODE` | The mode is not available in this Actor |

### Limits to know

- **User posts: about 10 per account.** Weibo shows a visitor without a login only the newest posts of an account. The Actor returns those and never asks for your cookie.
- **Search goes back in time, a few posts per request.** Weibo gives logged-out visitors one page per search, so the Actor repeats the search with an earlier end time. 1,000 posts take about 10 minutes. Up to 5,000 posts per run.
- **Posts published in the same second** as the last post of a page can be missed when more than a page of them exist.
- **`authorFollowers` on post rows is rounded** the way Weibo sends it with a post (`42.5万` becomes 425000). The `user_profile` mode gives exact counts.
- **Comments are top-level comments**, most liked first. Replies under a comment are counted in `replyCount` and not returned as rows.
- **`videoUrl` expires** about 1 hour after the run. Download the video right away if you need it.
- **Not in this Actor:** the `hot_search_delta` and `complaints` modes, sentiment analysis, province rollup, the promoted-post filter (use the `isPromoted` field), author profile rows, delta mode, follow-up comments, automatic brand-name translation (add the Chinese name in `searchAliases`) and `cookieString`. These options are accepted and ignored, so your saved input still runs; the two modes return one free error row.

### Scheduled monitoring

Most of the value is in recurring runs. Two common setups in **Apify Console → Schedules**:

- **Hourly trend log:** `{ "mode": "hot_search", "maxResults": 50 }` with cron `0 * * * *`. Each run stores the board with a `scrapedAt` time, so the runs form a time series per topic.
- **Daily brand feed:** `{ "mode": "search", "searchQuery": "耐克", "searchDateFrom": "2026-11-13", "maxResults": 500 }` with cron `0 8 * * *`. Move `searchDateFrom` forward each day (the API lets you send the input with each run) to get only the posts since the last run.
- **Engagement over time:** `{ "mode": "post_details", "postIds": [...] }` every few hours returns the current reposts, comments and likes of each post.

### Integrations & API

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("istmobot/weibo-scraper-cheap").call(run_input={
    "mode": "search",
    "searchQuery": "人工智能",
    "maxResults": 100,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("createdAtIso"), item.get("authorName"), item.get("text"))
```

Node.js:

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('istmobot/weibo-scraper-cheap').call({ mode: 'hot_search', maxResults: 50 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((item) => `${item.rank} ${item.title} ${item.hotValue}`));
```

curl, one call that waits for the run and returns the rows:

```bash
curl -X POST "https://api.apify.com/v2/acts/istmobot~weibo-scraper-cheap/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"hot_search","maxResults":50}'
```

The Actor also works with **Make, Zapier and n8n** through the Apify apps, with **webhooks** when a run finishes, and with Google Sheets, Slack and other Apify integrations. Results can be downloaded as JSON, CSV, Excel, XML or RSS.

### 🤖 Use with AI agents (MCP)

`https://mcp.apify.com?tools=istmobot/weibo-scraper-cheap`. Example prompt: "Get the Weibo hot-search board, then search the top topic and summarize in English what people are saying."

### Want other data from China and social platforms?

- [Bilibili Scraper](https://apify.com/istmobot/bilibili-scraper): videos, stats, search and comments from China's video platform.
- [WeChat Articles Scraper](https://apify.com/istmobot/wechat-articles-scraper): 微信公众号 articles, search and full text.
- [TikTok Video Scraper](https://apify.com/istmobot/tiktok-scraper-cheap) and [TikTok Trends Scraper](https://apify.com/istmobot/tiktok-trends-scraper): videos, hashtags and trends.
- [X (Twitter) Trends by Country](https://apify.com/istmobot/x-trends-by-country): trending topics outside China, to compare with the Weibo board.
- [Google Trends Scraper](https://apify.com/istmobot/google-trends-scraper-cheap): search interest for the same keywords.
- [Reddit Scraper](https://apify.com/istmobot/reddit-scraper-cheap): posts, comments and search.

### ❓ FAQ

**Is there an official Weibo API?**
Not for developers outside China: it needs a Chinese business registration. This Actor reads the same public pages a visitor sees in a browser.

**Do I need a Weibo account, a cookie or a VPN?**
No. Every mode works with no login, and the Actor never asks for your cookie. The requests go through Apify's proxy, so no VPN is needed.

**Is scraping Weibo legal?**
The Actor collects only public data that Weibo shows to visitors who are not logged in. Some rows describe people: names, user IDs, avatars, locations and bios as Weibo shows them. You decide what you collect and why, and you need a lawful basis for personal data (GDPR, and China's PIPL where it applies). Do not use the output to harass or profile private individuals. This Actor is not affiliated with Weibo or Sina.

**How many results can I get?**
Up to 5,000 posts per search run, about 50 topics from the hot-search board, about 10 posts per account, and up to 1,000 comments per post. For more search results, split the period into several runs with the date window.

**Why does a search return few posts?**
Weibo indexes Chinese text. Search the Chinese name of a brand (`耐克`, not only `Nike`), or add it in `searchAliases`. A keyword Weibo has no posts for ends with one free `NO_RESULTS` row.

**How often can I run it?**
As often as you like. The hot-search board changes every minute; an hourly schedule is common. Each run is charged for the rows it returns.

**In what formats can I get the data?**
JSON, CSV, Excel, XML, RSS and HTML table, from the Console or the API. The text is in the original Simplified Chinese; send it to a translation step if you need English.

**I already use another Weibo scraper. What changes?**
The input field names and the output field names are the same, so your code keeps working for the modes listed above. The price per row is lower, and user posts need no cookie.

**What if a run fails or returns less than expected?**
Rows that failed are in the dataset as free error rows with the reason. If something looks wrong, open an issue and include the run ID.

### Your feedback

Found a bug, a missing field, or need another Weibo mode? Open an issue in the **Issues** tab of this Actor. Issues are read and answered.

# Actor input Schema

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

What to get, one mode per run, all with no login. search: posts for a keyword, newest first. hot_search: the trending board (微博热搜). hot_timeline: the posts Weibo is pushing right now. user_posts: the newest posts of each account in userIds. user_profile: one row per account in userIds. post_details: one row per post in postIds. post_comments: each post in postIds plus its comments. Example: "search".

## `searchQuery` (type: `string`):

Keyword for the search mode, in Chinese or English. Chinese keywords find more posts. Examples: "人工智能", "新能源汽车", "iPhone".

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

Maximum number of results. In search, hot_timeline and post_details it caps the posts of the run; in hot_search the topics (the board has about 50); in user_posts the posts per account. user_profile returns one row per user ID. Comment rows come on top (see Max comments per post). Example: 25.

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

For user_posts and user_profile. Numeric Weibo user IDs or profile links, one per line, e.g. "2803301701" or "https://weibo.com/u/1642634100". Custom addresses such as weibo.com/name are not resolved: use the numeric ID. Without a login Weibo shows only the newest posts of an account (about 10).

## `postIds` (type: `array`):

For post_details and post_comments. One per line: the numeric post ID ("5346708137705813"), the short code from a post link ("RjB5HwkDj"), or a link such as "https://weibo.com/7087906569/RjB5HwkDj" or "https://m.weibo.cn/detail/5346708137705813". The same post given twice is fetched and charged once. Leave empty to get 3 of the current hot posts as a sample.

## `searchAliases` (type: `array`):

Search mode: other terms to search and merge with the query, one per line, e.g. "耐克" next to "Nike". The terms take turns and share Max results; a post found twice is returned once.

## `searchDateFrom` (type: `string`):

Search mode: earliest post date to return, e.g. "2026-09-01" (00:00:00 that day) or "2026-09-01T08:00:00". Beijing time (UTC+08:00) unless you write an offset such as "Z". The search goes back in time from the end date and stops at this date. Posts before it are not returned and not charged. On a schedule, set it to get only recent posts.

## `searchDateTo` (type: `string`):

Search mode: latest post date to return, e.g. "2026-09-03" (23:59:59 that day) or "2026-09-03T18:00:00". Beijing time (UTC+08:00) unless you write an offset. Leave empty to start from now.

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

In search, hot_timeline and user_posts: after each post, also return its comments, one row per comment (mode "post_comment", linked by postId), up to Max comments per post. Posts with no comments add nothing. Each comment row is charged like a post. Example: true.

## `maxComments` (type: `integer`):

Upper limit of comments per post, in post_comments mode and with Also scrape comments. Top-level comments, most liked first. Example: 20.

## `fetchFullText` (type: `boolean`):

Weibo's lists send only the first 140 characters or so of a long post. With this on, each cut-off post is fetched in full at no extra charge. Turn it off for the fastest run; cut-off posts then have isTruncated: true.

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

Proxy for the requests to Weibo. The default (Apify datacenter proxy) works and is the cheapest. Keep a proxy on: in a test with no proxy, Weibo did not answer requests from Apify's servers. Example: {"useApifyProxy": true}.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "人工智能",
  "maxResults": 25,
  "userIds": [
    "2803301701"
  ],
  "includeComments": false,
  "maxComments": 20,
  "fetchFullText": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "mode": "search",
    "searchQuery": "人工智能",
    "maxResults": 25,
    "userIds": [
        "2803301701"
    ],
    "maxComments": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("istmobot/weibo-scraper-cheap").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 = {
    "mode": "search",
    "searchQuery": "人工智能",
    "maxResults": 25,
    "userIds": ["2803301701"],
    "maxComments": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("istmobot/weibo-scraper-cheap").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 '{
  "mode": "search",
  "searchQuery": "人工智能",
  "maxResults": 25,
  "userIds": [
    "2803301701"
  ],
  "maxComments": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call istmobot/weibo-scraper-cheap --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,istmobot/weibo-scraper-cheap"
        }
    }
}
```

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/mYY7EX71mF3ZbtXFK/builds/H46oXxPy5OVEIDnJP/openapi.json
