Bilibili Scraper — Videos, Comments, Danmaku & Creator Uploads
Pricing
from $10.00 / 1,000 results
Bilibili Scraper — Videos, Comments, Danmaku & Creator Uploads
Scrape Bilibili videos, comments with replies, danmaku (bullet comments), creator uploads, profiles, rankings and trending searches. Search in Chinese or English, get danmaku analytics and creator engagement stats as clean JSON. No account or cookie needed.
Pricing
from $10.00 / 1,000 results
Rating
0.0
(0)
Developer
Insights Data
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
0
Monthly active users
4 days ago
Last modified
Categories
Features
Share
🎬 What is Bilibili Scraper — Videos, Comments, Danmaku & Creator Uploads?
Bilibili Scraper — Videos, Comments, Danmaku & Creator Uploads helps marketers, agencies and researchers who work on China plan Bilibili influencer marketing, follow trends and study audiences, using public data from Bilibili (哔哩哔哩, B站), a major Chinese video platform. Paste video links, creator IDs, keywords in Chinese or English, or chart names, click Start, and get structured rows with video statistics, comments and replies, danmaku and creator profiles. The Apify Free plan's $5 monthly credit pays for result charges and platform usage, so you can try it for free, and most data needs no Bilibili account.
Danmaku, also called Bilibili bullet comments, are the short viewer comments that scroll across the video at a set second.
🎯 What you can do with Bilibili data
- 🤝 Bilibili KOL discovery: search creators by keyword and compare followers, average views, upload frequency and engagement rate before you contact them. (KOL means key opinion leader, the usual word for an influencer in China.)
- 🏷️ Brand monitoring and China social listening: collect new videos found for your brand or product keywords every day, with their comments and danmaku.
- 💭 Audience research and Bilibili sentiment analysis: get the exact words viewers use in comments, replies and danmaku, ready for your own sentiment model.
- 🔥 Bilibili trend analysis: read the popular board, the weekly must-watch list, rankings by category and trending searches.
- 🥊 Competitor analysis: follow the uploads of competing creators or brand channels and see how their views and likes grow between runs.
- 🧠 Datasets for market research and AI training data: build a Bilibili dataset of Chinese-language videos, comments and danmaku with one row per item.
All text comes back as Bilibili shows it, mostly in Chinese. Nothing is translated.
🏁 Quick start by goal
Paste one of these into Links, keywords & charts (one entry per line) and keep the other settings as they are:
- 🔥 Trend research:
popular,weekly,ranking:techandtrending. With the default Max results per input of 10 this saves up to 10 + 10 + 10 video rows plus up to 50 trending keywords: at most 80 × $0.015 = $1.20 in result charges on the Free plan. - 🤝 KOL discovery: a niche keyword such as
美妆(beauty), and set Search for to Creators (find channels by keyword). This saves up to 10 creator rows plus up to 10 uploads each: at most 110 × $0.015 = $1.65. - 💬 Comments and danmaku: one video link such as
https://www.bilibili.com/video/BV1rgap62Ez5, switch on Include comments (10 per video by default) and set Danmaku (bullet comments) to Statistics on the video row. This saves 1 video row plus up to 10 comment rows: at most 11 × $0.015 = $0.165.
📋 Bilibili scraper data: what can you extract?
Every row has a type field: video, comment, reply, danmaku, creator, post or trending. You get Bilibili statistics for each video, comment and creator, in the same field names as the dataset schema.
Short glossary:
- BV ID (
bvid): Bilibili's video ID, the part after/video/in a link, for exampleBV1rgap62Ez5. - aid: the older number ID of the same video. cid: the ID of one part of a video (long videos can have several parts).
- mid (also called uid): a creator's number ID, the number in a creator's page link
space.bilibili.com/<mid>. - UP主: Bilibili's word for a creator, the person who uploads videos.
- Danmaku pool: all the danmaku Bilibili keeps for a video.
poolon a danmaku row is the pool number Bilibili gives it.
| Video data | Video data |
|---|---|
🆔 IDs: bvid, aid, cid | 🔗 Link: url |
📝 Text: title, description | 🖼️ Cover: thumbnailUrl |
🗂️ Category and tags: category, categoryId, categoryV2, tags, topic | ⏱️ Length: duration, durationFormatted, partCount, parts |
📅 Published: publishDate, publishTimestamp, isReprint | 📍 Location: publishLocation |
👤 Creator: authorMid, authorName, authorFace, authorFollowers | 👁️ Views: viewCount |
👍 Likes: likeCount | 🪙 Coins: coinCount (Bilibili's tip button) |
⭐ Favorites: favoriteCount | 🔄 Shares: shareCount |
💬 Comments: replyCount, commentsFetched | 🌊 Danmaku: danmakuCount |
📊 Engagement: engagementRate, likeToViewRatio | 🏆 Rankings: rank, highestRank, honors, recommendReason, source |
📈 Growth since the last run: changes | 📜 Subtitles: subtitleLanguage, subtitles |
The Bilibili engagement rate in engagementRate is (likes + coins + favorites + shares + comments + danmaku) divided by views. It stays empty when one of those counts is missing.
Other row types:
| Row type | Main fields |
|---|---|
💬 comment | commentId, videoBvid, rootId, rootRpid, isThreadReply, parentId, dialogId, text, likeCount, replyCount, createdAt, authorMid, authorName, authorLevel, authorIsVip, authorOfficialTitle, ipLocation, upLiked, upReplied, isPinned, pictures, mentions |
🧵 reply | The same fields as a comment, with isThreadReply = true, rootId (the top comment) and parentId (the comment it answers) |
🌊 danmaku | danmakuId, videoBvid, cid, part, videoTime, text, mode, fontSize, color, senderHash, sentAt, pool |
👤 creator | mid, name, url, sign, level, followers, following, videoCount, articleCount, totalLikes, officialTitle, verification, liveRoomId, liveStatus, liveTitle, recentSampleSize, avgViews, medianViews, avgLikes, avgComments, avgDanmaku, avgEngagementRate, uploadsPerWeek, lastUploadAt, source |
🗒️ post | postId, postType, creatorMid, creatorName, text, title, topic, linkedVideoBvid, imageUrls, likeCount, commentCount, repostCount, publishDate, url |
🔥 trending | rank, keyword, showName, heatScore, isHot, searchUrl |
With danmaku on, each video row also gets a danmaku profile: danmakuFetched, danmakuTotal, danmakuUniqueSenders, danmakuFirstAt, danmakuLastAt, danmakuPeakMinute, danmakuPeakMinuteCount, danmakuPerMinute, danmakuRateBasisSecs, danmakuTimeline (count per minute), danmakuTopPhrases, danmakuSample and danmakuPoolCapped (true when clearly fewer danmaku were read than Bilibili reports for the video).
Note: with Fetch full video details on (default), every video row gets the full set of fields. With it off, rows keep only what their source lists: keyword-search rows have no
coinCountorshareCount, creator-upload rows have only views, comments and danmaku counts, and chart rows keep their stats but notags;authorFollowers,honorsandpartsalways need full details. Pasted video links always get full details.ipLocationandsubtitlesneed your own login cookie.changesis empty the first time a video is seen.senderHashis an anonymised code for the danmaku sender, not a user name.
The creator rows are the base for Bilibili creator analytics: avgViews, medianViews, avgEngagementRate and uploadsPerWeek are worked out from the creator's recent uploads in the same run.
What data can't this Actor extract?
- Video or audio files. The Actor saves data about videos, not the videos themselves.
- Subtitles and commenter locations without your own Bilibili cookie.
- Private, deleted or region-locked videos, and comment sections that are turned off.
- Translations or sentiment scores. Comments and danmaku come as written, so you can run your own analysis.
For comments on TikTok videos, use TikTok Comments & Replies Scraper.
🚀 How to scrape Bilibili
- Create a free Apify account using your email.
- Open Bilibili Scraper — Videos, Comments, Danmaku & Creator Uploads.
- In Links, keywords & charts, paste one entry per line: a keyword, a video link, a creator link or
uid:123, or a chart name such asranking:game. The form is prefilled with the keyword原神(Genshin Impact) and one video link; keep them for a test run or replace them with your own (see Quick start by goal). - Check the defaults: Max results per input is 10; Include comments, Include replies and Include subtitles are off; Danmaku is Off; Fetch full video details and Track changes since the last run are on.
⚠️ Every saved row is a charged result. Max comments per video or Max replies per comment set to 0 mean all, and Danmaku set to Statistics + one row per danmaku saves every danmaku it reads. One video with 5,000 comments then saves 5,001 rows (1 video + 5,000 comments): 5,001 × $0.015 = $75.015 in result charges. Keep these limits small for your first runs.
- In the run options below the input, set a maximum charge limit, for example $1 for a first test. It caps the result charges of the run (on the Free plan, 66 results cost 66 × $0.015 = $0.99 in result charges); platform usage comes on top.
- Click Start. Rows appear in the Output tab while the run is going.
- Download your data: open Storage → Datasets, pick the run's dataset and click Export to get JSON, CSV, Excel, XML or HTML.
💲 How much does it cost to scrape Bilibili?
This Actor uses pay-per-event pricing: instead of a monthly rent, you pay for events, here each saved row (a result) and the start of a run. Your bill has three parts:
- 📦 Results: every row saved to the results counts as one result, whatever its type: video, comment, reply, danmaku, creator, post or trending keyword. The price per 1,000 results depends on your Apify plan (table below).
- ▶️ Start fee: $0.00005 per run at the default 1 GB memory.
- ☁️ Platform usage: the compute and any Apify Proxy traffic the run uses, billed at your Apify plan's own rates. It is extra and depends on the size of the run.
| 💲 Plan | Price per result | Price per 1,000 results |
|---|---|---|
| 🆓 Free | $0.015 | $15.00 |
| 🥉 Starter | $0.0135 | $13.50 |
| 🥈 Scale | $0.012 | $12.00 |
| 🥇 Business | $0.01 | $10.00 |
The plan discount applies to the result price only. The start fee is the same on every plan, and platform usage is billed at your Apify plan's own rates.
Examples of result charges on the Free plan (platform usage comes on top):
- 🧪 The prefilled input (
原神with Max results per input 10, plus one video link) saves up to 11 video rows: 11 × $0.015 = $0.165. - 🏆 A video chart such as
popular,weeklyorranking:techsaves at most Max results per input rows (10 by default = at most $0.15). Weekly, precious and the rankings can be shorter, because Bilibili sets their length. - 🔥 The trending searches board: up to 50 rows = 50 × $0.015 = $0.75, whatever Max results per input says.
- 💬 10 videos with 10 comments each: 10 video rows + 100 comment rows = 110 × $0.015 = $1.65.
- 👤 A creator search with Max results per input 10 and the default Max uploads per creator 10: up to 10 creator rows + 100 upload rows = 110 × $0.015 = $1.65.
- 📦 1,000 results of any type: 1,000 × $0.015 = $15.00 (or $10.00 on Business).
What is not charged: entries that are not Bilibili links or keywords, inputs that find nothing, and videos skipped by Only new videos or Skip videos from an earlier run. The extra per-type tables in the Output tab are free copies of the same rows.
The maximum charge limit (run options, step 5 above) caps the result charges of a run; platform usage comes on top. When the limit is reached, the run stops cleanly and keeps every row already saved. See the pricing tab for all events.
Is scraping Bilibili free?
Yes, you can start for free. The Apify Free plan gives you $5 in monthly credit, which pays for result charges and platform usage. Free-plan runs work like paid runs, with no extra caps. The best way to see your real cost is a small test run: the run page shows the cost when it finishes.
⬇️ Input
To run the Actor you need at least one entry: a link, a keyword, a creator ID or a chart. Set the input in the Console form or send it as JSON through the API.
⚙️ Settings most people change
- 🔗 Links, keywords & charts (
urls): one entry per line. Video links, BV or av IDs and b23.tv short links; creator page links oruid:123; search links; plain keywords in Chinese or English; chart names. Entries that are not Bilibili are skipped and listed in the log. - 🔢 Max results per input (
maxResults, default 10): videos for each keyword and each video chart, or creators for each keyword in creator search. Three keywords with 100 give up to 300 videos. It does not limit pasted video links (every link is collected), the trending searches board (up to 50 keywords) or uploads of creators you list (see Max uploads per creator). - 🧭 Search for (
searchType): Videos (video, default, a video search by keyword) or Creators (find channels by keyword) (creator). Creator search returns a creator row for each creator found plus up to Max uploads per creator of their uploads as video rows. - 🏆 Charts & trending boards (
charts): pick boards from a list. Chart names typed into Links, keywords & charts work the same way, so use either field. The names arepopular,weekly,precious(hall of fame),ranking(all site),ranking:origin,ranking:rookie,trending(trending search keywords) and these Bilibili ranking boards by category:ranking:douga(animation),ranking:game,ranking:kichiku(remixes),ranking:music,ranking:dance,ranking:cinephile(film and TV),ranking:ent(entertainment),ranking:knowledge,ranking:tech,ranking:information(news),ranking:food,ranking:car,ranking:fashion,ranking:sports,ranking:animal,ranking:vlog,ranking:aiandranking:painting. - 💬 Include comments (
includeComments, off by default) with Max comments per video (maxComments, default 10; 0 = all) and Comment order (commentSort: Most liked first or Newest first). - 🌊 Danmaku (bullet comments) (
danmakuMode): Off (off, default), Statistics on the video row (stats, a danmaku profile on the video row, no extra rows) or Statistics + one row per danmaku (full). - 📺 Fetch full video details (
fetchVideoDetails, on by default): adds coins, shares, tags, parts and honors. Turning it off does not change the number of rows or the result charges; it only makes the run lighter, which saves some platform usage.
Here's an example that searches the keyword 美食 (food) for 10 videos:
{"urls": ["美食"],"maxResults": 10}
Bilibili search uses the keyword exactly as you type it. An English keyword works, but most Bilibili videos have Chinese titles, so add the Chinese word too with Search aliases.
See the input tab for a full description of all fields.
🎛️ All other settings
| Setting | What it does |
|---|---|
🔎 Search keywords (searchQueries) | Extra keywords, same as typing them in the list above. |
🔤 Search aliases (searchAliases) | Extra words searched with every keyword; results are merged without duplicates under the same Max results limit. Useful for the Chinese name of a brand you search in English. |
👤 Creator IDs (creatorIds) | Numeric creator IDs (mid) or creator page links. Each creator gives one creator row plus their uploads. |
↕️ Sort search results by (sortOrder) | Best match (default), most views, newest, most danmaku, most favorites, most comments. |
⏱️ Video length (durationFilter) | Any, under 10, 10 to 30, 30 to 60 or over 60 minutes. |
🗂️ Category ID (categoryId) | 0 = all (default). Search only understands Bilibili's classic category numbers, for example 172 for mobile games; you can see a video's classic number in its categoryId field. Bilibili's newer category numbers (1000 and above, shown in categoryV2Id) return nothing here. |
📅 Published after / before (publishedAfter, publishedBefore) | A date or a relative time such as 7 days or 1 month. |
🔭 Search deeper than 1,000 results (deepSearch) | On by default. Bilibili shows at most 1,000 results per search; this splits a search into date ranges to go further. |
📼 Max uploads per creator (maxVideosPerCreator) | Default 10, for each creator. Creator uploads order (creatorVideosSort): newest, most views or most favorites. |
📑 Add a profile row for every author (includeCreatorProfile) | One creator row for every video author. Off by default. |
🗒️ Include creator posts (includeCreatorPosts) | Off by default. Text and image posts of the creators in Creator IDs, creator links or creator search, up to Max posts per creator (maxPostsPerCreator, default 10). |
🎞️ Include related videos (includeRelated) | Off by default. Adds relatedVideos (BV IDs) to each video row. |
📜 Include subtitles (includeSubtitles) | Off by default; needs a login cookie. Subtitle format (subtitleFormat): plain text or timed segments. |
🍪 Bilibili login cookie (cookie) | Optional, the cookie string of your own Bilibili account (copied from your browser while logged in). Unlocks subtitles and commenter locations. Stored as a secret and hidden in the log. |
🧵 Include replies (includeReplies) | Off by default. Replies as their own rows, up to Max replies per comment (maxRepliesPerComment, default 5; 0 = all). Turns comments on. |
🌊 Danmaku extras (danmakuSampleSize, danmakuAllParts, danmakuMaxSegments) | Sample size on the video row (default 10), every part of multi-part videos (off by default), and how many 6-minute blocks to read per part when the full pool is not available (default 10 = the first hour). |
📈 Track changes since the last run (trackChanges) | On by default. Adds growth to videos that an earlier run with the same Monitoring name saw. |
🆕 Only new videos (deltaMode) | Off by default. Skips videos an earlier run with the same Monitoring name delivered. |
🧹 Skip videos from an earlier run (skipDatasetId) | Pick an earlier dataset; its videos are not collected again (up to 300,000 video IDs are read). |
🔔 Follow-up comments on earlier videos (followUpComments) | Off by default. New comments on videos from earlier runs, inside Follow-up window (days) (followUpDays, default 7) and up to Max follow-up videos (followUpMaxVideos, default 10). Needs Only new videos and comments. |
🔑 Monitoring name (stateKey) | Default default. A label for the memory the Actor keeps in your Apify account between runs: which videos it delivered and their last numbers. The three monitoring options above use it. Use one name per project. |
🔍 Max results examined per input (maxScanned) | Default 5,000. Stops a search whose filters match almost nothing. 0 = no limit (videos that are checked but not kept are not charged). |
⚡ Videos in parallel (concurrency), Delay between requests (requestDelay), Retries per request (maxRetries) | Defaults 3, 0.35 seconds and 3. Lower the parallel videos or raise the delay if Bilibili slows you down. |
🌐 Proxy (proxyConfiguration) | Optional. Apify Proxy is Apify's pool of IP addresses that a run can send its requests through; its traffic is billed as platform usage. Leave this as it is, or choose your own Apify Proxy or proxy settings. |
🔗 Links, keywords & charts
One list takes everything. Plain text is treated as a search keyword. To find a creator's ID, open their Bilibili page: the number in space.bilibili.com/<number> is the mid, so enter uid:<number> or paste the link.
- ✅ Good:
原神,https://www.bilibili.com/video/BV1rgap62Ez5,uid:123,ranking:game - ❌ Bad:
https://www.youtube.com/watch?v=...(not Bilibili, skipped)
⚠️ Each keyword and each video chart gets its own Max results per input, so totals multiply.
⬆️ Output
Results are stored in a dataset, which is a results table in your Apify Storage. Rows are saved while the run is going. The Output tab is for viewing: All results has every row (the type field tells the kind), and there are more tables: Videos, Video stats, Video authors, Video details, Danmaku profile, Comments & replies, Danmaku, Creators, Creator posts and Trending searches, plus the Run summary. For a trend overview, open Videos. The per-type tables are free copies of the rows in All results, not extra charges.
To download, use Storage → Datasets → the run's dataset → Export. Pick JSON, CSV, Excel, XML or HTML and, if you like, only the fields you need. That dataset holds every row, so filter by type (for example comment) in your spreadsheet.
🧪 JSON example
An example video row from a search for 美食, the input example above (shortened). The numbers were taken from a real run and change over time; title and publishDate stand in for the real values, which come in Chinese and in ISO date format:
{"type": "video","bvid": "BV14iyGzGEQY","url": "https://www.bilibili.com/video/BV14iyGzGEQY","title": "<video title, in Chinese as uploaded>","publishDate": "<ISO date, for example 2026-11-20T10:30:00+00:00>","category": "美食记录","tags": ["记录我的美食日常", "鸡柳卷饼", "五谷鱼粉"],"durationFormatted": "6:58","authorMid": 1551983671,"authorName": "小婷食日记","viewCount": 17700,"likeCount": 1461,"coinCount": 57,"favoriteCount": 105,"shareCount": 13,"replyCount": 32,"danmakuCount": 20,"engagementRate": 0.0954,"source": "search:美食"}
Comment rows look the same way: type is comment, videoBvid links back to the video, text holds the comment as written, plus likeCount, replyCount, createdAt and the commenter fields listed above. Dates such as publishDate, createdAt and scrapedAt use the ISO date format.
🧾 Run summary
There are no error rows in the dataset. Instead, a RUN_SUMMARY record is saved in the run's key-value store, a small file store next to the dataset (open Storage → Key-value stores, or Run summary in the Output tab). It lists rows per type and, for each input, how many videos were found and saved, with a status:
ok: everything found was saved.empty: nothing was found (nothing charged for this input).partial: fewer rows were saved than found, for example because some videos could not be read or were skipped as already delivered.partial (stopped early)/not started (stopped early): the run stopped before it finished this input.
It also says why the run stopped: it finished, it reached the maximum charge limit, or it reached the run time limit.
💡 Bilibili scraper tips and advanced usage
How many results can you scrape from Bilibili?
Each keyword and each video chart returns up to Max results per input (1 to 100,000). The real number also depends on:
- 🔭 Bilibili's limit of 1,000 results per search. Keep Search deeper than 1,000 results on to go further.
- 🔍 Filters: a search stops after 2,000 checked videos with none matching your filters, and at Max results examined per input.
- 🏆 Board length: weekly, precious and the rankings have the length Bilibili gives them;
popularcan go up to your limit. - ⏳ Run time: the run stops about 40 seconds before its timeout and keeps everything saved. Give big runs a longer timeout in the run options.
The best way to know for your use case is a small test run.
How can I lower the cost of a run?
- 💬 Result charges follow the number of rows. Keep Max comments per video and Max replies per comment small until you know what you need.
- 🌊 Use Danmaku = Statistics on the video row for analysis: you get the danmaku profile on the video row without one charged row per danmaku.
- 📺 Turn Fetch full video details off when listing fields (views, likes, comments, danmaku count) are enough. Rows and result charges stay the same; the run only uses less platform usage.
- 🔤 Use Search aliases instead of extra keywords when you want one shared limit for a brand's English and Chinese names.
🗓️ Run it on a schedule
Save your input as a task (a saved input you can run again with one click), add an Apify schedule to it (for example daily at 08:00 or every Monday), and keep the same Monitoring name in every run of that task. Pick one of two recipes, because they don't mix:
- 📈 Video performance tracking: keep Track changes since the last run on (default) and Only new videos off. Each run collects the current videos again, and every video an earlier run saw carries
changeswithviewDelta,likeDelta,coinDelta,favoriteDelta,shareDelta,replyDelta,danmakuDelta,sinceHoursandviewsPerHour. Every collected video is a charged row, also the ones you had before. - 🆕 Brand monitoring, new videos only: switch Only new videos on. Each run delivers only videos that no earlier run under that Monitoring name delivered, so
changesstays empty. Add Follow-up comments on earlier videos (with comments on) to also get new comments on the videos from earlier runs.
The monitoring memory keeps up to 200,000 videos per Monitoring name and drops the oldest first.
🛠️ If something goes wrong
- 🧾 Check the Run summary: an input with status
emptyfound nothing and cost nothing. Rows already saved stay saved and are charged, even if the run stopped early. - 🐢 If the log says Bilibili is limiting requests, run again later, lower Videos in parallel or raise Delay between requests. You can also choose Apify Proxy in the Proxy setting.
- ♻️ To retry only what is missing, run again with Skip videos from an earlier run set to the earlier dataset, so you don't pay twice for the same videos.
- 📧 If it keeps failing, open an issue with the run link (see Support and feedback).
🔌 Bilibili scraper integrations and API
Can I use this Bilibili Actor as an API?
Yes. This Actor is not a Bilibili API from Bilibili itself, but the Apify API lets you start it from code, schedule it and fetch the rows, so you can use it where you would otherwise need a Bilibili video API or a Bilibili search API. Use the apify-client NPM package for Node.js or the apify-client PyPI package for Python. The API tab has ready-to-use code.
🐍 Bilibili API Python example
from apify_client import ApifyClientclient = ApifyClient("<YOUR_API_TOKEN>")run = client.actor("insights_data/bilibili-scraper-videos-comments-danmaku-creator-uploads").call(run_input={"urls": ["美食"], "maxResults": 10})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["type"], item.get("title") or item.get("text"))
Can I send Bilibili data to other apps?
Yes. Connect the Actor with other cloud services through Apify integrations: Make, Zapier, n8n, Slack, Google Drive, Airtable and more. A webhook is a message Apify sends to a web address of your choice when a run event happens, for example when a run succeeds or fails. Webhooks fire on run events, not on each new row, and the same event can arrive more than once, so make your endpoint handle repeats.
🔁 Workflows
- 🗃️ Brand monitoring sheet: a daily scheduled task with Only new videos, then send each run's rows to Google Sheets with the Google Sheets Import & Export Actor, Make, Zapier or n8n. Your team sees new Bilibili videos and their comments every morning.
- 📇 KOL shortlist: a creator search task, then a Make or Zapier scenario that adds creator rows with
followers,avgViewsandavgEngagementRateto Airtable or your CRM. - 📲 Slack alert: a webhook on "run succeeded" posts a message with the run link to a Slack channel.
- 🐍 Sentiment pipeline: call the Actor from Python with comments on and Danmaku = Statistics on the video row, then feed the text to your own sentiment model.
Can I use the Actor with AI agents (MCP)?
Yes. AI assistants such as Claude, ChatGPT, Cursor, GitHub Copilot and VS Code can run the Actor through the Apify MCP server. MCP (Model Context Protocol) is a standard way for AI tools to call apps. The agent gets the rows with the same field names as the dataset schema. Open the MCP tab for setup steps.
🧩 Other Chinese social media scrapers
These Actors from the same account cover other Chinese platforms and video comments. Each one is a Chinese social media scraper you can combine with this Bilibili Actor for China social listening.
| Actor | What it adds |
|---|---|
| 📣 Weibo Scraper — Posts, Comments, Profiles & Hot Search | Sina Weibo posts, comments, profiles, hot search boards and KOL discovery |
| 🎵 Douyin 抖音 Video Scraper - Metadata | Douyin videos and image posts with caption, author, likes, comments and shares |
| 📕 RedNote (Xiaohongshu) Search Scraper | RedNote notes by keyword, note or creator link |
| 📌 RedNote (Xiaohongshu) Scraper - Trending Notes & Creators | Trending RedNote notes and creator stats |
| 📨 WeChat Official Account Scraper | WeChat Official Account articles and account profiles |
| 🗨️ TikTok Comments & Replies Scraper | Comments and replies from TikTok videos and profiles |
❓ FAQ
Is it legal to scrape Bilibili?
Scraping publicly available data from Bilibili is generally legal, but you should respect personal data and intellectual property rules. The Actor only reads public data that any visitor can see. Comments and creator profiles can contain personal data, which rules such as the GDPR (the EU's personal data law) and China's personal information laws protect, so only collect it with a legitimate reason, and take Bilibili's terms of service into account. This is not legal advice.
How does this Bilibili crawler work?
The Actor reads public Bilibili pages and data the way your browser does when you look at them, only in bulk. It first finds videos from your keywords, links, creators and charts, then adds details, comments, danmaku and subtitles to each video a few at a time, and saves each row as soon as it is ready. No browser is started, so the default 1 GB memory is enough.
How is Bilibili Scraper different from Weibo Scraper?
Both come from the same account and cover different Chinese platforms. Neither needs an account for public data; for Bilibili, your own cookie is needed only for subtitles and commenter locations, and Bilibili may show fewer comments to visitors who are not logged in.
| Feature | This Actor | Weibo Scraper — Posts, Comments, Profiles & Hot Search |
|---|---|---|
| 🌏 Platform | Bilibili (video) | Sina Weibo (microblog) |
| 📋 Main data | Videos, comments, replies, danmaku, creators, posts | Posts, comments, likers, profiles, fans, Black Cat complaints |
| 🔥 Trends | Popular, weekly, rankings, trending searches | Hot search boards, #topics# with read counts |
| 🤝 KOL discovery | Creator search with average views and engagement rate | KOL discovery |
| 📈 Change tracking | Growth since the last run | Change tracking |
Why scrape Bilibili data?
- 🤝 Influencer selection: creator stats such as average views and engagement rate help you choose partners.
- 🏷️ Brand and product feedback: comments and danmaku show what viewers say, down to the second of the video.
- 🔥 Trends: rankings and trending searches show what is popular on Bilibili right now.
- 🧠 Bilibili data analysis and market research: export Bilibili data as structured tables and join it with your own data.
What is the difference between a Bilibili video scraper run and a creator search?
A Bilibili video scraper run (Search for = Videos, the default) returns videos for your keywords, links and charts. A creator search (Search for = Creators (find channels by keyword)) returns creators for your keywords, each with a creator row and their recent uploads as video rows.
How to scrape Bilibili comments?
Add video links (or a keyword) to Links, keywords & charts, switch on Include comments (off by default), set Max comments per video (10 by default) and click Start. Switch on Include replies for replies as their own rows. Each comment row links back to its video with videoBvid, and pinned comments have isPinned = true.
Is there a Bilibili comment scraper that also gets replies?
Yes. With Include replies on, each reply is its own row with isThreadReply = true, rootId (the top comment it belongs to) and parentId (the comment it answers). Max replies per comment is 5 by default; 0 means all replies, and each one is a charged row.
Can I get Bilibili comments without login?
Yes, in most cases. Bilibili comments and replies are collected without login. Only the commenter's location (ipLocation) and subtitles need your own login cookie. Bilibili sometimes shows only a few comments of a video to visitors who are not logged in; the log then says so.
Can I use it as a Bilibili comments exporter?
Yes. Run it with Include comments on, then open Storage → Datasets → the run's dataset → Export, choose Excel or CSV and filter the type column for comment and reply.
What are danmaku and how do I get them?
Bilibili danmaku are the bullet comments that fly across the screen at a certain second of the video. Set Danmaku (bullet comments) to Statistics on the video row for a profile on each video row (peak minute, a per-minute timeline, top phrases, a sample), or to Statistics + one row per danmaku to also get every danmaku it reads as its own row. That second option makes the Actor a Bilibili danmaku scraper with one charged row per danmaku.
Is there a Bilibili danmaku downloader that saves bullet comments to Excel?
The Actor saves danmaku as data, not as a video overlay: with Statistics + one row per danmaku, each row has the danmaku text, the second in the video (videoTime), color, mode and sentAt, and you export them to Excel like any other row. It does not download the video itself.
How do I find Bilibili creators for influencer marketing?
Set Search for to Creators (find channels by keyword) and enter keywords. Each Bilibili creator found gets a creator row with followers, total likes, verification, live room and averages from recent uploads, plus up to Max uploads per creator of their videos as video rows (each one a charged result). Use this for Bilibili KOL discovery and compare creators by avgEngagementRate and uploadsPerWeek.
Can I get Bilibili trending videos and rankings?
Yes. Add popular for Bilibili trending videos, weekly for the weekly must-watch list, precious for the hall of fame, ranking or a category board such as ranking:music (the full list is under Charts & trending boards), and trending for trending search keywords with heatScore.
Can I export Bilibili data to Excel?
Yes. To export Bilibili data to Excel, open Storage → Datasets → the run's dataset → Export and choose Excel. CSV, JSON, XML and HTML work the same way.
Why am I getting fewer results than expected?
- 🔎 The keyword matched fewer videos, or your date, length or category filters removed them.
- 🔢 Max results per input is per keyword and video chart, and weekly, precious and ranking boards can be shorter than your limit.
- 💬 Comments are turned off on a video, or Bilibili showed only a few comments to visitors who are not logged in.
- 🆕 Only new videos or Skip videos from an earlier run skipped videos you already have.
- ⏳ The run reached the maximum charge limit or the run time limit. The Run summary says which.
📧 Support and feedback
We keep improving Bilibili Scraper. Found a bug or need another field? Please create an issue on the Issues tab and include the run link.
Need a custom solution, another Chinese platform or more data? Contact us at hello.insights.data@gmail.com.
Built and maintained by Insights Data.