Bilibili Scraper 哔哩哔哩: Videos, Comments, Danmaku & Creators
Pricing
from $1.90 / 1,000 videos
Bilibili Scraper 哔哩哔哩: Videos, Comments, Danmaku & Creators
Scrape Bilibili (哔哩哔哩) without login: search videos, full stats, comments, replies, danmaku, creator profiles and trending charts. Many sources in one run, monitor mode, from $0.002 per video.
Pricing
from $1.90 / 1,000 videos
Rating
0.0
(0)
Developer
Smoldesk Studios
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
13 days ago
Last modified
Categories
Features
Share
Bilibili Scraper: Videos, Comments, Danmaku & Creators

Scrape Bilibili (哔哩哔哩) without login or an API key. Search videos by keyword (Latin brand names are also searched under their Chinese name, Nike + 耐克), get full video stats (views, likes, coins, favorites, shares, danmaku and comment counts, engagement rate, tags, honors), creator profiles (followers, total likes, video count, verification), danmaku (弹幕) with the second of the video each one appears at plus a danmaku profile per video (busiest minute, reactions per minute, most repeated lines), comments and reply threads, and Bilibili's trending feed and category rankings.
Built-in Chinese sentiment (positive / neutral / negative + score) on comments, danmaku and titles, tuned for Bilibili slang. Pseudonymous mode for privacy-minded research. Want full comment threads? Add your own Bilibili cookie (optional).
Mix sources in one run: keywords, video links, creators and trending together. Results are deduplicated across sources. $2.50 per 1,000 videos, about 8x cheaper than the most-used Bilibili scraper, with no monthly fee.
**中文用户:**本页下方有完整的「中文使用说明」。
What you get
{"type": "video","bvid": "BV1g1C6Y2Ef3","aid": 113719929475294,"url": "https://www.bilibili.com/video/BV1g1C6Y2Ef3","title": "【4K】黑神话悟空全成就保姆级攻略【已完结】","description": "分P大合集来了,再次撒花!…","coverUrl": "https://i1.hdslb.com/bfs/archive/ee6abfa95da35ce4d1ccfd2802d42d42ab3f34ae.jpg","durationSeconds": 81532,"durationText": "22:38:52","publishedAt": "2024-12-27T04:00:00+00:00","category": "单机游戏","tags": ["黑神话悟空", "攻略", "单机游戏", "4K"],"authorName": "爱玩的Kaka","authorId": 420269,"authorUrl": "https://space.bilibili.com/420269","authorFollowers": 40054,"views": 7755592,"likes": 58601,"coins": 59522,"favorites": 64965,"shares": 7123,"danmakuCount": 40033,"commentCount": 3795,"engagementRate": 0.0303,"parts": 29,"honors": [],"rank": 1,"source": "search","searchQuery": "黑神话悟空","matchedTerm": "黑神话悟空","sentiment": null,"danmakuProfile": null,"markdown": "# 【4K】黑神话悟空全成就保姆级攻略【已完结】\n\nby 爱玩的Kaka · 2024-12-27 · 7,755,592 views · 58,601 likes\n…","scrapedAt": "2026-10-15T09:58:35.745889+00:00"}
source tells you where the video came from: search, video, user, popular or ranking:<category>. rank is its position in that list. matchedTerm is the search term that found it (your keyword or one of its aliases). engagementRate = (likes + coins + favorites + shares + comments + danmaku) / views, filled when the full stats are known. sentiment and danmakuProfile stay null unless you switch them on.
What you can use it for
- Chinese market & brand research: what Gen-Z China watches and says about a brand, game, car or gadget.
- Influencer (KOL / UP主) discovery: shortlist creators by followers, total likes and verification, then pull their latest uploads.
- Content & trend tracking: daily snapshots of the hot feed or a category's top 100 ranking.
- Audience reaction analysis: danmaku show exactly which second of a video people react to; the danmaku profile gives the busiest minute and the most repeated lines at a glance.
- Brand sentiment in China: search a brand under its English and Chinese names in one go and get positive / negative shares of the comments and danmaku.
- AI / NLP datasets: Chinese titles, descriptions, tags, comments and danmaku with clean text, ready for sentiment analysis or RAG.
- Monitoring: schedule it with Only new videos to get a feed of new uploads for a keyword or creator.
Why this scraper
| This Actor | Other Actors on the Store | |
|---|---|---|
| 1,000 videos with full stats | $2.50 ($1.90 on Business) | The most-used one is $20; the next is $4.50 ($2 on Business) |
| 1,000 comments | $0.50 | The most-used one charges $20, the same as a video |
| Danmaku (bullet comments) | $0.10 per 1,000 | |
| Danmaku profile per video | Free (part of the video row) | The most-used one charges $0.05 per profile |
| Chinese sentiment | Free, built in | Only the most-used one has it |
| English + Chinese brand name in one search | Built in (~120 brands) + your own aliases | Only the most-used one has it |
| Login | Not needed. Optional: your own cookie for full comment threads |
Competitor prices checked on the Apify Store in November 2026 (Free plan price first). Store prices change, so check the Pricing tab of any Actor before you compare.
How to scrape Bilibili
1. Add keywords or creators. Type search keywords, paste video links or creator UIDs, and switch on comments or danmaku (弹幕) if you need them.

2. Click Start. Search results come first, then the comments and danmaku of each video.

3. Get clean data. Every video comes with views, likes, coins, favorites, shares and its creator. Export it as JSON, CSV or Excel, or read it through the API.

Tips
- Without a cookie Bilibili shows visitors about 3 comments per order, so the Actor reads both orders (most liked and newest) and fills up with replies. For hundreds of comments per video add your own cookie, or use danmaku for reactions at scale.
- Bilibili stops search at 1,000 results per keyword. Use date ranges or more specific keywords for more.
- Creator lists are paged slowly by Bilibili, so very large creator lists can take a few minutes.
Output reference
Input
{"searchQueries": ["人工智能", "Nike"],"searchAliases": ["Nike = 耐克鞋, AJ"],"maxVideosPerSearch": 100,"searchSort": "views","publishedAfter": "3 months","users": ["https://space.bilibili.com/686127"],"maxVideosPerUser": 50,"videoUrls": ["https://www.bilibili.com/video/BV1m5aY69E8D", "https://b23.tv/xxxxxx"],"trending": "ranking","rankingCategory": "tech","includeDanmaku": true,"maxDanmakuPerVideo": 100,"includeComments": true,"maxCommentsPerVideo": 50,"includeDanmakuProfile": true,"sentimentAnalysis": true}
- Search: Chinese and English keywords, sort (relevance, most viewed, newest, most danmaku, most favorited), video length, published date range (a date or relative:
7 days,3 months). Bilibili returns at most 1,000 videos per keyword; split by date range to go further. - Aliases: Also search Chinese brand names (on by default) searches Nike as 耐克 too, for ~120 brands, cars and games. Add your own with Search aliases (
Nike = 耐克鞋, AJ). Results of all terms are interleaved and deduplicated. - Videos: links, BV IDs, av IDs and b23.tv short links.
- Creators: UID or profile link. Profile plus their uploads (newest, most viewed or most favorited).
- Trending: hot feed (up to 500) or the top-100 ranking for 18 categories.
- Full video stats is on by default. It adds coins, shares, tags, honors and the uploader's follower count at no extra cost.
- Comments: both orders (most liked and newest) merged, then replies until Max comments per video. Your Bilibili cookie (optional): paste the
SESSDATAcookie of your own account for full threads (see FAQ). - Danmaku profile, Danmaku of all parts and Sentiment analysis: no extra charge.
- Follow-up comments (with Only new videos): each delivered video is re-read once, a day or more later, and only newer comments are returned (
isFollowUp: true). - Commenter data: full, or pseudonymous (stable salted keys instead of names and IDs).
Pricing
Pay only for results. No monthly rental, no start fee to speak of.
| Result | Free & Starter | Scale | Business |
|---|---|---|---|
| Video (full stats) | $2.50 / 1,000 | $2.20 | $1.90 |
| Creator profile | $2.00 / 1,000 | $1.75 | $1.50 |
| Comment or reply | $0.50 / 1,000 | $0.50 | $0.50 |
| Danmaku | $0.10 / 1,000 | $0.10 | $0.10 |
Example: 1,000 videos with full stats = $2.50, plus 1,000 top comments = $0.50. The most-used Bilibili scraper charges $0.02 per row: $20 + $20 for the same data.
Videos that can't be read (deleted, private, blocked) are skipped and not charged.
Use with AI agents (Claude, ChatGPT, Cursor, MCP)
Add the Actor as a tool through the Apify MCP server: https://mcp.apify.com?actors=smoldesk/bilibili-scraper. Then paste this into your agent's system prompt or tool notes, so it knows when to call it:
Tool: smoldesk/bilibili-scraper (Bilibili Scraper, Apify)Use it when: the user wants Bilibili (哔哩哔哩) videos for a keyword, video stats (views, likes, coins, favorites), comments, danmaku (bullet comments), a creator's videos and follower count, or Bilibili's trending charts. No login needed.Don't use it when: the user wants Weibo posts (use smoldesk/weibo-scraper), Chinese news articles (use smoldesk/toutiao-scraper), YouTube videos (use smoldesk/youtube-scraper), video files, or anything that needs a Bilibili login.How to call: run the Actor with JSON input and read the dataset items. Results cost money per item, so keep the counts small unless the user asks for more.Set "compact": true for short rows (main fields only). Leave it off to get every field, including full text.Example input: {"searchQueries": ["原神"], "maxVideosPerSearch": 20, "searchSort": "views", "includeComments": true, "maxCommentsPerVideo": 20}
Questions an agent can answer with it:
- What are the most-viewed Bilibili videos about our game this month, and what do commenters say?
- Which tech creators on Bilibili have the most followers, and how often do they post?
- What's in Bilibili's top ranking for the knowledge category today?
Your agent can pay for its own runs. This Actor is approved for agentic payments on Apify, so an agent with a Skyfire token or an x402 wallet can call it and pay per result without an Apify account. Skyfire: use https://mcp.apify.com?payment=skyfire. x402: buy a prepaid Apify token with USDC. Setup: Apify agentic payments docs.
Want every Smoldesk scraper as agent tools in one connection? See the full list on our publisher page.
Use with AI (LangChain / LlamaIndex / CrewAI)
Each video has a markdown field (title, creator, date, views, likes, tags, description) ready for LLMs. With LangChain (pip install langchain-apify):
from langchain_apify import ApifyWrapperfrom langchain_core.documents import Documentapify = ApifyWrapper() # reads APIFY_API_TOKENloader = apify.call_actor(actor_id="smoldesk/bilibili-scraper",run_input={"searchQueries": ["新能源汽车"], "maxVideosPerSearch": 50},dataset_mapping_function=lambda v: Document(page_content=v.get("markdown") or v.get("text") or "",metadata={k: v.get(k) for k in ("type", "url", "videoUrl", "views", "likes", "publishedAt")},),)docs = loader.load()
Already have a run? Use ApifyDatasetLoader(dataset_id="<run's dataset ID>", dataset_mapping_function=...). LlamaIndex: ApifyActor from llama-index-readers-apify. CrewAI: use the Apify MCP server above.
Limitations
- Comments without a cookie: Bilibili shows visitors who aren't logged in about 3 comments per order. The Actor merges the most-liked and newest orders plus the pinned comment (~6 per video) and fills up with replies, which are fully open. For more, add your own cookie, or use danmaku, which are fully available.
- Sentiment is word-list based (no AI model): reliable on clear praise or complaints, neutral on sarcasm and memes it doesn't know.
- Bilibili caps keyword search at 1,000 results per query. Use date ranges or more specific keywords for more.
- Danmaku: Bilibili serves the most recent ~1,000 to 3,000 danmaku of a video.
- Subtitles and play URLs need a login and are not included.
- Bilibili rate-limits bursts. The Actor retries with fresh sessions and switches to datacenter proxies on its own, so large creator lists can take a few minutes.
FAQ
Does Bilibili have a public API? Not an official one for developers. This Actor reads the same public endpoints the Bilibili website loads for any visitor, and returns clean, English-named JSON.
Do I need a Bilibili account, cookies or a Chinese phone number? No. Everything works without them. The only thing a cookie adds is full comment threads.
How do I get full comment threads? Log in to bilibili.com in your browser (a secondary account is best), press F12, open Application → Cookies → https://www.bilibili.com and copy the value of SESSDATA. Paste it into Your Bilibili cookie. Apify stores it encrypted. It is used only for comment requests, one at a time; searches, videos and danmaku stay logged out. The account and its risk are yours. If the cookie expires, the run carries on without it and says so in the log.
How does the sentiment work? A Chinese word list with Bilibili slang (yyds, 绝了, 下头, 破防...), negation (不好看 is negative) and intensity (太好看了 scores higher than 好看). Each text gets a label and a score from -1 to 1.
Do I need a proxy or VPN? No. It works from Apify's servers as is.
What are coins (投币)? Bilibili viewers tip videos with coins. Together with likes and favorites (三连) they are the strongest engagement signal on the platform.
What is danmaku (弹幕)? Comments that scroll across the video at a specific second. They show which moments viewers react to.
How do I get only new uploads? Turn on Only new videos and schedule the Actor. Each run returns videos that earlier runs with the same keyword, creator or trending settings haven't seen.
Is it legal? Without a cookie it collects only data Bilibili shows publicly to every visitor. If you add your own cookie, you use your own account under Bilibili's terms. Follow copyright and privacy laws (e.g. PIPL, GDPR) when you reuse it.
Feedback
Found a bug or missing a field? Open an issue in the Issues tab. If the Actor saved you time, a short review on this page helps other people find it.
Code examples and a quick reference are also on GitHub: smoldesk/bilibili-scraper.
More Actors from Smoldesk Studios
- Weibo Scraper: keyword and hashtag search, posts, comments, profiles and the hot-search board from China's biggest microblog, no login
- Toutiao Scraper: Toutiao (今日头条) news search with date ranges, reads and likes, comments and the hot board (热榜), no login
- YouTube Scraper: videos, Shorts, channels and comments from search, channels and playlists, exact views, likes, publish dates and durations, no API key
- YouTube Comments Scraper: comments and replies from videos, channels, playlists or keyword searches, with likes, pinned/hearted flags and authors
- All Smoldesk Studios Actors
中文使用说明
无需登录或 API 密钥,即可采集哔哩哔哩的公开数据:视频搜索结果及完整数据(播放、点赞、投币、收藏、分享、弹幕数、评论数、互动率、标签)、UP 主资料、弹幕及每个视频的弹幕画像(高峰分钟、每分钟弹幕数、高频弹幕)、评论与回复,以及热门视频和分区排行榜。内置中文情感分析(正面、中性、负面及分数)。输入表单中的字段名为英文,下文以粗体标出,方便对照。
- 注册免费的 Apify 账号(开始使用无需绑定信用卡),然后打开本 Actor。
- 选择数据来源(可在同一次运行中混合使用):
- Search keywords:搜索关键词,例如
人工智能、minecraft。 - Video URLs or IDs:视频链接、BV 号、av 号或 b23.tv 短链接。
- Creators (UID or profile URL):UP 主的 UID 或个人空间链接。
- Trending videos:选择 Popular (hot feed) 采集综合热门,选择 Ranking (top 100 by category) 采集排行榜前 100 名,并在 Ranking category 中选择分区。
- Search keywords:搜索关键词,例如
- 设置数量和筛选条件:Max videos per keyword 和 Max videos per creator 决定每个来源返回的视频数量;可用 Search sort(排序方式)、Video length(视频时长)和 Published after / Published before(发布时间)缩小范围。
- (可选)采集更多数据:打开 Include comments 采集评论,打开 Include danmaku (弹幕) 采集弹幕;保持 Full video stats 开启,即可获得投币、收藏、分享和标签数据。Danmaku profile per video 生成弹幕画像,Danmaku of all parts 采集多 P 视频每一 P 的弹幕,Sentiment analysis 为评论、弹幕和标题添加情感标签,均不额外收费。Also search Chinese brand names 会同时搜索英文品牌名对应的中文名(如 Nike 与 耐克),也可在 Search aliases 中自行添加,例如
Nike = 耐克鞋, AJ。- 未登录时,B 站每种排序只显示约 3 条评论。本 Actor 会合并「最热」和「最新」两种排序,再用回复补足数量。如需完整评论,可在 Your Bilibili cookie 中填入您自己账号的
SESSDATA(建议使用小号,风险由账号所有者承担)。 - Commenter data 选择 Pseudonymous 后,评论者和弹幕发送者的昵称、UID 会替换为稳定的匿名标识。
- 未登录时,B 站每种排序只显示约 3 条评论。本 Actor 会合并「最热」和「最新」两种排序,再用回复补足数量。如需完整评论,可在 Your Bilibili cookie 中填入您自己账号的
- 点击 Start。运行期间结果会实时显示在 Output 标签页中。
- 导出或对接数据:可导出为 JSON、CSV、Excel 或 HTML,也可以通过 API、Make、Zapier、n8n、Google Sheets 或 Webhook 获取数据。
- 定时监测:在 Schedules 中添加每天运行的定时任务,并打开 Only new videos (monitor mode),即可持续获取某个关键词或 UP 主的新投稿。同时打开 Follow-up comments,已交付的视频会在至少 24 小时后再读取一次评论,只返回新增的评论。
价格(每 1,000 条):视频(含完整数据)$2.50,UP 主资料 $2.00,评论或回复 $0.50,弹幕 $0.10。Scale 和 Business 套餐的视频和 UP 主资料价格更低。无月费;无法读取的视频(已删除、私密或受限)会被跳过,不收费。
限制:未登录访客在每个视频下只能看到前 3 条热门评论(以及 UP 主的置顶评论),这些评论的回复可以完整采集;如需大量观众反馈,请使用弹幕。每个关键词的搜索结果最多 1,000 条。字幕和播放地址需要登录,因此不包含在内。