Bilibili Comments Scraper: Replies, Danmaku (哔哩哔哩, B站评论)
Pricing
from $0.15 / 1,000 comments
Bilibili Comments Scraper: Replies, Danmaku (哔哩哔哩, B站评论)
Scrape Bilibili comments, replies and danmaku logged out: every comment of a video to the list's end, plus video stats. Give video links, BV ids, search words, creators or the popular board. One row per comment: text, likes, replies, the commenter's level and VIP. Misses free.
Pricing
from $0.15 / 1,000 comments
Rating
0.0
(0)
Developer
Hyperbach
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Features
Share
Every comment and reply of a Bilibili video, as data, logged out — plus the video's stats and its danmaku. Give video links (www, mobile, b23.tv, a BV or av id), search words, creators or the popular board and get one row per comment — the text, the time, the likes, the reply count, the commenter's public name, mid, level, VIP and verification, the emotes, pictures, mentions and links — and, when you ask, every reply as its own row with its root and parent, one row per video (views, likes, coins, favorites, shares, danmaku and comment counts) and a danmaku profile per video. Bilibili's comment count includes comments it does not serve; this Actor reads the list to its own end, reads that end twice, and each input gets a free row that says what was read against the count. No login, no cookie, proxies handled for you.
From $0.30 per 1,000 rows (comment) on the Free plan, $0.25 on Starter; every row and add-on is priced under Pricing below. A run start is $0.0034. The default input returns about 52 rows for about $0.0187. A missing or hidden video, comments turned off, a selected-comments area, a video with no comment or a value that names nothing is a free row that says why.

How it compares
- zhorex's Bilibili Scraper cannot do this job: it returned 24 comments, where another side returned 50.
- lofomachines's Bilibili Scraper 哔哩哔哩采集器 returned nothing for this job: this Actor returned 50 comments.
Measured on 2026-11-13. Each line compares one job, run by both scrapers at the same time. Prices are per 1,000 comments: Apify Actors at the Scale plan's prices.
Tested head-to-head on 2026-11-13
The job: the first 50 comments of one Bilibili video by link, hot order, no replies (the input form's example); this Actor adds the video's own row. Every Actor ran on it the same day from the same harness; every run's cost is at the Scale plan's prices: a rival's charged events at its price for that plan, this Actor's at its list price. Fields counts the filled fields of a typical row. Every actor read the same video's first 50 comments in the same minute; the leader's run was stopped by our $0.50 test budget (its price is $0.02 a comment), and ours adds the video's own row. Re-measured monthly.
| Actor | Rows | First row | Run time | Cost | Fields | Failures |
|---|---|---|---|---|---|---|
| this Actor | 50 | 4.0 s | 5.9 s | $0.015 | 31 | none |
zhorex/bilibili-scraper | 24 | 6.6 s | 6.7 s | cannot | 15 | cannot: returned 24 comments, where another side returned 50 |
lofomachines/bilibili-scraper | 0 | — | 1.7 s | $0.0001 | — | no rows |
Why this Bilibili comments scraper
- The whole list, logged out. A logged-out reader of Bilibili's page sees three comments; the comment list this Actor reads serves the whole top level with no cookie at all (906 of 906 on our first test video, in both orders), and every reply by its own thread (1,524): 2,430 rows, Bilibili's own count.
- The count, named honestly. Bilibili's comment count includes replies and comments it does not serve: on our second test video the list served 1,980 of a count of 2,026. Each input row says
COMPLETEonly when the served rows reach the count,LIST_ENDwith both figures when the list ended under it (read a second time from a fresh connection first),CAPPEDat your limit,DATE_LIMITat your window's bound. - Replies as rows, linked. With
includeReplieseach reply is its own comment row right after its comment, withrootRpidandparentRpid; the replies come from the list's own previews when they hold the whole thread (no extra call) and from the thread's own pages otherwise. - Hot or newest, said on the row.
sortCommentshot (Bilibili's ranking) or newest first; the leader'stimeandlikesare read as newest and hot, because Bilibili has no likes order. A video whose hot list is empty on its first page while its count says thousands is read in the newest order, and the input row says so. - Every video form, and the videos around them. Web and mobile links, b23.tv short links (the part you named is kept), bare BV and av ids; a keyword search with every order of the leader's enum (relevance, plays, newest, danmaku, favorites, comments) and its length and date filters; a creator's videos newest first (683 of 683 on our test creator); the popular board. Each video is a row;
includeCommentsreads their comments too. - Danmaku as a profile, or as rows.
includeDanmakugives one profile row per video — the danmaku kept of the video's total, unique senders, the rate per minute, the peak minute, the counts per minute, the most repeated texts and a sample over the timeline — andmaxDanmakudelivers each danmaku as its own row. Bilibili serves its live pool (3,600 of 4,643 on our test video), and the profile says kept of total. - Free rows, not charged ones. A missing video (checked on a second connection first), a hidden one, comments turned off, a selected-comments area, a video with no comment, a value that names nothing: one free row each, with Bilibili's own answer. A comment is delivered and charged once a run, across pages, orders and inputs.
- Plain HTTP, no browser, no account, fast. Bilibili's own logged-out answers through datacenter connections, residential ones behind them; a dead, refused or slow connection is left at once and the walk goes on where it was. On Apify (2026-11-13, 256 MB) a video's first 50 comments and its row were out 3.6 to 6.2 seconds after the start on nine runs of versions 0.1.2 to 0.1.5 (the head-to-head run below among them), the first row 3.0 to 5.5 seconds after the start; 200 comments and the row 6.3 and 7.1 seconds on two runs of version 0.1.2; and a video's 910 comments to the list's end 16.5 to 20.9 seconds on versions 0.1.2 and 0.1.3.
Who it's for
- Brand and marketing teams in China — read what Bilibili viewers say under a campaign's videos, with likes and replies, and track it by video.
- Researchers and analysts — collect a video's whole comment list with its threads for discourse, sentiment or fandom studies, with the count it is measured against.
- Creators and agencies — watch the comments and the danmaku peaks of a creator's videos and of the popular board.
- Data teams — feed comments, video stats and danmaku into a warehouse with one stable row shape and typed fields.
Quick start
Basic — newest postings
{"maxItems": 10}
Switching from zhorex/bilibili-scraper?
Your input works as it is. Each name in the left column is read as this Actor's own field and the run log says so (read <theirs> as <ours>); a name marked not read is ignored with a note. A value in the other Actor's shape, an object list or its own date form, is read too.
| zhorex/bilibili-scraper | this Actor | what to know |
|---|---|---|
mode | mode | An optional input of the same name: popular turns popular on, video_detail sets maxComments 0, search, video_comments and user_videos follow the inputs you fill; user_profile is not read. |
searchQuery | searchQueries | One search per item; the leader's single string is read as one item. |
autoLocalize | not read | Not read: Bilibili's search matches the words you give; add every spelling to searchQueries. |
searchAliases | not read | Not read: put every alias in searchQueries (one search each). |
sortOrder | sortOrder | The same values: totalrank, click, pubdate, dm, stow, scores (every one is honoured by the source). |
durationFilter | durationFilter | The same values: any, short, medium, long, verylong. |
pubtimeBegin | pubtimeBegin | A date (2026-11-01), a date and time, or a relative time (30 days). |
pubtimeEnd | pubtimeEnd | As pubtimeBegin; a bare date counts the whole day. |
deltaMode | not read | Not read: no memory between runs in this version; the newest order with commentsNewerThan re-reads only the comments after a date. |
deltaStateKey | not read | Not read (no memory between runs). |
videoUrls | videoUrls | Video links of every form, b23.tv links and bare BV or av ids. |
userIds | userIds | A creator's mid or space link; the videos come newest first. |
category | not read | Not read: Bilibili's ranking by category refuses a logged-out reader; popular reads the popular board, which has no category. |
maxResults | maxVideos | Videos per search, creator or board, at most 1,000. |
includeComments | includeComments | The comments of every video a search, creator or the board gives; video links always get theirs. |
includeReplies | includeReplies | Every reply as its own comment row after its comment. |
followUpComments | not read | Not read: no follow-up of earlier runs' threads in this version. |
includeDanmaku | includeDanmaku | One danmaku profile row per video; maxDanmaku adds each danmaku as a row. |
danmakuSampleSize | danmakuSampleSize | Texts in the profile's sample, 0 to 500. |
maxComments | maxComments | Rows per video, replies included; 0 = the video's row only. |
sortComments | sortComments | hot or newest; time is read as newest and likes as hot. |
sentimentAnalysis | sentimentAnalysis | A score from -1 to 1 with a confidence and a label on each comment. |
What differs:
modeis optional here: the inputs you fill decide the job. The leader'smodeis read all the same:popularturns the popular board on,video_detailgives the video row with no comments, anduser_profileis not read (this Actor reads a creator's videos, not the profile).maxResultsis read asmaxVideos(at most 1,000 a search: Bilibili serves no more),searchQueryas one item ofsearchQueries.maxCommentscounts every row of a video, replies included, as the leader counts them; its default here is 100 and its maximum 100,000 (the leader's 1,000).sortCommentstimeis read as newest andlikesas hot: Bilibili has no likes order and its hot order ranks mostly by likes.- The leader's comment keys are kept with their names (
commentId,text,likeCount,replyCount,createdAt,createdTimestamp,authorName,authorMid,authorAvatar,authorLevel,videoBvid,rootRpid,isThreadReply,scrapedAt,type), and so are its 22 video keys; ids are strings here (a mid can pass what a JSON number holds). - Danmaku: the leader's
danmaku-profilerow istypedanmaku-profile here, andmaxDanmakuadds each danmaku as its own row. - Each input gets a free row with its verdict against Bilibili's count; a missing or closed video is a free row, not a charged item.
Output
One row per comment or reply, per video, per danmaku profile and (when asked) per danmaku, and one free row per input; the type column says which.
| field | meaning |
|---|---|
type | comment (charged), video (charged), danmaku-profile (charged), danmaku (charged), or input: an input's free row. |
status | ok on a delivered row; on an input row ok or why it gave no row: not_found, hidden, comments_closed, no_comments, selected_only (the uploader screens comments), invalid_input, refused (no connection was served), failed, not_read (the run stopped first). |
input | The value you gave that this row answers (a link, an id, the search words, a creator, popular). |
commentId | The comment's id (rpid), as text. |
text | The comment's (or the danmaku's) text, emote codes like [doge] included. |
createdAt | When the comment was posted (ISO 8601, UTC). |
createdTimestamp | When the comment was posted (Unix seconds). |
timeDescription | Bilibili's own wording of the time, as the page shows it (e.g. 18小时前发布). |
likeCount | Likes of the comment; on a video row the video's likes. |
replyCount | On a comment: the replies Bilibili serves under it (rcount). On a video: Bilibili's comment count, replies included. |
replyCountTotal | The replies Bilibili counts under the comment (count), which can include replies it does not serve. |
rootRpid | The thread's top comment: a top-level comment names itself, a reply names its root. |
parentRpid | A reply's parent comment (empty on a top-level comment). |
isThreadReply | true on a reply, false on a top-level comment. |
isPinned | true on the comment the uploader pinned (delivered once: first in the hot order, at its own time in the newest). |
isUploader | true when the commenter is the video's uploader. |
likedByUploader | true when the uploader liked the comment. |
repliedByUploader | true when the uploader replied to the comment. |
authorName | The commenter's public name; on a video row the uploader's name. |
authorMid | The commenter's (on a video row the uploader's) Bilibili mid, as text. A co-created video on a creator's list names its owner: null when the owner is another creator (that list does not give the owner's mid). |
authorKey | With pseudonymizeAuthors: a stable hash of the commenter for your account, in place of the name, mid and avatar. Each @name in text becomes @ and the same key. |
authorLevel | The commenter's account level (0-6). |
authorAvatar | The commenter's avatar picture. |
authorSex | The gender the commenter shows (男, 女, or 保密 when not shown), as Bilibili gives it. |
authorVip | true when the commenter's VIP is active now (an expired VIP is false). |
authorVerified | true when the commenter carries Bilibili's verification. |
authorVerifiedDesc | The verification's own words (e.g. bilibili 知名游戏UP主). |
authorFanMedal | The commenter's fan medal shown on the comment: name and level; empty when none. |
emotes | The emotes in the comment: code (e.g. [笑哭]) and the picture's url. |
pictures | Pictures attached to the comment: url, width, height. |
mentions | Users the comment mentions: mid and name (with pseudonymizeAuthors a key instead). |
links | The words Bilibili turned into search or video links in the comment. |
analysis_sentiment | With sentimentAnalysis: the comment's sentiment from -1 (negative) to 1 (positive). |
analysis_confidence | With sentimentAnalysis: the model's confidence in the score (0-1), by question. |
sentimentLabel | With sentimentAnalysis: positive (above 0.2), negative (below -0.2) or neutral. |
videoBvid | The BV id of the video the row belongs to. |
videoAid | The av id (aid) of the video the row belongs to. |
videoUrl | The page of the video the row belongs to. |
videoTitle | The title of the video the row belongs to (the record's, or its search, creator or popular row's). |
orderServed | The comment order this row was read in: hot or newest. |
bvid | A video row's BV id. |
aid | A video row's av id (aid). |
url | A video row's page. |
title | A video row's title (the search's highlight marks removed). |
description | A video row's description (a search gives it shortened). |
viewCount | A video's plays. |
coinCount | A video's coins (from its record; empty on a search or creator row). |
favoriteCount | A video's favorites. |
shareCount | A video's shares (from its record; empty on a search or creator row). |
danmakuCount | A video's danmaku count. |
authorFace | The uploader's avatar picture on a video row. |
publishDate | When the video was published (ISO 8601, UTC). |
publishTimestamp | When the video was published (Unix seconds). |
duration | The video's length in seconds. |
durationFormatted | The video's length as minutes:seconds. |
category | The video's category as Bilibili names it (on a search, creator or popular row; a video link's record names none to a logged-out reader). |
tags | The video's tags (on a search row). |
thumbnailUrl | The video's cover picture. |
parts | The video's parts (from its record): page, cid, title, duration. |
rank | A video's position in its search, creator list or the popular board. |
videoSource | Where a video row came from: video (your link), search, creator or popular. |
danmakuId | A danmaku's own id. |
videoTimeSec | The second of the video the danmaku appears at. |
mode | The danmaku's display mode (1-3 scrolling, 4 bottom, 5 top, 7 advanced). |
fontSize | The danmaku's font size. |
color | The danmaku's colour as #rrggbb. |
colorDecimal | The danmaku's colour as Bilibili gives it (a decimal number). |
sentAt | When the danmaku was sent (ISO 8601, UTC). |
sentTimestamp | When the danmaku was sent (Unix seconds). |
pool | The danmaku's pool (0 ordinary, 1 subtitle, 2 special). |
senderHash | Bilibili's own hash of the sender (not the mid). |
weight | The danmaku's weight as Bilibili gives it. |
part | The part of the video the danmaku belongs to. |
cid | The part's cid. |
danmakuKept | Danmaku in the profile: Bilibili's live pool of the parts read (in your window when you set one). |
danmakuTotal | The video's own danmaku count, when every part was read with no window (the pool keeps fewer). |
poolCap | The live pool's cap per part as Bilibili states it. |
uniqueSenders | Distinct senders (by Bilibili's hash) in the profile. |
danmakuPerMinute | Danmaku per minute over the seconds read: your window's length in each part read (rateDurationSec). |
rateDurationSec | The seconds the rate is computed over (the parts read, cut to your window). |
peakMinute | The minute of the video with the most danmaku (0 = the first minute). |
peakMinuteCount | Danmaku in the peak minute. |
firstDanmakuSec | The second of the first danmaku (the earliest over every part read). |
lastDanmakuSec | The second of the last danmaku (the latest over every part read). |
minuteCounts | Danmaku per minute of the video: entry i is minute i, from minute 0 to the last minute read (a window from 300 s has its counts from entry 5; with allParts the parts' minutes are added). |
topPhrases | The ten most repeated danmaku texts: text, count. |
danmakuSample | Danmaku spread evenly over the timeline in time order (danmakuSampleSize): videoTimeSec, text. |
partsRead | The parts whose danmaku the profile holds. |
inputKind | On an input row: video, short (a b23.tv link), search, creator, popular or invalid. |
verdict | On an input row: COMPLETE (the served rows reached Bilibili's count), LIST_END (the list ended under the count, both figures in note), CAPPED (maxComments or maxVideos), DATE_LIMIT (your window's bound), PARTIAL (a refusal or the run's stop: note says why), VIDEO_ONLY (maxComments 0), DUPLICATE (read once already). |
note | Why an input row has its status or verdict, in words, with Bilibili's own answer and the figures. |
allCount | On an input row: Bilibili's comment count for the video (replies included). |
rootsDelivered | On an input row: top-level comments delivered. |
repliesDelivered | On an input row: replies delivered. |
videosDelivered | On an input row: video rows delivered. |
danmakuDelivered | On an input row: danmaku rows delivered. |
rowsDelivered | On an input row: every charged row it delivered. |
secondReadAgreed | On an input row: true when the list's end was read again on a fresh connection and agreed; empty when no second read was needed. |
orderAsked | On an input row: the comment order you asked (sortComments). |
scrapedAt | When this row was read (UTC). |
Example record:
{"type": "comment","status": "ok","input": "https://www.bilibili.com/video/BV1bmTb6EEs8","commentId": "304812248257","text": "游戏里其实还有更多让人san值狂掉的变异物种[辣眼睛],,茄哥现在钓到的只能算轻量级","createdAt": "2026-07-04T07:28:15+00:00","createdTimestamp": 1783150095,"timeDescription": "131天前发布","likeCount": 3695,"replyCount": 30,"replyCountTotal": 36,"rootRpid": "304812248257","parentRpid": null,"isThreadReply": false,"isPinned": false,"isUploader": false,"likedByUploader": false,"repliedByUploader": false,"authorName": "用户A","authorMid": "100000001","authorKey": null,"authorLevel": 4,"authorAvatar": "https://i0.hdslb.com/bfs/face/member/noface.jpg","authorSex": "女","authorVip": false,"authorVerified": false,"authorVerifiedDesc": null,"authorFanMedal": null,"emotes": [{"code": "[辣眼睛]","url": "https://i0.hdslb.com/bfs/emote/35d62c496d1e4ea9e091243fa812866f5fecc101.png"}],"pictures": [{"url": "https://i0.hdslb.com/bfs/new_dyn/a2009dff72d301604bfa1bb7fa2c6d2e601088393.jpg","width": 500,"height": 281}],"mentions": [],"links": [],"analysis_sentiment": null,"analysis_confidence": null,"sentimentLabel": null,"videoBvid": "BV1bmTb6EEs8","videoAid": 116856530670902,"videoUrl": "https://www.bilibili.com/video/BV1bmTb6EEs8","videoTitle": "我钓到了……什么东西……??","orderServed": "hot","bvid": null,"aid": null,"url": null,"title": null,"description": null,"viewCount": null,"coinCount": null,"favoriteCount": null,"shareCount": null,"danmakuCount": null,"authorFace": null,"publishDate": null,"publishTimestamp": null,"duration": null,"durationFormatted": null,"category": null,"tags": null,"thumbnailUrl": null,"parts": null,"rank": null,"videoSource": null,"danmakuId": null,"videoTimeSec": null,"mode": null,"fontSize": null,"color": null,"colorDecimal": null,"sentAt": null,"sentTimestamp": null,"pool": null,"senderHash": null,"weight": null,"part": null,"cid": null,"danmakuKept": null,"danmakuTotal": null,"poolCap": null,"uniqueSenders": null,"danmakuPerMinute": null,"rateDurationSec": null,"peakMinute": null,"peakMinuteCount": null,"firstDanmakuSec": null,"lastDanmakuSec": null,"minuteCounts": null,"topPhrases": null,"danmakuSample": null,"partsRead": null,"inputKind": null,"verdict": null,"note": null,"allCount": null,"rootsDelivered": null,"repliesDelivered": null,"videosDelivered": null,"danmakuDelivered": null,"rowsDelivered": null,"secondReadAgreed": null,"orderAsked": null,"scrapedAt": "2026-11-13T03:22:21+00:00"}
Pricing
Pay for the rows a run delivers, plus one run start. No platform usage is billed to you, and the prices fall with your Apify plan.
| event | unit | Free | Starter | Scale | Business |
|---|---|---|---|---|---|
Comment (comment) | per 1,000 | $0.30 | $0.25 | $0.21 | $0.15 |
Video (video) | per 1,000 | $2.00 | $1.70 | $1.40 | $1.00 |
Danmaku profile (per video) (danmaku-profile) | per video | $0.05 | $0.0425 | $0.035 | $0.025 |
Danmaku (danmaku) | per 1,000 | $0.022 | $0.022 | $0.022 | $0.022 |
Run start (start) | per run | $0.0034 | $0.0034 | $0.0034 | $0.0034 |
A comment is $0.30 per 1,000 on the Free plan ($0.0003 a comment) and $0.25 on Starter; a reply is a comment row at the same price. A video row (from your link's record, a search, a creator or the popular board) is $2.00 per 1,000 on the Free plan. With includeDanmaku, a video's danmaku profile is $0.05 on the Free plan, and with maxDanmaku each danmaku row is $0.022 per 1,000 ($0.000022 a danmaku). Each run that delivers a charged row also pays the run start, $0.0034 once; a run that delivers none pays nothing at all. So the default input (a video's first 50 comments and its row) costs $0.0204 on the Free plan and $0.0176 on Starter. Free: every input's status row with its verdict, a missing or hidden video, comments turned off, a selected-comments area, a video with no comment, a value that names nothing, a video or comment another input already delivered (one row, one charge), comments a filter or the date window leaves out, and the sentiment columns. A run that stops early (a timeout, an abort, your charge limit) is charged for the rows it delivered.
Before the first request the log names the prices at your plan and the most the run can cost: maxComments and maxDanmaku a video, maxVideos a search, creator or board, maxItems over the whole run, and never more than your charge limit. Enterprise plans have their own rates — the Actor's Pricing tab shows the price for your plan.
Usage patterns
- The first 50 comments of a video —
videoUrlswith the link andmaxComments50: 50 comment rows in Bilibili's hot order, the video's row, and the input's free row. - Every comment and reply —
maxCommentsabove the video's count withincludeReplies: the whole list and every thread; the input row says COMPLETE or LIST_END against Bilibili's count. - Comments since a date —
commentsNewerThan7 days: the walk reads the newest order and stops at the bound; nothing outside the window is charged. - A search and its videos' comments —
searchQuerieswithmaxVideos20 andincludeCommentswithmaxComments50: 20 video rows and up to 50 comments under each. - A video's danmaku peaks —
includeDanmakuwithmaxComments0: one profile row with the rate per minute, the peak minute and a sample over the timeline.
Input configuration
| field | type | default | what it does |
|---|---|---|---|
videoUrls | array | [] | Bilibili videos whose comments you want: a link (www.bilibili.com/video/BV…, /video/av…, m.bilibili.com, a b23.tv short link) or a bare BV or av id. ?p=2 picks the part for the danmaku. A value that names no video gets a free row that says why. |
searchQueries | array | [] | Words to search Bilibili's videos for (one search per line). Each video found is a row; turn on includeComments to read each found video's comments too. The source serves at most 1,000 results a search. |
userIds | array | [] | Creators whose videos you want, newest first: a numeric mid or a space.bilibili.com/ |
popular | boolean | false | Read Bilibili's popular board (the videos it lists now). Each video is a row; turn on includeComments to read their comments too. |
maxComments | integer | 100 | The most comment rows of one video, replies included. 0 = no comments (the video's row only). For every comment, give a number above the video's comment count: the input row then says COMPLETE or LIST_END against the source's own count. |
sortComments | hot / newest / time / likes | "hot" | Hot (the source's ranking, mostly by likes) or newest first. time and likes are read as newest and hot: the source has no likes order. A date window always reads the newest order. |
includeReplies | boolean | false | Every reply as its own comment row, right after its comment, with rootRpid and parentRpid. Replies count toward maxComments. |
maxRepliesPerComment | integer | 0 | With includeReplies: the most replies of one comment. 0 = all of them. |
includeComments | boolean | false | Read the comments of every video a search, a creator or the popular board gives (up to maxComments each). Video links always get their comments. |
maxVideos | integer | 50 | The most video rows of one search, one creator or the popular board (at most 1,000: the source serves no more a search). |
includeVideoDetails | boolean | true | For a video link: read the video's own record, deliver its row (views, likes, coins, favorites, shares, danmaku and comment counts, parts) and put its title on every comment row. Off: comment rows only, videoTitle empty. A searched, creator or popular video's row comes from its list. |
sortOrder | totalrank / click / pubdate / dm / stow / scores | "totalrank" | The order of a search's results, as the source sorts them. |
durationFilter | any / short / medium / long / verylong | "any" | Only videos of this length in a search. |
pubtimeBegin | string | Only videos published on or after this date in a search: 2026-11-01, 2026-11-01T08:00:00Z or 30 days. | |
pubtimeEnd | string | Only videos published on or before this date in a search (a bare date counts the whole day). | |
includeDanmaku | boolean | false | One danmaku profile row per video: the danmaku kept of the video's total, unique senders, the rate per minute, the peak minute, the counts per minute, the most repeated texts and a sample over the timeline. The source serves its live pool (3,600 of 4,643 on our test video), not the whole history. |
maxDanmaku | integer | 0 | With includeDanmaku: also deliver up to this many danmaku of each video as their own rows (the text, the second in the video, mode, colour, size, send time, the sender's hash). 0 = the profile only. |
danmakuSampleSize | integer | 25 | Texts in the profile's sample, spread evenly over the timeline. |
allParts | boolean | false | Read the danmaku of every part of a multi-part video (the rows and the profile in time order over every part). Off: the part the link names (?p=), else part 1. |
danmakuStartSec | integer | Only danmaku at or after this second of the video. | |
danmakuEndSec | integer | Only danmaku before this second of the video. | |
commentsNewerThan | string | Only comments posted on or after this date: 2026-11-01, 2026-11-01T08:00:00Z or 7 days. The walk reads the newest order and stops at the bound; a comment outside the window is free. | |
commentsOlderThan | string | Only comments posted on or before this date (a bare date counts the whole day). | |
minLikes | integer | 0 | Only comments with at least this many likes. A comment left out is free and takes no room. |
textContains | array | [] | Only comments (and danmaku rows) whose text contains any of these words, case-insensitive. A row left out is free. |
pseudonymizeAuthors | boolean | false | Replace each commenter's name, mid and avatar (and mentioned users, also as @name in the text) with authorKey, a stable hash for your account. |
sentimentAnalysis | boolean | false | Score each delivered comment from -1 (negative) to 1 (positive) with a confidence and a label. A model reads the Chinese text and its emote codes; on 20 real comments it read about 14 right by eye, weakest on sarcasm and teasing, so use the confidence to drop unsure answers. |
mode | search / video_detail / video_comments / user_videos / user_profile / popular | Optional: the job names of the leading Bilibili scraper, so its saved inputs run here as they are. You do not need it: the inputs you fill decide the job. popular reads the popular board, video_detail gives each video's row with no comments (maxComments 0), user_profile is not read (a creator's videos come from userIds); the others follow your inputs. | |
maxItems | integer | 0 | The most charged rows of the whole run (comments, videos, danmaku and profiles); 0 = no cap beyond your charge limit. |
feedback | string | A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note. |
Errors
A run does not fail because of your input. When an input cannot be used — a date that is not a date, an id in the wrong form, two settings that contradict each other — the run ends Succeeded, charges nothing, and says what to change:
- the status message starts with
INPUT REJECTED; - the dataset holds one row,
{"error": true, "code": "…", "message": "…"}, and no results; - the key-value store record
ERRORholds the same object.
From code, check error on the first row before reading results.
A video that does not exist or is hidden, a video with its comments turned off, a selected-comments area the uploader screens, a video with no comment, or a value that names nothing (a bangumi episode, a live room, another site) is not an error: it gets one free row with its status and the source's own answer, and the run goes on with the others. A run that ends Failed is a fault on our side, never your input; it charges nothing, and we are alerted.
FAQ
Why does the input row say LIST_END and not COMPLETE?
Bilibili's comment count includes replies and comments it does not serve to anyone. The walk reads the list to its own end, asks that end again on a fresh connection, and says LIST_END with both figures when what was served stays under the count (1,980 of 2,026 on our test video). COMPLETE is written only when the served rows reach the count.
Is there a likes order?
No: Bilibili offers hot and newest. Its hot order ranks mostly by likes, so the leader's likes is read as hot, and the run's notes say so.
Can I get the commenter's IP location?
No: Bilibili shows it to logged-in readers only, and this Actor reads logged out. The rest of the commenter's public profile on the comment (name, mid, level, avatar, VIP, verification, fan medal) is on every row.
Why are fewer danmaku kept than the video's danmaku count?
Bilibili serves a live pool per part (3,600 of 4,643 on our test video); the older history needs a login. The profile row gives both figures.
Do I need a Bilibili account or a cookie?
No. Everything is read logged out; no field asks for a login.
Do I need Apify Proxy or my own proxy?
No. The Actor uses its own connections, at no extra cost to you.
Integration
JavaScript
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_TOKEN' });const run = await client.actor('hyperbach/bilibili-scraper').call({"videoUrls": ["https://www.bilibili.com/video/BV1bmTb6EEs8"], "maxComments": 50, "maxItems": 500});const { items } = await client.dataset(run.defaultDatasetId).listItems();
Python
from apify_client import ApifyClientclient = ApifyClient('YOUR_TOKEN')run = client.actor('hyperbach/bilibili-scraper').call(run_input={'videoUrls': ['https://www.bilibili.com/video/BV1bmTb6EEs8'], 'maxComments': 50, 'maxItems': 500})items = client.dataset(run['defaultDatasetId']).list_items().items
CLI
$apify call hyperbach/bilibili-scraper --input '{"videoUrls": ["https://www.bilibili.com/video/BV1bmTb6EEs8"], "maxComments": 50, "maxItems": 500}'
REST
curl -X POST "https://api.apify.com/v2/acts/hyperbach~bilibili-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \-H 'Content-Type: application/json' -d '{"videoUrls": ["https://www.bilibili.com/video/BV1bmTb6EEs8"], "maxComments": 50, "maxItems": 500}'
AI agents and MCP
Apify's MCP server offers this Actor as a tool to Claude, Cursor, VS Code and any other MCP client. Connect https://mcp.apify.com?tools=hyperbach/bilibili-scraper and ask, for example: "Get the comments and replies of these Bilibili videos with each commenter's name, level, the likes and the reply count". The agent fills the input from the table above and reads the rows from the run's dataset. A field under the name another Actor gives it is read as this Actor's own: videoUrl, urls, startUrls, url as videoUrls; searchQuery, keywords, keyword, queries as searchQueries; userId, mids, creators, uploaders as userIds; maxResults, videosLimit, maxVideosPerQuery as maxVideos (and more). An agent or a person can add feedback to any run and say what was needed and not delivered: a missing field, a wrong or empty result, the Actor switched from or to, and why. The run returns the same rows at the same price, and a person reads every note.
n8n, Make and Zapier
The Apify node in n8n, the Apify app in Make and the Apify integration in Zapier run this Actor on a schedule or from a trigger and read its dataset. A webhook on the run's end (Integrations on the Actor page) sends the rows on to your own endpoint. Nothing to install on our side.
Support
Disagree with a charge? Write to apify@hyperbach.com with the run ID. We will ask Apify to compensate you, and the charge comes back to your Apify account as platform credit.
Did it do the job? A short review on the Store, at any rating, helps the next buyer choose.
See also
- Telegram Profile Scraper — Telegram channels, groups, bots and users by username or link, with the exact subscriber or member count.
- YouTube Channel Search Scraper — the YouTube channels a keyword finds, with subscribers, the exact video and view counts and the country.
- Threads Scraper — Threads profiles with the exact follower count, their posts and replies with view counts, and keyword and tag search, without a login.
- Substack Scraper — the posts of a Substack newsletter with the full text of free posts, the date, the paywall flag and the likes.
- Weibo Scraper — Weibo posts, profiles, search, comments and the hot-search boards, without a login.
- Pinterest Search Scraper — the pins of a Pinterest search, with the link each pin points to, the image and the pinner.
This page is generated from the Actor's schemas and a live sample — it cannot describe a field the Actor does not have.