Bilibili Scraper (B站) - Videos, Comments & Danmaku
Pricing
Pay per event
Bilibili Scraper (B站) - Videos, Comments & Danmaku
Returns Bilibili videos with views, likes, coins, favorites, shares, danmaku and comment counts, tags and author in every row. Search (up to 5,000 per term), trending, rankings, creators, comments and replies, danmaku profiles with sentiment. $2 per 1,000 results. No login.
Pricing
Pay per event
Rating
0.0
(0)
Developer
Nicolas Alexandre
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 hours ago
Last modified
Categories
Share
Bilibili Scraper
Scrape Bilibili (哔哩哔哩), China's biggest video platform: search videos by keyword, get any video by URL, trending videos, the top 100 ranking by category, creators with their uploads, comments and danmaku. $2 per 1,000 videos. Also known as B站, 哔哩哔哩, Bilibili crawler, Bilibili API, Bilibili data extractor.
Why this Actor
| This Actor | Most popular Bilibili scraper on the Store | |
|---|---|---|
| Videos | $2 per 1,000 | $20 per 1,000 |
| Comments and replies | $2 per 1,000 | $20 per 1,000 |
| Danmaku profile | $5 per 1,000 | $50 per 1,000 |
100,000 videos a month cost $200 here instead of $2,000.
- Views, likes, coins, favorites, shares, danmaku and comment counts, tags, duration, author, publish date.
- Creator stats: followers, videos, total likes, level, verification.
- Comments and replies, and a danmaku profile per video (count, unique senders, per-minute rate, peak minute, sample across the timeline), with optional sentiment.
- Deep search: up to 5,000 videos per term with date windows, date filters, extra terms and automatic Chinese brand names (apple → 苹果).
- Fast and light: 60 search results in about 2 seconds, trending top 100 in about 1 second. No login, no browser.
- Pay per result: you pay only for videos and creators returned. Missing or blocked items are free.
Use cases
- Market and trend research in China: what is trending, in which category, with how much engagement.
- Brand and campaign monitoring: search your brand or product and track views, likes and coins over time.
- Creator discovery: find creators by topic and compare followers, output and engagement.
- Data for AI agents and analytics: stable JSON fields, easy to use from the API, Make, Zapier or n8n.
Modes
| Mode | Input | What you get |
|---|---|---|
| Search by keyword | searchTerms, sort, duration, publishedAfter, publishedBefore | Up to 5,000 videos per term |
| Videos by URL | videoUrls (links or BV ids) | Full stats and tags for each video |
| Comments | videoUrls | Only the comments and replies of those videos |
| Trending | maxItems | Bilibili's current popular list |
| Ranking | rankingCategory | Top 100 overall or by category (tech, gaming, music...) |
| Creators | creatorUrls | One creator row plus their latest videos |
Options for any mode that returns videos:
- Full stats and tags (
includeDetails, on by default): coins, shares, likes and tags in every search and creator row, at the same price. Trending and ranking rows have them already. Turn it off for faster runs. - Comments (
includeComments,maxComments,commentSort,includeReplies): comment and reply rows. - Danmaku profile (
includeDanmaku,danmakuSampleSize): one summary row per video. - Sentiment (
sentiment): positive, negative or neutral with a score from -1 to +1 on comments and danmaku.
{"mode": "search","searchTerms": ["原神", "rust programming"],"maxItems": 200,"sort": "views","includeDetails": true}
Example output: video
{"type": "video","bvid": "BV1hp4y1k7SV","aid": 970073238,"url": "https://www.bilibili.com/video/BV1hp4y1k7SV","title": "Rust编程语言入门教程(Rust语言/Rust权威指南配套)【已完结】","description": "配套教材:《The Rust Programming Language》v1\n2025新版视频(更新ing):https://b23.tv/bCo2OtB","cover": "https://i0.hdslb.com/bfs/archive/3bcd51d8e8035931e282079a7a256ec7e1e8e80d.jpg","durationSeconds": 43777,"publishedAt": "2020-10-21T12:59:36Z","category": "计算机技术","categoryId": 2103,"tags": ["教学视频","程序员","视频教程","编程","#编程vlog#"],"authorMid": "361469957","authorName": "软件工艺师","stats": {"views": 1716307,"likes": 26181,"coins": 27729,"favorites": 59838,"shares": 5773,"danmaku": 25028,"comments": 2582},"source": "search","searchTerm": "rust programming","position": 1,"scrapedAt": "2026-10-13T10:36:18Z"}
Example output: creator
{"type": "creator","mid": "546195","url": "https://space.bilibili.com/546195","name": "老番茄","bio": "新浪微博:_老番茄_","followers": 20841228,"following": 6,"videoCount": 681,"totalLikes": 196033978,"level": 6,"verified": true,"verifiedTitle": "2025百大UP主、2025年度商业影响力奖UP主、2022年度联合创作奖UP主","scrapedAt": "2026-10-13T10:40:19Z"}
Example output: comment
{"type": "comment","rpid": "320569850704","videoBvid": "BV1fSWc6cE7y","text": "你怎么知道我梭哈大成功了[doge]","likes": 20,"replyCount": 7,"publishedAt": "2026-10-13T07:19:17Z","authorMid": "14712629","authorName": "葉子没吃药","authorLevel": 6,"sentiment": {"polarity": "neutral","score": 0.0},"scrapedAt": "2026-10-13T12:09:08Z"}
Example output: danmaku profile
{"type": "danmaku","videoBvid": "BV1fSWc6cE7y","cid": 42696312836,"danmakuFetched": 31,"uniqueSenders": 26,"perMinute": 7.85,"peakMinute": 1,"peakMinuteCount": 14,"firstAtSeconds": 9.4,"lastAtSeconds": 203.0,"sample": [{"atSeconds": 9.4,"text": "我昨天梭哈第一组右侧赢了"},{"atSeconds": 17.8,"text": "可惜了,要是按照刚开始的赔率,龙龙能有200的,有智慧的人还是太多了"},{"atSeconds": 38.4,"text": "四个亡语,我能说什么"}],"sentiment": {"polarity": "neutral","score": 0.03},"scrapedAt": "2026-10-13T12:09:13Z"}
Output fields
| Field | Description |
|---|---|
type | video or creator. |
bvid, aid, url | Video ids and link. |
title, description, cover | Video text and cover image. |
durationSeconds, publishedAt | Length and publish time (UTC). |
category, categoryId, tags | Category name (when Bilibili sends it), numeric id, and tags. |
authorMid, authorName | Creator id and name. |
stats | views, likes, coins, favorites, shares, danmaku, comments. |
source, searchTerm, position | Where the video came from and its rank. |
mid, name, bio, followers, following, videoCount, totalLikes, level, verified, verifiedTitle | Creator rows. |
rpid, parentRpid, videoBvid, text, likes, replyCount, publishedAt, authorMid, authorName, authorLevel | Comment rows (parentRpid on replies). |
danmakuFetched, uniqueSenders, perMinute, peakMinute, peakMinuteCount, firstAtSeconds, lastAtSeconds, sample | Danmaku profile rows. |
sentiment | polarity and score, when sentiment is on. |
error | Only on failed items: NOT_FOUND, BLOCKED or REQUEST_FAILED. Not charged. |
Pricing
| Event | Price |
|---|---|
video | $2 per 1,000 videos |
creator | $2 per 1,000 creators |
comment | $2 per 1,000 comments or replies |
danmaku-profile | $5 per 1,000 videos profiled |
Proxy and compute are included. Set a maximum total charge on the run to cap your spend; the Actor stops cleanly when it is reached.
FAQ
Do I need a proxy or a Bilibili account? No. The Actor uses Bilibili's public web data without login. If Bilibili rate-limits a request, it switches to Apify Proxy automatically, at no extra cost to you.
How many comments can I get? Without login Bilibili shows the top 3 comments of each video; the Actor returns them with all their replies. Deeper comment pages need a logged-in session, which this Actor does not use.
Which personal data is included? Only what Bilibili shows publicly next to content: creator channel facts and, on comments, the commenter's public name, id and level. Sex, birthday and location are left out.
Why is the category empty on some videos? Bilibili often sends only the category id in video details;
categoryId is always filled when available.
How many results can I get per search? Bilibili shows up to about 1,000 results per query. Use several related terms, or sort by newest, to go further.
Issues
Open an issue in the Issues tab; I reply within 24 hours. If the Actor helped you, a review on the Store helps a lot.