🇨🇳 Bilibili Comments Scraper · B站评论 API (WBI-signed)
Pricing
from $15.00 / 1,000 comments
🇨🇳 Bilibili Comments Scraper · B站评论 API (WBI-signed)
Scrape comments from any Bilibili video (哔哩哔哩) via the current WBI-signed reply API — the scheme that broke older B站 scrapers. Pass BVIDs/URLs; get author, user level, likes, reply count & ISO timestamp, with optional anonymization. China social-listening, sentiment & creator research. No login.
Pricing
from $15.00 / 1,000 comments
Rating
0.0
(0)
Developer
NexGenData
Maintained by CommunityActor stats
1
Bookmarked
25
Total users
2
Monthly active users
15 hours ago
Last modified
Share
Scrape comments from any Bilibili video using the platform's current WBI-signed reply API — the signature scheme that broke most older B站 comment scrapers when Bilibili retired its legacy endpoint. Pass BVIDs or video URLs, set how many comments per video, and get clean records with author, user level, likes, reply count and ISO timestamps, with optional username anonymization for shareable datasets. It's purpose-built for China social-listening, video-engagement analysis and sentiment work on Gen-Z China's home platform.
No login, no cookies — the WBI flow works for publicly visible comments without authentication.
📊 Sample Output
Why the WBI signature matters
Bilibili (哔哩哔哩) deprecated its legacy /x/v2/reply comment endpoint, and most older Bilibili comment scrapers stopped returning data overnight. This actor uses the current WBI-signed /x/v2/reply/wbi/main API — it computes the rotating signature Bilibili now requires, so comments keep flowing. That signing logic is the moat: it's the reason this works when DIY scrapers return nothing.
What you get per comment
Each dataset record is a flat JSON object:
- Identity —
bvid,aid,rpid(comment id) - Content —
text(full UTF-8 Chinese / English / emoji) - Author —
author(username, hashable),user_mid,user_level,user_sex - Engagement —
likes,reply_count,is_top(pinned) - Time —
timestamp(ISO 8601, UTC) and rawctime
Note: datacenter IPs often return only the ~3 pinned comments. Full pagination needs a residential proxy (the schema defaults to RESIDENTIAL). Set
anonymize_usersto replace usernames with hash-based identifiers for shareable research datasets.
Input
| Input | Type | Description |
|---|---|---|
videos | array | BVIDs or full video URLs (e.g. BV1xx411c7mu or a bilibili.com/video/... URL). |
video_urls | array | Alias for videos (merged if both given). |
video | string | A single BVID or URL when you only need one. |
max_comments_per_video | integer | Cap per video (1–2000). The actor paginates the WBI API until the cap or no more comments. |
anonymize_users | boolean | Replace usernames with hash-based identifiers (privacy mode). |
proxyConfiguration | proxy | Apify proxy. RESIDENTIAL recommended (datacenter may return only pinned comments). |
Sample input
{"videos": ["BV1xx411c7mu", "https://www.bilibili.com/video/BV1xx411c7mu/"],"max_comments_per_video": 100,"anonymize_users": false,"proxyConfiguration": {"useApifyProxy": true,"apifyProxyGroups": ["RESIDENTIAL"]}}
Sample output (JSON)
{"bvid": "BV1xx411c7mu","author": "用户名","text": "这个视频太棒了!","user_level": 5,"likes": 1280,"reply_count": 14,"is_top": false,"timestamp": "2026-06-20T11:42:00Z"}
Use cases
- Brand & marketing — read audience reaction to your or a competitor's Bilibili videos and campaigns.
- Consumer research — Gen-Z China sentiment and opinion mining from comment threads.
- Social listening — track comment volume and sentiment across a creator's uploads.
- AI / NLP training — build a labeled Chinese-comment corpus, with optional anonymization.
Pricing — pay per comment
- Actor start: $0.005
- Per comment: $0.02
A 100-comment pull on one video = $2.005. No monthly minimum, no seats — pay only for comments that land in your dataset.
Quick start (Python)
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("nexgendata/bilibili-video-comments").call(run_input={"videos": ["BV1xx411c7mu"],"max_comments_per_video": 100,})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["author"], item["text"])
❓ FAQ
Does it need login or cookies? No — the WBI flow works for publicly visible comments without auth.
Why do other Bilibili comment scrapers return nothing now? Bilibili deprecated the legacy /x/v2/reply; this actor uses the current WBI-signed /x/v2/reply/wbi/main.
How many comments per video? Up to 2,000 via pagination. A residential proxy is recommended — datacenter IPs may return only pinned comments.
Can I anonymize usernames? Yes — anonymize_users replaces usernames with hash-based identifiers.
Can I pass a URL instead of a BVID? Yes — full video URLs and bare BVIDs both work.
🔗 Related actors — China social
- Bilibili Video Search — search and rank Bilibili videos by view, like and channel
- Weibo Hot Search Tracker — the live Weibo 热搜 leaderboard as structured data
- RedNote (Xiaohongshu) Scraper — China's lifestyle/discovery platform (小红书)
- Douyin Trending Tracker — the China short-video hot board
- Chinese Social Signals MCP — China social signals exposed as MCP tools for LLM agents
Get free Apify credits & save 30% on platform fees: https://apify.com/nexgendata
