Bilibili Scraper
Pricing
from $1.20 / 1,000 videos
Bilibili Scraper
[💰 $1.40 / 1K videos] Scrape Bilibili (B站) videos, comments and danmaku. Just add a search, links or creators and get every video count, comments with replies and danmaku, past 1,000 videos per search, 1,000 videos in about 15 seconds. Monitor new videos. Export JSON, CSV or Excel.
Pricing
from $1.20 / 1,000 videos
Rating
0.0
(0)
Developer
Sleep Mode Systems
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
8 days ago
Last modified
Categories
Features
Share
[💰 $1.40 per 1,000 videos] Comments $1.20 per 1,000, danmaku included, less on higher Apify tiers. 1,000 videos for one search in about 15 seconds; 30 videos with 20 comments each and their danmaku in about 22 seconds. No login, no cookies, no proxy to set.
Bilibili Scraper extracts videos, comments, danmaku (弹幕) and creators from Bilibili (哔哩哔哩, B站, https://www.bilibili.com) without a login. Search words, video links, creators (by name, UID or link) and trending lists go into one run, and every video comes with all its counts: views, likes, coins, favorites, shares, danmaku and comments. Comments with their reply threads and the danmaku track are one switch away, and the output opens on four tabs: Videos, Comments, Danmaku and Creators.
What does the Bilibili Scraper extract?
| Data | Fields | Filled on 2026-11-14 |
|---|---|---|
| Video | bvid, aid, url, shortUrl, title, description, coverUrl, publishedAt, durationSec, parts, width, height | 100%, description 73 to 87% (many videos have none) |
| Counts | views, likes, coins, favorites, shares, danmakuCount, commentCount, engagementRate | 100% on every source; engagement rate on every video with at least one view |
| Category and tags | category, categoryParent, tags, honors | category and tags 100% on every source; honors with "Honors" |
| Creator | creatorId, creatorName, creatorUrl, creatorAvatarUrl, creatorFollowers, creatorVerified | 100%, followers included; creatorVerified is no longer shown to visitors by Bilibili |
| Comments | comments: text, likes, replies, posted, author name, UID, level, avatar, premium member, verified, pictures, liked or answered by the creator, place in the thread | 100% of the fields, 1,886 comments for 100 Popular videos (1,229 of them replies) |
| Danmaku | danmaku: part, second, text, mode, color, sent, sender hash; danmakuStats: count, unique senders, per minute, peak minute | up to 951 per video, 2,924 for 30 videos; about 25% more than the player's own track |
| Creator profile | creatorProfile: name, avatar, followers, following | every creator you ask for, once per run |
| Run | source, position, copyrightCode, isOriginal, isFollowUp, scrapedAt | 100% |
Fill rates from runs on Apify on 2026-11-14: a 1,000-video search, 100 Popular videos with 20 comments each, and a 30-video search with comments and danmaku.
Who uses the Bilibili Scraper?
- Brand and agency teams follow what Chinese viewers say about a brand: searches in English also search the brand's Chinese name (Nike also searches 耐克), with comments and danmaku as the audience's own words.
- Influencer (KOL) agencies vet Bilibili creators (UP主): followers, likes, video count and every video with its coins, favorites and engagement rate.
- Market and equity researchers track the reception of games, anime, cars and consumer brands among Chinese Gen Z, day after day.
- Gaming and entertainment studios read the danmaku of trailers and launches second by second: the peak minute shows what made viewers react.
- AI and NLP teams build Chinese corpora from comments and danmaku, with pseudonymous authors when needed.
- Developers who need a Bilibili API without building one call this actor from Python, JavaScript or REST.
How much does the Bilibili Scraper cost?
Pay per event: you pay for the videos written to the dataset and for comments. Danmaku, creator profiles and full counts cost nothing extra, and platform usage is included. Prices fall with the discount tier of your Apify plan; Apify's paid plans come with a Bronze, Silver or Gold tier:
| Your Apify discount tier | Per 1,000 videos | Per 1,000 comments |
|---|---|---|
| Free | $1.40 | $1.20 |
| Bronze | $1.30 | $1.10 |
| Silver | $1.25 | $1.05 |
| Gold and above | $1.20 | $1.00 |
The actor start costs $0.00005 per run, on every tier.
Bilibili Scraper cost examples
| Scenario | What you get | Free tier | Gold tier |
|---|---|---|---|
Try it: one search, maxItems: 30 | 30 videos | $0.04 | $0.04 |
| One brand, 1,000 videos | 1,000 videos | $1.40 | $1.20 |
| Top 100 of a ranking with 20 comments each and danmaku | 100 videos, about 1,900 comments | about $2.42 | about $2.02 |
| One creator's last 200 videos | 200 videos and the profile | $0.28 | $0.24 |
| A brand every day for a month, only new videos | about 1,500 videos | about $2.10 | about $1.80 |
Comment counts per video vary: Bilibili shows visitors only a handful of top-level comments, and the replies under them make up the rest. Set maxItems to cap any run. Set the run's maximum charge in Apify to cap spend; the actor stops cleanly when it is reached and reports what it got.
How do you use the Bilibili Scraper with AI agents (Claude, ChatGPT, Cursor)?
The Bilibili Scraper is a ready tool for AI agents through the Apify MCP server. Add this server to Claude (desktop, web or Code), ChatGPT, Cursor or any MCP client, and your agent can read Bilibili videos, comments and danmaku when you ask:
https://mcp.apify.com/?tools=sleepmodesystems/bilibili-scraper
For a client that takes a JSON config:
{"mcpServers": {"bilibili": {"command": "npx","args": ["-y", "mcp-remote", "https://mcp.apify.com/?tools=sleepmodesystems/bilibili-scraper"]}}}
Then ask, for example:
- "Search Bilibili for Pop Mart videos from the last 30 days with 20 comments each, and sum up what Chinese viewers say."
- "Take the top 30 of Bilibili's gaming ranking with their danmaku, and tell me the minute viewers reacted most to in each."
- "Vet the Bilibili creator 老番茄: followers, likes, and the last 100 videos with views, coins and engagement rate."
The video shows how to connect Apify to Claude with MCP:
Why agents should choose the Bilibili Scraper
- Every source in one run, each video once. Searches, links, creators by name and trending lists go into one call, every video with views, likes, coins, favorites, shares, danmaku and comment counts; the summary lists each source with what it found and kept.
- Filters in the input, not after. Sort, publication dates, video length, comments per video and danmaku are input fields, so the agent asks for exactly what it needs and pays only for it.
- Fast enough for a chat. A 30-video search in 4.4 seconds; 1,000 videos for one search in 15 seconds.
- Several spellings, one search.
Nike | 耐克searches both and keeps each video once. - Errors an agent can act on. A wrong link fails within seconds and says what to give instead, with an example; deleted, hidden and region-locked videos are listed with the reason while the others still come.
- Clear price. $1.40 per 1,000 videos and $1.20 per 1,000 comments on the FREE tier, $1.20 and $1.00 on GOLD, danmaku included; no login, no cookies.
Quick reference for AI agents
- Actor:
sleepmodesystems/bilibili-scraper - Does: returns Bilibili videos of searches, links, creators and trending lists, one dataset row per video. Comments, danmaku and the creator's profile come on the video's row, and the dataset views
comments,danmakuandcreatorslist them one per row. - Smallest input:
{"searchQueries": ["minecraft"]}gives up to 1,000 videos for that search, best match first, with every count and no comments. - Comments:
"commentsPerVideo": 20; danmaku:"danmaku": true. - Creators and trending:
"creators": ["老番茄"];"trending": ["popular"]or a ranking such as"rank-game". - Monitoring:
"onlyNewVideos": trueon a schedule returns only videos no earlier run of the same monitor delivered. - Each row has:
bvid,url,title,publishedAt,durationSec,category,views,likes,coins,favorites,shares,danmakuCount,commentCount,engagementRate,creatorId,creatorName,source,position,comments. - Fields that can be
null:descriptionwhen the video has none;creatorVerified(Bilibili no longer shows it to visitors);categoryParenton searches;isOriginalfor Bilibili's copyright code 3;rankingScoreoutside ranking lists;danmakuanddanmakuStatswithout "Danmaku". Lists such astagsandcommentsare empty, nevernull. - The run summary is the
SUMMARYrecord in the run's key-value store:plan,videos,comments,creators,duplicates,unavailable(with the reason), each source withfound,pushed,duplicatesanderror,blockedanderrors. - Zero rows from a search, a link, a creator, dates or a duration filter means no video matches, and the run still succeeds. Trending with zero rows fails, as a broken run should. A monitor run with nothing new ends with "No new videos since the last run."
How do the inputs of the Bilibili Scraper combine?
Every source is read and the videos merged, each video once. A Bilibili link pasted anywhere means the same as typing it in its own field. The filters (sort, dates, length) apply to every source; "Maximum videos per source" to each search, creator, list or link; "Maximum videos" to the whole run.
| Field | Type | Default | Meaning |
|---|---|---|---|
searchQueries | list | none | Search words in Chinese or English: 我的世界, minecraft. Other spellings after a bar search as one: Nike | 耐克. |
startUrls | list | none | Any Bilibili link (video, b23.tv short link, creator space, search page, Popular, a ranking) or a BV or av id. |
creators | list | none | Creators by name (老番茄), UID (546195) or link. |
trending | list | none | Popular now, the weekly picks, the all-time must-watch list, the top 100 of 17 categories. |
sortBy | choice | best match | Best match, most viewed, newest, most danmaku, most favorited, most commented. |
publishedAfter, publishedBefore | date | none | YYYY-MM-DD, or relative: 7 days, 1 month. |
duration | choice | any | Under 10, 10 to 30, 30 to 60, over 60 minutes. |
videoDetails | yes/no | no | Adds Bilibili's honors (weekly picks, rankings); tags and creator followers always come. |
commentsPerVideo | number | 0 | Comments per video with their replies, up to 2,000; 20 is a good start. |
commentsSort | choice | most liked | Most liked first, or newest first. Pinned comments come first. |
commentReplies | yes/no | yes | The replies under each comment. |
danmaku | yes/no | no | The video's danmaku track. |
danmakuAllParts | yes/no | no | Every part of multi-part videos. |
maxItems | number | 100,000 | Videos in the whole run. |
maxVideosPerSource | number | 1,000 | Videos per search, creator, list or link. Over 1,000, a search keeps going past Bilibili's own result pages. |
onlyNewVideos, monitorName | yes/no, text | no | Only videos no earlier run of the same monitor delivered. |
authorPrivacy, privacySalt | choice, secret | full | Pseudonymous: commenters as a stable key, @mentions masked. |
runLabel | text | none | Written as label on every video. |
minItems | number | empty: 1 for trending, 0 otherwise | Fail the run below this many videos. |
How do you search Bilibili videos with the Bilibili Scraper?
Type words as a viewer would, in Chinese or English. Bilibili's own search stops at 1,000 results; ask for more and the actor keeps going past them, in Bilibili's other orders and then by publication date.
{"searchQueries": ["原神", "Genshin Impact"],"sortBy": "views","publishedAfter": "30 days","maxVideosPerSource": 500}
How do you scrape Bilibili comments with the Bilibili Scraper?
Set "Comments per video". Bilibili shows a visitor only a handful of top-level comments per video, the same for every scraper without a login; the actor collects them from every order Bilibili offers and adds the reply threads under them, which are complete. A popular video gives hundreds. Comments open on the output's Comments tab, one per row.
{"startUrls": ["https://www.bilibili.com/video/BV16io9YTEqH"],"commentsPerVideo": 200,"commentsSort": "newest"}
How do you download Bilibili danmaku with the Bilibili Scraper?
Turn on "Danmaku". Each video gets its danmaku track (every bullet comment with its second in the video, text, color, mode and send time) and a profile: count, unique senders, danmaku per minute and the peak minute. The Danmaku tab lists every bullet comment on its own row, with its video.
{"trending": ["rank-game"],"maxVideosPerSource": 30,"danmaku": true}
How do you get a Bilibili creator's videos and profile with the Bilibili Scraper?
Give creators by name, UID or link. Each creator's profile (name, avatar, followers, following) opens on the Creators tab, and their videos follow, newest first unless you pick another sort.
{"creators": ["老番茄", "https://space.bilibili.com/546195"],"maxVideosPerSource": 200}
How do you monitor Bilibili with the Bilibili Scraper?
Turn on "Only new videos" and schedule the same input. Each run delivers only videos no earlier run of that monitor delivered, and charges only for them.
{"searchQueries": ["Pop Mart"],"sortBy": "newest","commentsPerVideo": 20,"onlyNewVideos": true,"monitorName": "pop-mart"}
Which fields does the Bilibili Scraper output?
Source: Bilibili = the site's value unchanged. Derived = computed by this actor. Missing values are null, never an empty string; lists are empty, never missing.
| Field | Source | Meaning |
|---|---|---|
bvid, aid | Bilibili | The video's BV id and numeric av id. |
url, shortUrl | Derived | The video page and its b23.tv short link. |
title, description, coverUrl | Bilibili | As Bilibili shows them. |
publishedAt | Bilibili | Publication time, ISO 8601 UTC. |
durationSec, parts, width, height, cid | Bilibili | Length, number of parts, picture size, first part's id. |
category, categoryParent | Bilibili | The category (分区) and its parent, as names. |
tags, honors | Bilibili | The video's tags; honors such as weekly picks and rankings. |
views, likes, coins, favorites, shares, danmakuCount, commentCount | Bilibili | 播放, 点赞, 投币, 收藏, 分享, 弹幕, 评论. |
engagementRate | Derived | (likes + coins + favorites + shares + comments) / views. |
isOriginal, copyrightCode | Bilibili | 1 original (自制), 2 repost (转载); isOriginal stays empty for Bilibili's code 3. |
rankingScore | Bilibili | Score in a ranking list. |
creatorId, creatorName, creatorUrl, creatorAvatarUrl, creatorFollowers, creatorVerified | Bilibili | The video's creator. |
comments | Bilibili | Comments with author, level, likes, replies and thread (see the example). |
danmaku, danmakuStats, danmakuParts | Bilibili, derived | The danmaku track, its profile, and each part read. |
creatorProfile | Bilibili | On each creator's first video in the run: the creator's profile. |
source, position | Derived | The search, creator, list or link that found the video, and its place there. |
label | Derived | With "Run label". |
scrapedAt | Derived | When the run read the video. |
Bilibili Scraper output example
One video from a search with comments and danmaku, shortened to one comment and one danmaku:
{"type": "video","id": "BV1Nxxr6oES2","bvid": "BV1Nxxr6oES2","aid": 117533474559602,"url": "https://www.bilibili.com/video/BV1Nxxr6oES2","title": "耗资上万!我重制了网页版MC!【B站AI创造公开赛】","description": "全程使用Claude Opus 5.5开发~\n三连+关注可以获得披风+联机权限!\n游玩链接:https://www.bilibili.com/toy/OpusMC\n\n往期开发过程:\nBV1HkJ66vEk9\nBV126Hw6uEgW","coverUrl": "https://i2.hdslb.com/bfs/archive/46832f403b7035c22295ccf55676b882f7c281e0.jpg","publishedAt": "2026-10-31T03:55:11.000Z","durationSec": 168,"category": "单机游戏","categoryParent": null,"tags": ["沙盒游戏","服务器","B站AI创造公开赛","豆包玩我的世界","网页版MC","Minecraft","AI","我的世界","游戏实况"],"parts": 1,"isOriginal": null,"copyrightCode": 3,"views": 1719480,"likes": 148114,"coins": 147473,"favorites": 136606,"shares": 11177,"danmakuCount": 1551,"commentCount": 11787,"honors": [],"rankingScore": null,"creatorId": "1987439458","creatorName": "土豆味小哲","creatorUrl": "https://space.bilibili.com/1987439458","creatorFollowers": 320406,"creatorVerified": null,"creatorAvatarUrl": "https://i1.hdslb.com/bfs/face/a01b6deee96600627b83f8534eea1bb7b80e43df.jpg","cid": 43198382106,"width": 3840,"height": 2160,"shortUrl": "https://b23.tv/BV1Nxxr6oES2","engagementRate": 0.2647,"detailsRead": false,"danmakuStats": {"count": 951,"uniqueSenders": 842,"perMinute": [696,167,88],"peakMinute": 0},"danmaku": [{"part": 1,"second": 0,"text": "打","mode": "scroll","color": "#ffffff","sentAt": "2026-11-13T14:30:17.000Z","senderHash": "37f13158"}],"danmakuParts": [{"part": 1,"cid": 43198382106,"count": 951}],"comments": [{"type": "comment","id": "comment-318728275265","commentId": "318728275265","videoBvid": "BV1Nxxr6oES2","videoUrl": "https://www.bilibili.com/video/BV1Nxxr6oES2","text": "感觉手机滑动屏幕的灵敏度有点低,不过是真厉害啊[星星眼]","likes": 98,"replyCount": 0,"postedAt": "2026-10-31T04:11:36.000Z","authorId": "3546747433388980","authorName": "製離","authorLevel": 4,"authorAvatarUrl": "https://i1.hdslb.com/bfs/face/c4ac93e8be463384f286a51ddb79920d758fef6e.jpg","authorVip": false,"authorVerified": false,"videoTitle": "耗资上万!我重制了网页版MC!【B站AI创造公开赛】","pictures": [],"likedByUploader": false,"repliedByUploader": false,"isReply": true,"rootCommentId": "318726806945","parentCommentId": "318726806945","isPinned": false,"isFollowUp": false,"source": "search: minecraft","scrapedAt": "2026-11-14T21:50:16.315Z"}],"creatorProfile": [],"isFollowUp": false,"source": "search: minecraft","position": 2,"scrapedAt": "2026-11-14T21:50:16.315Z"}
Where are comments, danmaku and creators in the Bilibili Scraper's output?
The dataset holds one row per video, and the output opens on four tabs: Videos, Comments (one comment per row), Danmaku (one bullet comment per row, with its video) and Creators (each creator of the run once). A tab is empty when the run did not ask for it: comments are off by default, as on other Bilibili scrapers. Through the API, the same tabs are the dataset views overview, comments, danmaku and creators: /datasets/<id>/items?view=comments&format=csv.
How does the Bilibili Scraper report on its run?
Every run saves a SUMMARY record in its key-value store: the plan, videos, comments and creators delivered, each source with what it found and kept, unavailable videos with the reason (deleted, hidden, region-locked), and the run's duration. From a 1,000-video search on 2026-11-14:
{"blocked": false,"creators": 0,"duplicates": 253,"durationSec": 14,"errors": [],"itemsPushed": 1000,"monitor": null,"plan": ["Search \"美食\": best match first, up to 1,000 videos","Each video: every count (views, likes, coins, favorites, shares, danmaku, comments), tags, creator followers","At most 1,000 videos in all"],"sources": [{"source": "search: 美食","found": 1254,"pushed": 1000,"duplicates": 253}],"unavailable": [],"videos": 1000,"comments": 0,"alreadyDelivered": 0}
A run is suspect when blocked is true or errors is not empty. Set minItems to make a run with too few videos fail outright.
How does the Bilibili Scraper compare to other Bilibili scrapers?
| Bilibili Scraper | zhorex | lofomachines | blueskyscraper | |
|---|---|---|---|---|
| Price per 1,000 videos (Free tier) | $1.40 | $20 | $4.50 | $3 ($1.50 search rows) |
| Price per 1,000 comments | $1.20 | $20 | $4.50 | $1.50 |
| Searches, links, creators and lists in one run | ✅ | ❌ one mode per run | ❌ one mode per run | ❌ one mode per run |
| Coins and shares on search results | ✅ | ❌ | ✅ | ✅ at twice the price |
| Every count on a creator's videos | ✅ 20 of 20 | ❌ 10 of 20, no coins | — | ❌ no likes, coins, shares |
| Creators by name | ✅ | ❌ UID only | ✅ | ❌ |
| Comments with reply threads | ✅ | ✅ | ✅ | ✅ |
| Full danmaku track | ✅ included | profile, $0.05 a video | ❌ | ✅ $0.02 per 1,000 |
| Transcripts | ❌ | ❌ | ❌ | ✅ |
| Chinese names for English searches | ✅ type them: Nike | 耐克 | ✅ built-in list | ❌ | ❌ |
| Only new videos | ✅ | ✅ | ❌ | ✅ |
| Pseudonymous commenters | ✅ | ❌ | ❌ | ✅ |
| Sentiment score | ❌ (see the FAQ) | ✅ | ❌ | ❌ |
| Search in our tests | ✅ 30 in 4.4 s, 1,000 in 15 s | ✅ 3 in 3.7 s | ❌ failed, 0 rows | ✅ 5 in 7.1 s |
Prices and inputs read from each actor's public page on 2026-11-06; times from runs of the same search on Apify on 2026-11-14.
Things to know about Bilibili data from the Bilibili Scraper
- Bilibili shows visitors a handful of top-level comments per video. Replies under them are complete, so a busy video still gives hundreds of comments; a quiet one may give 1.
- One Bilibili search lists at most 1,000 results, some repeated. Ask for more and the actor keeps going past them: 2,000 of 2,000 for 猫 in 30 seconds on 2026-11-14.
- Danmaku: Bilibili shows visitors a selection of each part's bullet comments, up to a few thousand. The actor joins the two selections Bilibili serves, about 25% more than the player's own track; on very busy videos that is still a part of every bullet comment ever sent.
- Counts move by the minute on new videos; comments and danmaku keep coming for days after upload.
- A creator's videos include the collaborations (联合投稿) Bilibili lists on their page, led by another creator: 11 of 老番茄's last 100 on 2026-11-06. Those videos carry the lead creator, as on Bilibili.
- Deleted, hidden and region-locked videos are skipped and listed in the run summary with the reason.
Is it legal to use the Bilibili Scraper?
This actor reads data Bilibili shows publicly to any visitor and never logs in. Comments and creator profiles include personal data (names, UIDs, avatars): collect them only with a lawful reason under the GDPR, China's PIPL or the laws that apply to you, or use "Pseudonymous key". You are responsible for how you use the data, including any terms that apply to you. See Apify's guide to web scraping legality.
The Bilibili Scraper is an independent tool by Sleep Mode Systems. It is not affiliated with, endorsed by or sponsored by Bilibili; Bilibili is a trademark of its owner.
Frequently asked questions about the Bilibili Scraper
Can I export Bilibili comments to CSV or Excel?
Yes. Open the Comments tab of the output and export it, or call the dataset with view=comments&format=csv (or xlsx). Videos, danmaku and creators export the same way.
Can I get Bilibili comments without a login?
Yes, that is how this actor works. Bilibili shows a visitor a handful of top-level comments per video and every reply under them; the actor collects all of them.
Is there a Bilibili API for Python?
This actor is one: start it from Python with the apify-client package, pass the input as a dict, and read the dataset back. The same works from JavaScript or any REST client.
Can I download Bilibili danmaku for a whole video with several parts?
Yes. Turn on "Danmaku" and "Danmaku of every part": each bullet comment carries its part number.
Does it score sentiment?
No. We measured four sentiment models on hand-labelled Bilibili comments, and the best got 34 of 50 right: Bilibili's slang and irony ("老鬼畜才下饭" is praise) defeat them. Rather than sell a number that is wrong a third of the time, the actor gives you the comments and danmaku to score with the model of your choice.
How often should I run it?
Counts on new videos move by the minute, comments and danmaku for days. A daily run with "Only new videos" keeps a brand or creator covered.
Does it need proxies?
No. There is nothing to set up, and nothing extra is billed for it.
Can I schedule it and send results somewhere?
Yes. Use Apify Schedules, and a webhook or integration to send each run's dataset to your database, Google Sheets, Slack or Notion.
Does it work with the Apify API and SDK?
Yes. Any Apify client (JavaScript, Python, REST) can start the actor and read the dataset and its views.
Can I use the Bilibili Scraper through an MCP server?
Yes. Add https://mcp.apify.com/?tools=sleepmodesystems/bilibili-scraper to Claude, ChatGPT, Cursor or any MCP client, and ask for videos, comments or danmaku in plain words. The MCP tab of this actor has the setup for each client. See How do you use it with AI agents.
Support for the Bilibili Scraper
Questions, a missing field, or a custom pipeline on top of this data: write to sleepmodesystems@proton.me. Bugs go in the Issues tab of this actor.
Did the Bilibili Scraper save you time? A review on its Apify page takes a minute and helps other people find it. Thank you!