# Weibo Scraper Pro: Posts, Comments, Profiles, Hot Search & KOLs (`blessiticus/weibo-scraper-pro`) Actor

Fastest & most complete Sina Weibo scraper. Extract posts, comments, KOL influencer profiles, hot search trends, user timeline, and search results. Unclipped full text & Sentiment Analysis

- **URL**: https://apify.com/blessiticus/weibo-scraper-pro.md
- **Developed by:** [Mohammad Palekar](https://apify.com/blessiticus) (community)
- **Categories:** Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.80 / 1,000 search / timeline posts

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 Pro: Posts, Comments, KOL Profiles, Hot Search Trends & Sentiment (微博采集器)

#### *Fast, Comprehensive Sina Weibo (新浪微博) Intelligence Scraper: Full-Text Posts, Nested Comments, KOL Influencer Audit, Real-Time Hot Search (热搜榜), and Automated Sentiment Analysis (舆情分析).*

> **The ultimate enterprise data scraper and social listening tool for Sina Weibo (新浪微博采集器)**. Extract complete unclipped posts, nested comments and discussions, verified KOL influencer profiles (大V / 关键意见领袖), live Weibo Hot Search trends (热搜榜), and user timelines with **built-in Chinese Sentiment & PR Crisis Alerts (舆情监测与避雷分析)**. Features a lightweight **256 MB** profile, zero-cookie public search engine, pure async architecture, and pay-per-event pricing that saves 12% to 20% compared to competitors.

***

### ⚡ Why Weibo Scraper Pro vs. Competitors (核心优势对比)

Most existing Weibo scrapers suffer from truncated text, lack comment extraction, cannot filter by dates, or break without personal login credentials. **Weibo Scraper Pro** is purpose-built for global brands, hedge funds, PR agencies, and China market intelligence:

| Feature (功能) | Competitors (竞品采集器) | **Weibo Scraper Pro** |
|:---|:---:|:---:|
| **Keyword Search (关键词搜索)** | ⚠️ $0.004 / item | ✅ **$0.0035 / item (Save 12.5%!)** |
| **Post Details (帖子详情)** | ⚠️ $0.025 / item | ✅ **$0.020 / item (Save 20%!)** |
| **KOL Profiles (博主主页与大V认证)** | ⚠️ $0.025 / item | ✅ **$0.020 / item (Save 20%!)** |
| **Fans & Followers (粉丝与关注列表)** | ⚠️ $0.003 / item | ✅ **$0.0025 / item (Save 16.7%!)** |
| **💬 Nested Comments & Replies (评论与楼中楼)** | ❌ Not Supported | ✅ **Fully Supported ($0.0025 / comment)** |
| **📊 Automated Chinese Sentiment (中文情感与舆情)** | ❌ None | ✅ **Built-in Sarcasm \[doge] & Crisis Detection** |
| **⏱️ Realtime Chronological Sort (实时最新排序)** | ❌ Hot only | ✅ **Chronological newest-first for PR alerts** |
| **📅 Date Range Filtering (起止时间过滤)** | ❌ Not Supported | ✅ **Exact `startDate` & `endDate` boundaries** |
| **🎯 KOL Verification Filter (KOL认证与去噪)** | ❌ Bot-polluted | ✅ **Filter by Blue V / Gold V + min followers** |
| **📍 IP Province Normalization (省份与属地清洗)** | ⚠️ Raw text | ✅ **Cleaned Chinese provinces (`北京`, `上海`, `海外`)** |
| **📱 User Timeline Posts (博主主页历史推文)** | ❌ Not Supported | ✅ **Fully Supported ($0.0035 / post)** |
| **🔥 Live Hot Search Trends (微博实时热搜榜)** | ❌ Not Supported | ✅ **Fully Supported ($0.0020 / trend item)** |
| **Unclipped Full-Text (长微博展开全文)** | ⚠️ Cut off (`...全文`) | ✅ **100% Unclipped Long-Form Copy** |
| **Zero-Cookie Public Search (免登录搜索引擎)** | ⚠️ Login required | ✅ **Dual-engine resilient public search** |
| **64-bit ID Precision (BigInt保护)** | ⚠️ Truncated by JS | ✅ **Preserved as full-precision Strings** |
| **Memory Profile (运行内存配置)** | 256 MB | **256 MB (Ultra-light async HTTP)** |

***

### 💡 What is a KOL in the Chinese Market? (什么是 KOL)

**KOL (Key Opinion Leader / 关键意见领袖)** is the single most influential concept in Chinese digital commerce and social media:

- **Definition**: On platforms like Sina Weibo (新浪微博), Little Red Book (小红书), and Douyin (抖音), a KOL is a verified subject-matter expert, celebrity, or creator (大V博主) commanding a dedicated audience in niches like consumer tech, cosmetics, electric vehicles (EV), fashion, luxury, or finance.
- **KOL vs. Western Influencers**: Unlike Western influencers who primarily post lifestyle imagery, Chinese KOLs serve as authoritative product advisors. Millions of Chinese consumers actively consult Weibo KOL reviews, teardowns, and comment threads before making buying decisions.
- **KOL Tiers (博主梯队)**:
  - **Top-Tier KOLs (头部大V)**: 1,000,000+ followers. Mass reach for national brand awareness and trending topic creation.
  - **Mid-Tier KOLs (腰部博主)**: 100,000 – 1,000,000 followers. Highest engagement and conversion rates in vertical niches.
  - **Micro-KOLs / KOCs (关键意见消费者)**: 10,000 – 100,000 followers. Authentic consumer voices whose grassroots recommendations drive everyday trust.
  - **Organic Users (普通用户)**: Everyday platform users sharing personal experiences.
- **How Weibo Scraper Pro Audits KOLs**:
  - Automatically classifies accounts into standard `kolTier` brackets.
  - Extracts official verification credentials (Blue V enterprise vs. Gold V VIP), VIP tier (`mbrank`), and real follower counts.
  - Scrapes comment discussions to detect fake bot followers and paid astroturfing.

***

### 🧠 Automated Chinese Social Sentiment & PR Crisis Detection (中文舆情与危机监测)

Engineered for global analysts and non-native Chinese speakers, **Weibo Scraper Pro** features a specialized NLP sentiment engine fine-tuned for Chinese social media linguistics:

- **Sarcasm & Irony Detection (`hasSarcasm`)**: Detects nuanced Chinese internet satire, double meanings, and popular cynicism markers like `[doge]`, `[阴险]`, `[吃瓜]`, `[滑稽]`, "笑死", and "这波啊".
- **Brand Safety & Crisis Alerts (`isCrisisAlert`)**: Instantly flags high-risk consumer complaints and crisis vocabulary such as `避雷` (boycott / steer clear), `翻车` (flop / disaster), `质量差` (shoddy quality), `假货` (counterfeit), `虚假宣传` (false advertising), `维权` (legal protest), and `智商税` (scam), alongside negative emoji flags (`[怒]`, `[吐]`, `[差评]`).
- **Normalized Sentiment Scoring (`sentiment.score`)**: Outputs a quantitative polarity score from `-1.0` (severe negative backlash) to `+1.0` (strong positive endorsement) with high-level `polarity` tags (`positive`, `negative`, `neutral`, `mixed`).

***

### 🎯 Real-World Brand Intelligence Recipes (实战场景)

#### Recipe 1: Early PR Crisis Radar (公关危机雷达)

- **Objective**: Catch viral complaints and boycott calls 3 hours before they hit the national Hot Search board.
- **Setup**:
  - `operation`: `searchWeibo`
  - `keyword`: `Tesla 避雷` or `Apple 质量`
  - `sortBy`: `realtime` (chronological newest-first to catch emerging complaints)
  - `includeTopComments`: `true` (capture community reactions)
- **Automation**: Pair with Apify's `/schedule` to poll hourly and trigger Slack/Webhook alerts.

#### Recipe 2: Product Launch Sentiment Audit (新品上市口碑监测)

- **Objective**: Benchmark customer sentiment and geographic heat across China during a launch week.
- **Setup**:
  - `keyword`: `Xiaomi SU7` or `iPhone 16`
  - `startDate`: `2026-10-01`
  - `endDate`: `2026-10-07`
  - `onlyVerified`: `false` (capture genuine consumer voices)
  - Map regional adoption using `ipProvince` (e.g., Guangdong vs. Shanghai vs. Beijing).

#### Recipe 3: KOL Authenticity Due Diligence (KOL博主深度背调)

- **Objective**: Verify whether a multi-million-follower creator has genuine engagement or purchased bots.
- **Setup**:
  - `operation`: `userPosts`
  - `userIds`: `["1111681197"]`
  - Cross-reference engagement metrics against `weiboComments` to analyze comment diversity, sarcasm ratios, and real user interactions.

***

### ⚡ 10 Ready-to-Use Pre-Configured Tasks (1-Click Run)

Get started immediately with zero JSON configuration using our pre-built public tasks tailored for enterprise marketing, sentiment listening, and creator discovery:

| Task Preset | Target Use Case / SEO Keywords | 1-Click Launch |
|:---|:---|:---:|
| **🔥 Weibo Hot Search Monitor (热搜榜)** | Real-time trending topics, search volumes, and viral hashtags across China | [Run Task ↗](https://apify.com/blessiticus/weibo-hot-search-trend-monitor) |
| **📊 Brand Sentiment & Social Listening** | Brand keyword monitoring with unclipped text & deep comment extraction | [Run Task ↗](https://apify.com/blessiticus/weibo-brand-sentiment-analysis) |
| **🚨 PR Crisis & Complaint Tracker** | Chronological realtime feed tracking negative mentions before they trend | [Run Task ↗](https://apify.com/blessiticus/weibo-pr-crisis-realtime-monitor) |
| **🎯 KOL Influencer Discovery & Audit** | Filter verified Big-V creators by follower thresholds (50k+) for influencer ROI | [Run Task ↗](https://apify.com/blessiticus/weibo-kol-influencer-finder) |
| **💬 Post Comments & Reactions** | Scrape nested comments, replies, and commenter IP locations for sentiment NLP | [Run Task ↗](https://apify.com/blessiticus/weibo-post-comments-sentiment-extractor) |
| **🏢 Competitor Content & Timeline Tracker** | Extract full post history, engagement, and media cadence from rival brands | [Run Task ↗](https://apify.com/blessiticus/weibo-competitor-timeline-scraper) |
| **👤 KOL Profile Due Diligence** | Audit follower stats, verification credentials, and bio data before sponsor deals | [Run Task ↗](https://apify.com/blessiticus/weibo-kol-profile-due-diligence) |
| **📄 Viral Post Detail & Full-Text Extractor** | Retrieve complete long-form copy, 1080p video URLs, and high-res photos | [Run Task ↗](https://apify.com/blessiticus/weibo-viral-post-detail-extractor) |
| **📅 Historical Campaign Analytics** | Exact date-bounded search (`YYYY-MM-DD`) for 11.11, 618, and product launches | [Run Task ↗](https://apify.com/blessiticus/weibo-historical-campaign-analytics) |
| **👥 Audience & Follower Demographics** | Scrape follower lists to analyze audience demographics and regional personas | [Run Task ↗](https://apify.com/blessiticus/weibo-audience-followers-research) |

***

### 🛠️ Supported Operations

Select your desired mode in the **Scraping Mode / Operation** dropdown:

#### 1. `searchWeibo` — Keyword Search & Brand Intelligence

Search Weibo for any topic, brand name, stock ticker, or hashtag with advanced filters.

- **Input Parameters**:
  - `keyword`: Search query (e.g., `DeepSeek`, `Xiaomi SU7`, `Black Myth Wukong`)
  - `sortBy`: `hot` (综合热门 - default relevance) or `realtime` (实时最新 - newest first)
  - `startDate` & `endDate`: Optional date bounds in `YYYY-MM-DD` format
  - `onlyVerified`: When enabled, filters for Blue V / Gold V verified accounts
  - `minFollowers`: Minimum author follower threshold (e.g., 50,000)
  - `includeTopComments`: Automatically scrape top comments for each post
- **Returns**: Clean post text, author profile, engagement metrics, IP province, and automated sentiment analysis.

#### 2. `weiboDetail` — Post Detail & Media Downloader

Fetch full details for specific posts using their numeric ID or alphanumeric URL bid.

- **Input Parameters**: `weiboIds` (e.g., `5072046487114251` or `Oq62x4Kyz`)
- **Returns**: Full unclipped text, HD image links, direct 1080p MP4 video URLs, reposts, comments, attitude counts, and timestamps.

#### 3. `weiboComments` — Post Comments & Discussion Sentiment

Scrape top and latest comments and discussion threads under specific Weibo posts.

- **Input Parameters**: `weiboIds` (e.g., `5072046487114251`)
- **Returns**: Comment text, sentiment score, like count, author metadata, commenter IP location, and nested sub-replies.

#### 4. `userProfile` — KOL & User Profile Due Diligence

Scrape public profile information and verified credentials for any Weibo account.

- **Input Parameters**: `userIds` (e.g., `1111681197`)
- **Returns**: Screen name, bio, follower count, following count, total Weibo posts, `kolTier`, VIP level (`mbrank`), verification reason, and avatar URL.

#### 5. `userPosts` — User Timeline Posts

Extract all recent posts published by a specific KOL, media outlet, or brand account.

- **Input Parameters**: `userIds` (e.g., `1111681197`)
- **Returns**: Reverse-chronological feed of posts published by that user with full engagement metrics.

#### 6. `hotSearch` — Weibo Hot Search Trends (热搜榜)

Scrape the official real-time Sina Weibo Hot Search Ranking (`微博热搜榜`).

- **Input Parameters**: Automatically captures the live leaderboard snapshot (all 50-51 trending topics).
- **Returns**: Rank (#1 to #50), topic keyword, heat/buzz score, category tag (`Hot`, `Boiling`, `New`), sentiment analysis, and search URL.

#### 7. `userFans` & `userFollowers` — Social Graph & Audience Demographics

Extract the follower list (`userFans`) or following accounts (`userFollowers`) for any user UID.

***

### 📊 Sample Output Data (JSON)

```json
{
  "operation": "searchWeibo",
  "id": "5089123456789012",
  "weiboUrl": "https://weibo.com/1642634100/Oq62x4Kyz",
  "createdAt": "Wed Oct 14 10:20:00 +0800 2026",
  "createdAtIso": "2026-10-14T10:20:00+08:00",
  "text": "刚买的新手机，拍照效果太惊艳了，质感超级好！强烈推荐给摄影爱好者[心][赞]",
  "sentiment": {
    "polarity": "positive",
    "score": 0.95,
    "hasSarcasm": false,
    "isCrisisAlert": false,
    "negativeFlags": [],
    "positiveFlags": ["推荐", "惊艳"],
    "detectedEmojis": ["[心]", "[赞]"],
    "emojiPolarity": "positive"
  },
  "ipProvince": "上海",
  "regionName": "发布于 上海",
  "repostsCount": 342,
  "commentsCount": 128,
  "attitudesCount": 1540,
  "authorScreenName": "新浪科技",
  "user": {
    "id": "1642634100",
    "screenName": "新浪科技",
    "kolTier": "Top-Tier KOL (头部博主)",
    "followersCount": 23840000,
    "verified": true,
    "verifiedReason": "新浪科技官方微博"
  },
  "topCommentsCount": 10,
  "topComments": [
    {
      "id": "5089124455667788",
      "text": "确实好用，尤其是夜景模式绝了！[给力]",
      "sentiment": {
        "polarity": "positive",
        "score": 0.85
      }
    }
  ]
}
```

***

### 💰 Pay-Per-Event Pricing

You only pay for what you extract—no monthly lock-in or idle compute charges.

| Event | Rate | Cost per 1,000 Items | Description |
|:---|:---:|:---:|:---|
| **Actor Run Start** | $0.010 | — | One-time proxy session warmup per run |
| **Search Result / Timeline Post** | $0.0035 | **$3.50** | Scraped from keyword search or user timeline |
| **Post Detail / KOL Profile** | $0.020 | **$20.00** | Comprehensive metadata for a post or KOL profile |
| **Weibo Comment** | $0.0025 | **$2.50** | Comment with replies, author details, and likes |
| **Follower / Fan** | $0.0025 | **$2.50** | Follower or following account |
| **Hot Search Trend** | $0.0020 | **$2.00** | Real-time trending topic item |

*Subscribers on Bronze, Silver, and Gold Apify plans receive automatic discounts of up to 30%!*

***

### 💻 API & Integration Examples

#### Python (via `apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")

## Real-Time Brand Sentiment Monitoring
run_input = {
    "operation": "searchWeibo",
    "keyword": "DeepSeek",
    "sortBy": "realtime",
    "onlyVerified": True,
    "includeTopComments": True,
    "maxItems": 100,
    "maxPages": 5,
    "proxyConfiguration": {"useApifyProxy": True}
}

run = client.actor("blessiticus/weibo-scraper-pro").call(run_input=run_input)

## Fetch results from dataset
dataset_items = client.dataset(run["defaultDatasetId"]).list_items().items
for item in dataset_items:
    sent = item.get("sentiment", {})
    print(f"[{item.get('authorScreenName')} | {item.get('ipProvince')}]: {sent.get('polarity')} (Crisis: {sent.get('isCrisisAlert')}) - {item.get('text')}")
```

#### LLM Pipeline (LangChain / Claude / ChatGPT)

```python
## Pass clean Weibo sentiment data directly into OpenAI / Claude for automated executive reports
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(model="gpt-4o")
prompt = f"Analyze the following consumer feedback from Sina Weibo regarding recent brand sentiment:\n{dataset_items[:20]}"
response = llm.invoke(prompt)
print(response.content)
```

***

### 🛡️ Stability & Anti-Bot Protection

- **Dual-Engine Search Architecture**: Automatically leverages Sina Weibo's public search portal (`s.weibo.com`) alongside mobile endpoints for zero-cookie reliability.
- **Built-in Apify Proxy Integration**: Seamlessly bypasses Chinese IP geoblocking and international routing filters.
- **Polite Rate Limiting & Auto Backoff**: Requests are throttled and retried with exponential backoff on HTTP 429/414/502 errors.
- **Ultra-Lightweight 256 MB Profile**: Uses pure asynchronous HTTP calls without heavy Chromium or Playwright overhead, maximizing stability and minimizing costs.

# Actor input Schema

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

Select what you want to extract from Sina Weibo:
• 🔍 Keyword Search: Searches posts & brand sentiment. Needs 'keyword' or search URL. If blank, defaults to 'DeepSeek' (last 30 days).
• 📄 Post Detail: Scrapes full post content, media, author & metrics. Needs post IDs or post URLs.
• 💬 Post Comments: Scrapes discussion threads & comment sentiment. Needs post IDs or post URLs.
• 👤 User Profile: Scrapes KOL profile, followers count, verification & bio. Needs user IDs or profile URLs.
• 📱 User Posts: Scrapes all recent posts from a specific user. Needs user IDs or profile URLs.
• 🔥 Hot Search: Live Weibo trending buzz ranking. No inputs required!
• 👥 Fans / Followers: Scrapes a user's follower network. Needs user IDs or profile URLs.

## `startUrls` (type: `array`):

Direct Weibo links to scrape. Supports Post URLs (e.g., 'https://weibo.com/1111681197/Oq62x4Kyz' or 'https://m.weibo.cn/detail/5072046487114251'), Profile URLs (e.g., 'https://weibo.com/u/1111681197'), or Search URLs (e.g., 'https://s.weibo.com/weibo?q=DeepSeek'). Any pasted URL is automatically parsed and routed to the correct operation!

## `keyword` (type: `string`):

Keyword, brand name, hashtag, or topic to search on Weibo (e.g. 'DeepSeek', 'Xiaomi SU7', 'Black Myth Wukong'). Used when operation is 'searchWeibo'. If left blank, automatically defaults to 'DeepSeek'.

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

Sort mode for keyword searches. Use 'Realtime' to track breaking crises and recent consumer complaints.

## `startDate` (type: `string`):

Optional start date in 'YYYY-MM-DD' format (e.g. '2026-09-14'). If left blank, automatically defaults to 30 days ago (last month) to capture recent buzz.

## `endDate` (type: `string`):

Optional end date in 'YYYY-MM-DD' format (e.g. '2026-10-15'). If left blank, automatically defaults to today.

## `onlyVerified` (type: `boolean`):

When enabled, filters out ordinary users and spam bots, only retaining verified influencers, celebrities, and enterprise accounts.

## `minFollowers` (type: `integer`):

Eliminate low-authority accounts by setting a minimum follower requirement (e.g. 1,000) for post authors.

## `includeTopComments` (type: `boolean`):

When enabled, automatically extracts top comments for every scraped post to capture audience reaction and sentiment.

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

Maximum number of top comments to scrape per post when Deep Sentiment combo mode is enabled.

## `weiboIds` (type: `array`):

List of Weibo post IDs (numeric ID or alphanumeric BID from URL, e.g., '5072046487114251' or 'Oq62x4Kyz') or direct post URLs. Used for 'weiboDetail' and 'weiboComments'. If left blank, defaults to a verified sample post.

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

List of Weibo user IDs (UID, e.g., '1111681197') or profile URLs. Used for 'userProfile', 'userPosts', 'userFans', and 'userFollowers'. If left blank, defaults to People's Daily verified account.

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

Maximum number of items to return. Leave default (50) for fast tests or set higher (up to 500k) for large datasets.

## `maxPages` (type: `integer`):

Maximum number of pages to paginate through for search results, user posts, or comments.

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

When enabled, automatically calls Weibo's extend API to unclip long posts that are otherwise cut off with '...全文'.

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

Use Apify Proxy to bypass geographic IP restrictions and rate-limiting from Sina Weibo.

## `cookie` (type: `string`):

Optional personal or developer Weibo cookie / SUB token for maximum rate limits. If left blank, Weibo Scraper Pro automatically requests a guest visitor session from the Sina Visitor System.

## Actor input object example

```json
{
  "operation": "searchWeibo",
  "keyword": "DeepSeek",
  "sortBy": "hot",
  "onlyVerified": false,
  "minFollowers": 0,
  "includeTopComments": false,
  "maxCommentsPerPost": 10,
  "weiboIds": [
    "5072046487114251"
  ],
  "userIds": [
    "1111681197"
  ],
  "maxItems": 50,
  "maxPages": 5,
  "fetchFullText": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDatasetUrl` (type: `string`):

URL to the dataset containing the scraped Weibo posts, comments, profiles, or trends

# 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 = {
    "weiboIds": [
        "5072046487114251"
    ],
    "userIds": [
        "1111681197"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("blessiticus/weibo-scraper-pro").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 = {
    "weiboIds": ["5072046487114251"],
    "userIds": ["1111681197"],
}

# Run the Actor and wait for it to finish
run = client.actor("blessiticus/weibo-scraper-pro").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 '{
  "weiboIds": [
    "5072046487114251"
  ],
  "userIds": [
    "1111681197"
  ]
}' |
apify call blessiticus/weibo-scraper-pro --silent --output-dataset

```

## MCP server setup

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

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/2fRhT66528UnnkwEV/builds/vjrH5wZxGELJGlRy6/openapi.json
