DEV Community

Sami
Sami

Posted on

How to Scrape Weibo Without Login in 2026: The Complete Guide

Weibo (微博) is China's dominant microblogging platform — think Twitter meets Instagram, with 580M+ monthly active users. It is where Chinese public opinion forms, brands communicate, celebrities post, and news breaks. Government officials, industry leaders, and major brands all maintain active Weibo accounts.

For anyone doing China market research, PR monitoring, influencer analysis, or geopolitical tracking, Weibo data is essential. The problem is that there is no official public Weibo API available for international developers. Weibo's developer platform requires a Chinese business license, imposes strict rate limits, and returns limited data.

This guide walks through how to extract Weibo posts, trending topics, comments, and creator profiles using the zhorex/weibo-scraper Actor on Apify — no API key, no browser, no VPN required.


TL;DR

  • What: Extract posts, trending topics, comments, and user profiles from Weibo
  • How: zhorex/weibo-scraper on Apify — pure HTTP, no browser needed
  • Cost: $5 per 1,000 items scraped
  • Auth: Trending topics and post comments work without any login. Search and user posts require a Weibo SUB cookie
  • No VPN needed: All endpoints are globally accessible

Why Weibo Data Matters

Who Why
PR & Communications Track brand mentions in real-time on China's public square
Market Research Monitor what is trending among Chinese consumers
Influencer Marketing Find and evaluate KOLs by followers, engagement, verification
Competitive Intelligence Track Chinese competitor announcements and campaigns
Geopolitical Analysis Monitor public discourse on policy and international topics
Journalism Access Chinese public opinion data for reporting
Academic Research Study Chinese social media behavior and trends

Four Scraping Modes

The actor supports four distinct modes, each targeting a different type of Weibo data:

1. Hot Search / Trending Topics (no login needed)

Get the real-time pulse of the Chinese internet. Returns trending topics with heat scores and categories.

{
  "mode": "hot_search",
  "maxResults": 50
}
Enter fullscreen mode Exit fullscreen mode

Output:

{
  "rank": 1,
  "title": "人工智能最新突破",
  "category": "科技",
  "hotValue": 2847562,
  "labelName": "热",
  "isHot": true,
  "url": "https://s.weibo.com/weibo?q=...",
  "scrapedAt": "2026-04-10T12:00:00Z"
}
Enter fullscreen mode Exit fullscreen mode

2. Post Comments (no login needed)

Extract comments from specific posts. Provide post IDs (mid) or detail URLs.

{
  "mode": "post_comments",
  "postIds": ["5285773987283226"],
  "maxComments": 50
}
Enter fullscreen mode Exit fullscreen mode

3. Search Posts (login optional)

Search by keyword. Without cookies, returns hot timeline posts as a fallback. With cookies, searches the full index.

{
  "mode": "search",
  "searchQuery": "人工智能",
  "maxResults": 50,
  "cookieString": "SUB=your_sub_cookie_value"
}
Enter fullscreen mode Exit fullscreen mode

4. User Posts (login needed for posts)

Get profile info (always works without login) plus posts (requires cookies). Provide numeric user IDs or profile URLs.

{
  "mode": "user_posts",
  "userIds": ["1642634100"],
  "maxResults": 50,
  "cookieString": "SUB=your_sub_cookie_value"
}
Enter fullscreen mode Exit fullscreen mode

How to Get Cookies

For search and user posts modes, you need a Weibo SUB cookie:

  1. Open weibo.com in your browser and log in
  2. Open DevTools (F12) → Application → Cookies → weibo.com
  3. Copy the value of the SUB cookie
  4. Paste it in the cookieString field as: SUB=your_value_here

The cookie typically lasts several days before expiring.


Python and JavaScript Examples

Python:

from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("zhorex/weibo-scraper").call(run_input={
    "mode": "hot_search",
    "maxResults": 50
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
Enter fullscreen mode Exit fullscreen mode

JavaScript:

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('zhorex/weibo-scraper').call({
    mode: 'hot_search',
    maxResults: 50,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => console.log(item));
Enter fullscreen mode Exit fullscreen mode

Technical Details

  • No browser needed — pure HTTP requests using httpx, runs in 256MB RAM
  • No VPN needed — Weibo endpoints are globally accessible
  • Automatic session — visitor cookies obtained automatically via the Sina Visitor System
  • Rate-limit handling — exponential backoff on 418/429 errors
  • Chinese text preserved — all content returned as-is in original Simplified Chinese

Pricing

Volume Cost
1,000 items $5
10,000 items $50
100,000 items $500

Each scraped item (post, comment, trending topic, or profile) counts as one result. You can start with Apify's free plan, which includes $5 of monthly credits — enough for 1,000 data points.


Part of the Chinese Digital Intelligence Suite

Weibo covers microblogging and public opinion, but for comprehensive China market intelligence you need the full picture:

Platform Users What it covers Actor
Weibo 580M+ MAU Microblogging, trending, celebrity content zhorex/weibo-scraper
RedNote (Xiaohongshu) 200M+ MAU Social commerce, lifestyle, product reviews zhorex/rednote-scraper
Bilibili 300M+ MAU Video content, danmaku, creator analytics zhorex/bilibili-scraper

All three actors: no browser, no proxy, no API keys. Built by Zhorex — the only developer on Apify specializing in Chinese platform intelligence.


FAQ

Is there a Weibo API?
There is no official public Weibo API available for international developers. Weibo's developer platform requires a Chinese business license and imposes strict rate limits. This scraper is the best alternative.

Do I need a VPN?
No. The Weibo endpoints used by this actor are globally accessible without a VPN or proxy.

Is the content in Chinese?
Yes. Weibo is a Chinese-language platform — all content is returned in the original Simplified Chinese. If you need English translations, pipe the output through a translation API (Google Translate, DeepL, or Claude).

Is scraping Weibo legal?
This scraper only accesses publicly available data through Weibo's public web endpoints. It does not bypass authentication or access private/locked accounts. Always review your local laws and Weibo's terms of service.


Get Started

The Actor page, full input schema, and a free trial run are at:

https://apify.com/zhorex/weibo-scraper

Start with trending topics (no login needed) to see the data quality, then expand to search and user profiles as needed.

Top comments (0)