📺 Bilibili Search, Video & Danmaku Scraper (B站采集)
Pricing
$10.00 / 1,000 results
📺 Bilibili Search, Video & Danmaku Scraper (B站采集)
Scrape Bilibili (哔哩哔哩) videos by keyword search or BV/AV ID, creator uploads, comments, and bullet comments (弹幕). $0 Actor Start Fee — structured JSON/CSV export.
Pricing
$10.00 / 1,000 results
Rating
0.0
(0)
Developer
Jackie Chen
Maintained by CommunityActor stats
0
Bookmarked
8
Total users
0
Monthly active users
89 days
Issues response
3 days ago
Last modified
Categories
Features
Share
Bilibili Scraper
⚡ $0 Actor Start Fee — Pay only for delivered results. Free-plan users can run a 1-page live trial preview automatically.

Scrape Bilibili (哔哩哔哩 / B站) by keyword search, creator uploads, video comments, and danmaku (bullet chat). Returns clean, structured data for each record: titles, play / like / danmaku / favorite / comment counts, author info, cover image, video URL, comment text, and danmaku content with timing.
Unofficial. This Actor is not affiliated with, authorized, or endorsed by Bilibili (Shanghai Kuanyu / 上海宽娱数码科技). It is an independent tool that retrieves publicly available data via a third-party API. Use it in compliance with Bilibili's terms and all applicable laws; you are responsible for how you use the retrieved data.
Video data
Select a mode to export public video data. A video detail row can include its creator profile, tags, related videos and up to ten top comments. The existing result price applies once per delivered row. Attached records are included in that row.
{"mode": "video_detail","videoUrls": ["https://www.bilibili.com/video/BV1DYjA6KEJ7"],"includeTags": true,"includeRelated": true,"includeHotComments": true,"creatorProfileDetail": "full"}
| Mode | Inputs | Output |
|---|---|---|
video_detail | videoUrls with BV IDs or full links | Video identity, engagement, duration, resolution, publication time and selected enrichments |
popular | maxResults | Videos in the current popular feed, in feed order |
comments | videoUrls, maxComments | One public top-level comment per row, with visible nested reply previews |
search | keywords, sortOrder, maxResults | Matching videos per keyword |
user_videos | userIds (UIDs or creator links), sortOrder, maxResults | Uploads per creator |
Video details, popular videos and comments read Bilibili's public responses directly. When an optional detail lookup fails, its name appears in unavailableEnrichments. Availability, including the number of public comments and nested replies, depends on Bilibili. Search and upload listings use TikHub. The listing modes accept a duration range and inclusive publication dates (pubtimeBegin, pubtimeEnd, China Standard Time). Set maxSourcePages to bound pagination and maxItems for a run-wide row limit. Empty and duplicate records have no result charge.
An existing task that passes videoUrls without selecting a mode continues to return danmaku.
Bullet comments by video
Pass videoUrls to read the XML comments made available on a public Bilibili video page. This mode uses Bilibili directly and takes precedence over search inputs. You can use a full video URL, a BV ID, or a URL with ?p=2 for a single part of a multipart video.
{"videoUrls":["BV1GJ411x7h7"],"startSec":5,"endSec":45,"maxDanmaku":20}
The interval includes both endpoints and uses the playback time within each part. maxDanmaku applies across parts per video. Repeated video and part inputs are fetched once. Each delivered comment records one existing result event. The public XML feed is a snapshot of visible comments and can omit older entries. For a private or unavailable video, the Actor reports the lookup failure.
What it does
Four modes run in order, all sharing one maxItems budget:
- Keyword search — give one or more keywords; the Actor paginates Bilibili comprehensive search results for each. Sort by comprehensive / latest / most played / most danmaku / most favorited.
- Creator uploads — give one or more creator UIDs (the numeric
mid) to scrape the videos they have uploaded. - Video comments — give one or more video
BVIDs to scrape their top-level comments. - Danmaku — give one or more video
cids to scrape the bullet-chat overlay messages.
Input
| Field | Type | Default | Description |
|---|---|---|---|
searchKeywords | string[] | ["编程"] | Keywords to search. Each is paginated independently. Chinese keywords return the most results. |
searchOrder | enum | comprehensive | comprehensive / pubdate (latest) / click (most played) / dm (most danmaku) / stow (most favorited). |
userIds | string[] | [] | Creator UIDs (numeric mid) whose uploaded videos to scrape. |
bvIds | string[] | [] | Video BV IDs whose top-level comments to scrape (e.g. BV1rpWjevEip). |
cids | string[] | [] | Video segment cids whose danmaku to scrape. |
maxItems | integer | 50 | Max total items across all targets. |
Example input
{"searchKeywords": ["编程", "python"],"searchOrder": "click","userIds": ["3546597933714079"],"bvIds": ["BV1rpWjevEip"],"maxItems": 200}
Output
One dataset item per record. Videos:
{"id": "BV1rpWjevEip","bvid": "BV1rpWjevEip","aid": 113006243481679,"type": "video","title": "目前B站最全最细的Python零基础全套教程","url": "https://www.bilibili.com/video/BV1rpWjevEip","coverUrl": "https://i2.hdslb.com/bfs/archive/...jpg","duration": "2398:14","playCount": 16634964,"danmakuCount": 111398,"likeCount": 410099,"favoriteCount": 653700,"author": { "uid": 3546597933714079, "name": "Python官方课程" },"categoryName": "计算机技术","pubdate": 1724338758,"source": "search:编程"}
Comments (type: "comment") carry content, likeCount, replyCount, author, ctime.
Danmaku (type: "danmaku") carry content, videoTime (seconds into the video),
sendTime, color, mode, cid.
Notes
- Data is sourced live; Bilibili occasionally rate-limits, so the Actor retries transient blocks with exponential backoff.
- IDs are de-duplicated within a run.
- A video's
cid(needed for danmaku) is part of its video detail / parts data.