Bilibili Scraper | 哔哩哔哩 B站 Video Search: Views, Likes, Replies
Pricing
from $0.60 / 1,000 video (search)s
Bilibili Scraper | 哔哩哔哩 B站 Video Search: Views, Likes, Replies
Scrape Bilibili (China's dominant video platform) by keyword, video URL or creator ID: views, danmaku, likes, coins, favorites, shares, duration and creator stats. Public API, no login, no browser needed.
Pricing
from $0.60 / 1,000 video (search)s
Rating
0.0
(0)
Developer
The Mine Works
Maintained by CommunityActor stats
0
Bookmarked
5
Total users
1
Monthly active users
a day ago
Last modified
Categories
Share
From The Mine Works, makers of Threads Scraper and B2B Leads Finder, with over 140,000 runs across 170+ public actors.
Bilibili (哔哩哔哩, B站) is China's main long form video platform, home to a huge share of Chinese product reviews, gaming, tech and creator content. This actor reads it four ways, in any mix: search videos by keyword, look up any video's full stats, get a creator's (UP主) public profile, and pull a video's danmaku (弹幕), the bullet comments that fly across the screen, each tied to the second of the video it appears at. It talks to Bilibili's own public JSON API with an anonymous visitor session, so there is no login, no browser and no proxy to pay for.
Why choose this actor?
- Search plus audience reaction in seconds. On 1 October our run of the live build returned 5 search results with full stats and 50 danmaku from a 5.5 million view video in 8 seconds. Each video row has views, danmaku count, replies, favorites and likes; a video lookup adds coins and shares.
- Danmaku are free until 15 October. Bullet comments are not a priced event yet, so they are delivered free (up to 20,000 per run). From 15 October 2026 at 07:57 UTC they cost $1.00 per 1,000 on every plan, with nothing to change on your side.
- Pay only for rows delivered. Videos and creator profiles cost $0.60 to $1.00 per 1,000 by plan, plus a $0.005 start fee per run. Lookups that find nothing, blocked lookups and the summary rows are never charged.
Part of The Mine Works Social media and video family: Threads Scraper, Reddit Scraper, Threads Search Scraper, Instagram Profile Scraper, Instagram Followers & Following, Reddit Search Scraper.
Try it in one minute
Paste this into the JSON tab of the input page and press Start:
{"keywords": ["美食"],"maxResultsPerKeyword": 10}
You get Bilibili's top 10 videos for 美食 (food) with title, creator, duration, publish time and engagement counts in a few seconds. The Console form may fill in an example video and creator for you; clear those boxes if you only want the search.
Four inputs, use any of them together:
keywords: search terms in Chinese or English. Chinese terms match far more of Bilibili's content.videoUrls: video links such ashttps://www.bilibili.com/video/BV1xx411c7mD, or bare BV IDs.creatorIds: numeric user IDs, the number in a creator'sspace.bilibili.com/<uid>link, such as546195.danmakuVideoUrls: video links, BV IDs or av numbers whose bullet comments you want.
Apify's free plan includes $5 of credit every month, which covers about 4,900 videos and profiles at this actor's Free plan price ($1.00 per 1,000 plus the $0.005 start fee per run). Danmaku are free on top of that until 15 October; after that, $1.00 per 1,000.
Copy to your AI assistant
themineworks/bilibili-scraper on Apify. Scrapes Bilibili (哔哩哔哩): keyword video search with stats, full video detail by URL or BV ID (adds coins and shares), creator (UP主) profiles by UID, and danmaku (bullet comments) per video with the second each appears at. Call ApifyClient("TOKEN").actor("themineworks/bilibili-scraper").call(run_input={...}), then client.dataset(run["defaultDatasetId"]).list_items().items. Required: at least one of keywords (string[]), videoUrls (string[] of links or BV IDs), creatorIds (string[] of numeric UIDs) or danmakuVideoUrls (string[] of links, BV IDs or av numbers). Optional: maxResultsPerKeyword (default 20, max 500), maxDanmakuPerVideo (default 1000, max 20000, 0 = whole pool), danmakuStartSec and danmakuEndSec (seconds, 0 = no limit). Rows carry record_type video-search-result, video-detail-result, creator-profile-result or danmaku; record_type "summary" and _type "info" rows are run reports, never billed. Danmaku are free until 15 Oct 2026 07:57 UTC, then $1.00 per 1,000. Full spec: GET https://api.apify.com/v2/acts/themineworks~bilibili-scraper/builds/default (Bearer TOKEN), which returns inputSchema and readme. Token: https://console.apify.com/account/integrations?fpr=ymnoit&utm_source=apify-readme&utm_medium=referral
Key features
- Four modes, one dataset. Every row says what it is in
record_type:video-search-result,video-detail-result,creator-profile-resultordanmaku. - Search as Bilibili ranks it. 20 results per page, up to 500 per keyword, each with
view_count,danmaku_count,reply_count,favorite_count,like_count, up to 10tagsand thekeywordthat found it. - Full video stats. A video lookup adds
coin_countandshare_count, which search results do not carry. - Creator profiles. Name, gender, account level,
fans_count,following_count, bio, official verification title and VIP status. - Danmaku with timing. Each bullet comment has its
text,video_time_secand a readablevideo_time_label, displaymode_label(scroll, top or bottom), color, font size, send time, Bilibili's relevanceweightand an anonymoussender_hash. Multi part videos include every part (up to 50), for up to 50 videos per run, with an optional time window. - Stops cleanly if Bilibili pushes back. A risk control answer from Bilibili stops that kind of lookup at once, with a note in the summary row, and nothing is charged for it.
How to use it
Basic: one keyword
{"keywords": ["机械键盘"],"maxResultsPerKeyword": 100}
Several keywords for a category
{"keywords": ["扫地机器人", "洗地机", "石头科技", "科沃斯"],"maxResultsPerKeyword": 60}
Each row records the keyword that found it, so you can compare how much attention each term gets.
Track a list of videos over time
{"videoUrls": ["https://www.bilibili.com/video/BV1xx411c7mD","BV1sfa965ENG"]}
Schedule this daily to follow views, coins, favorites and shares on launch videos or sponsored content. Each lookup is one row and one charge.
Creator shortlist before a sponsorship
{"creatorIds": ["546195", "8894411"]}
Compare fans_count, level and verification_title, then pull each creator's recent videos by searching their topic and filtering on author_uid.
Second by second audience reaction to a video
{"danmakuVideoUrls": ["https://www.bilibili.com/video/BV1xx411c7mD"],"maxDanmakuPerVideo": 0}
0 returns the whole current pool. Group the rows by video_time_sec to see the moments viewers react to, then read the text at the peaks. For a trailer or an ad, set danmakuStartSec and danmakuEndSec to the part you care about.
Launch monitoring: search, then react
{"keywords": ["小米17"],"maxResultsPerKeyword": 40,"danmakuVideoUrls": ["<the bvid of the top result from a first run>"],"maxDanmakuPerVideo": 2000}
Run the search first, pick the most viewed bvid, then add it to danmakuVideoUrls to read the reaction. Danmaku cost nothing until 15 October.
Input parameters
| Parameter | Type | Default | What it does |
|---|---|---|---|
keywords | array of strings | none (form prefill: cooking) | Search terms. Each returns Bilibili's ranked video results, 20 per page. |
maxResultsPerKeyword | integer (1 to 500) | 20 (form prefill: 10) | Most videos per keyword; also sets how many pages are read. |
videoUrls | array of strings | none (form prefill: one video) | Video links or BV IDs. Each returns a full detail row. |
creatorIds | array of strings | none (form prefill: 546195) | Numeric creator UIDs. Each returns a profile row. |
danmakuVideoUrls | array of strings | none | Video links, BV IDs or av numbers for danmaku. Up to 50 videos per run; repeats are removed. |
maxDanmakuPerVideo | integer (0 to 20,000) | 1000 | Cap per video. When capped, the highest weight danmaku are kept and returned in timeline order. 0 returns the whole pool. |
danmakuStartSec | integer | 0 | Only danmaku at or after this second of the video. |
danmakuEndSec | integer | 0 | Only danmaku at or before this second. 0 means the end of the video. |
"Form prefill" values fill the Console form for you but are not defaults: an API call that leaves them out sends nothing for those modes. The run uses 512 MB of memory and a 3,600 second timeout by default.
With no keywords, videos, creators or danmaku videos, the run ends at once with a summary row and charges only the start fee.
What data do you get?
All rows land in one dataset. Fields that Bilibili does not supply for a row are left out of it rather than sent as null.
Videos (video-search-result from search, video-detail-result from videoUrls): bvid and aid (Bilibili's current and older video IDs), title, description, author_name, author_uid, duration_seconds, published_at, view_count, danmaku_count (all time bullet comment total), reply_count, favorite_count, like_count, thumbnail_url, video_url, scraped_at. Search rows add tags and keyword; detail rows add coin_count and share_count.
Creators (creator-profile-result): uid, name, gender (as Bilibili shows it, such as 男 or 女), level (account level 0 to 6), fans_count, following_count, bio, verification_title, vip_status, avatar_url, profile_url, scraped_at.
Danmaku (danmaku): video_bvid, video_aid, video_title, video_url, cid and part_index (which part of a multi part video), danmaku_id, text, video_time_sec, video_time_label, mode and mode_label, font_size, color_hex and color_decimal, sent_at and sent_timestamp, pool and pool_label, sender_hash, weight, scraped_at.
Each run ends with a record_type: "summary" row (keywords searched, videos, details, profiles and danmaku delivered, danmaku_billing, danmaku_free, charged_for, and a note if Bilibili blocked a lookup) and an _type: "info" row. Neither is ever charged.
How many danmaku does a video give?
Bilibili serves each part's current display pool, not its full history. The 5.5 million view video in our runs, BV1xx411c7mD, served a pool of 3,600 while its all time danmaku_count is 128,592. Expect a few thousand per part; the video row's danmaku_count is usually much larger than the pool.
Stable fields for automations
These 17 fields were present in every search row we sampled (25 rows from our 1 and 2 October runs):
| Field | What it holds |
|---|---|
record_type | Row type |
bvid | BV video ID, the key to deduplicate on |
aid | Numeric video ID |
title | Video title |
author_name | Creator name |
author_uid | Creator UID |
duration_seconds | Length in seconds |
published_at | ISO publish time |
view_count | Views |
danmaku_count | All time danmaku count |
reply_count | Comments |
favorite_count | Favorites |
like_count | Likes |
thumbnail_url | Cover image |
video_url | Video link |
keyword | The search term that found it |
scraped_at | ISO timestamp when the row was captured |
Every danmaku row we sampled (250 rows) carried all 23 danmaku fields listed above. We will not rename these fields. New fields may be added over time; existing ones keep their names.
Output examples
Real rows from our runs on 1 and 2 October 2026, with long text trimmed.
A search result (美食):
{"record_type": "video-search-result","bvid": "BV1sfa965ENG","aid": 117357229902293,"title": "美国富人区最顶级美食!连吃24小时!老钱吃得有多离谱?","description": "各位觉得美国富人区哪餐更符合你的口味? …","author_name": "子文又饿了","author_uid": 8894411,"duration_seconds": 1409,"published_at": "2026-09-30T09:00:00.000Z","view_count": 556330,"danmaku_count": 2775,"reply_count": 755,"favorite_count": 4525,"like_count": 23994,"thumbnail_url": "https://i2.hdslb.com/bfs/archive/b5f01bd0bae0b41fed3ae68f5630403f1b6f940b.jpg","video_url": "https://www.bilibili.com/video/BV1sfa965ENG","tags": "SQD Mini LED, 国外美食, 美食探店, 美食侦探, 美国美食, TCL, 吃货, 美国, 电视, 餐厅","keyword": "美食","scraped_at": "2026-10-02T16:11:59.682Z"}
A video detail row, with coins and shares:
{"record_type": "video-detail-result","bvid": "BV1xx411c7mD","aid": 2,"title": "字幕君交流场所","description": "www","author_name": "碧诗","author_uid": 2,"duration_seconds": 2055,"published_at": "2009-09-09T01:09:09.000Z","view_count": 5529646,"danmaku_count": 128592,"reply_count": 89317,"favorite_count": 127278,"coin_count": 40730,"share_count": 28866,"like_count": 276810,"thumbnail_url": "https://i0.hdslb.com/bfs/archive/transparent.png","video_url": "https://www.bilibili.com/video/BV1xx411c7mD","scraped_at": "2026-10-02T16:12:15.655Z"}
A creator profile (UID 546195):
{"record_type": "creator-profile-result","uid": 546195,"name": "老番茄","gender": "男","level": 6,"fans_count": 20815347,"following_count": 6,"bio": "新浪微博:_老番茄_","verification_title": "2025百大UP主、2025年度商业影响力奖UP主、2022年度联合创作奖UP主","vip_status": true,"avatar_url": "http://i0.hdslb.com/bfs/face/bc5ca101313d4db223c395d64779e76eb3482d60.jpg","profile_url": "https://space.bilibili.com/546195","scraped_at": "2026-10-02T16:12:22.387Z"}
A danmaku row:
{"record_type": "danmaku","video_bvid": "BV1xx411c7mD","video_aid": 2,"video_title": "字幕君交流场所","video_url": "https://www.bilibili.com/video/BV1xx411c7mD","cid": 62131,"part_index": 1,"danmaku_id": "2198979043184136448","text": "2026年前来考古,证据:像素方块的硬核才是王道","video_time_sec": 0,"video_time_label": "0:00","mode": 1,"mode_label": "scroll","font_size": 25,"color_hex": "#FFFFFF","color_decimal": 16777215,"sent_at": "2026-09-12T16:18:49.000Z","sent_timestamp": 1789229929,"pool": 0,"pool_label": "normal","sender_hash": "d1a9555d","weight": 10,"scraped_at": "2026-10-02T16:12:49.540Z"}
The summary row of our 1 October run on Apify (5 search results charged, 50 danmaku delivered free):
{"record_type": "summary","keywords_searched": 1,"videos_from_search": 5,"video_details_delivered": 0,"creator_profiles_delivered": 0,"danmaku_videos": 1,"danmaku_videos_delivered": 1,"danmaku_delivered": 50,"danmaku_billing": "free","danmaku_free": 50,"charged_for": 5,"charge_failures": 0,"scraped_at": "2026-10-01T09:19:27.500Z"}
Pricing
Pay per event: you pay for each video and creator row delivered to your dataset, plus a small start fee per run. Danmaku are free until 15 October 2026.
Today:
| Event | Free | Bronze | Silver | Gold and above |
|---|---|---|---|---|
video-search-result, per video | $0.001 | $0.0009 | $0.00075 | $0.0006 |
video-detail-result, per video | $0.001 | $0.0009 | $0.00075 | $0.0006 |
creator-profile-result, per profile | $0.001 | $0.0009 | $0.00075 | $0.0006 |
| Any of these, per 1,000 | $1.00 | $0.90 | $0.75 | $0.60 |
| Danmaku | free (up to 20,000 per run) | free | free | free |
apify-actor-start, per run | $0.005 per GB of run memory, minimum one event | same | same | same |
From 15 October 2026 at 07:57 UTC (13:27 IST): everything above stays the same, and danmaku become a priced event, danmaku-scraped, at $0.001 each ($1.00 per 1,000) on every plan. The 20,000 per run limit then gives way to your run's own spending cap. The summary row's danmaku_billing says free or billed for each run.
The start fee, exactly. Apify's apify-actor-start event is charged once when a run starts, at $0.005 for each GB of memory the run uses, with a minimum of one event. This actor runs on 512 MB by default, so a default run pays the minimum, $0.005.
Worked examples on the Gold tier: 500 search results cost $0.30 plus $0.005. Stats for 100 tracked videos cost $0.06 plus $0.005. The whole danmaku pool of 10 videos (about 30,000 rows) is free in two runs today, or $30.00 plus the start fee from 15 October.
Never charged: lookups that find nothing, blocked lookups, and the summary and info rows. A run that finds nothing pays only the start fee.
The Pricing tab on this page always shows the rate for your own plan and any scheduled change; if it and these tables ever differ, the Pricing tab is right.
FAQ
What is Bilibili? Bilibili (哔哩哔哩, often called B站) is one of China's largest video platforms, closest to YouTube in what it hosts, with a young audience and a strong culture of product reviews, gaming, anime, tech and how to videos. Its signature feature is danmaku, comments that scroll across the video at the moment they refer to.
Do I need a Bilibili account, cookies or an API key? No. You need only an Apify account. Each run starts the way a first time visitor's browser does: it picks up the anonymous visitor cookies Bilibili's homepage sets, then signs its search and video requests the way Bilibili's own web page does. It never signs in.
Does it need a proxy? No. It calls Bilibili's public API directly from Apify, with no proxy and no browser, which is why it is quick and cheap. If Bilibili answers with a risk control code, the actor stops that kind of lookup, notes it in the summary and charges nothing for it.
How many results can I get? Up to 500 videos per keyword (25 pages of 20), any number of video and creator lookups, and danmaku for up to 50 videos per run (up to 20,000 per video). Free danmaku are limited to 20,000 per run until 15 October.
How fresh is the data?
Every run reads Bilibili live. Counts are as of scraped_at.
Can I search in English? Yes, but most of Bilibili's content is in Chinese, so Chinese keywords return far more relevant videos.
Are danmaku the same as comments?
No. Danmaku fly across the video while it plays, each tied to a second of the timeline. Comments (评论) sit below the video; this actor returns their total as reply_count, not the comments themselves.
Who sent each danmaku? Bilibili publishes only an anonymous sender hash, so that is all you get: no user names and no profiles on danmaku rows.
Can I run it on a schedule?
Yes. Save your input as a task, then in Apify Console open Schedules, choose Create new and pick a time or a cron expression such as 0 8 * * *. The actor does not remember earlier runs, so to follow videos over time keep their bvid and compare each day's counts.
How do I export the data?
From the run's Storage tab as JSON, CSV, Excel, XML or HTML, or through the Apify API. Filter on record_type to split videos, profiles and danmaku.
Can I use it from Claude, ChatGPT or another AI assistant?
- Connector URL:
https://mcp.apify.com/?tools=themineworks/bilibili-scraper. - Claude: Settings > Connectors > Add custom connector, paste the URL, sign in with Apify.
- ChatGPT: developer mode, add an MCP connector with the URL, sign in with Apify.
- Cursor or VS Code: add it as an HTTP MCP server with that URL.
- Claude Code:
claude mcp add -t http bilibili-scraper "https://mcp.apify.com/?tools=themineworks/bilibili-scraper".
Is it legal to scrape Bilibili? The actor reads only public data that any logged out visitor can see: video stats, public creator profiles and danmaku with anonymous sender hashes. Video titles, descriptions and danmaku text can still contain personal data or copyrighted text, so you are responsible for how you use what it returns, including Bilibili's terms and laws such as China's Personal Information Protection Law (PIPL), GDPR and CCPA. This is general information, not legal advice.
Integrations
- Google Sheets: export a run to a sheet, or append each scheduled run's video stats.
- Make, Zapier and n8n: use the Apify app or node to start a run and send results to Slack, a dashboard or a database.
- Webhooks: have Apify call your URL when a run succeeds, then fetch the dataset.
- API and client libraries: start runs and read datasets from Python, JavaScript or any HTTP client. The "Copy to your AI assistant" block above has the exact call.
- MCP clients: Claude, ChatGPT, Cursor, VS Code and other MCP clients can call the actor through
https://mcp.apify.com.
More from The Mine Works
Social media and video
- Threads Scraper
- Reddit Scraper
- Threads Search Scraper
- Instagram Profile Scraper
- Instagram Followers & Following
- Reddit Search Scraper
- Twitter / X Scraper
- YouTube Transcript
- Xiaohongshu (RED) Scraper
- Telegram Channel Scraper
- Telegram Channel Finder
- Pinterest Profile Scraper
Leads and business directories
Marketing, SEO and reviews
Real estate
Science, health and government data
Jobs and hiring
Company and business data
E-commerce and marketplaces
Food and local services
Developer and AI tools
More tools
Support
Found a bug or need a field we do not return yet? Open an issue on the Issues tab of this page and we will reply there. To ask for a new Chinese platform or data source, email dmineworks@gmail.com.
Bilibili Scraper turns Bilibili searches, video links, creator IDs and danmaku into clean rows with full engagement stats, with no login and no proxy, and danmaku free until 15 October 2026.

