Bilibili Comments Scraper: Replies, Danmaku (哔哩哔哩, B站评论) avatar

Bilibili Comments Scraper: Replies, Danmaku (哔哩哔哩, B站评论)

Pricing

from $0.15 / 1,000 comments

Go to Apify Store
Bilibili Comments Scraper: Replies, Danmaku (哔哩哔哩, B站评论)

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

Hyperbach

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

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.

A Bilibili video page in a browser for one invented fishing-game guide, scrolled to its comments: the comment count with the hot and newest tabs, a top comment and two replies under it, the second answering the first. Beside it, a part of the row this Actor returns for that second reply: isThreadReply, rootRpid and parentRpid are highlighted, then the text, the replier's name and level, the likes, the time and the video's title.

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.

ActorRowsFirst rowRun timeCostFieldsFailures
this Actor504.0 s5.9 s$0.01531none
zhorex/bilibili-scraper246.6 s6.7 scannot15cannot: returned 24 comments, where another side returned 50
lofomachines/bilibili-scraper0—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 COMPLETE only when the served rows reach the count, LIST_END with both figures when the list ended under it (read a second time from a fresh connection first), CAPPED at your limit, DATE_LIMIT at your window's bound.
  • Replies as rows, linked. With includeReplies each reply is its own comment row right after its comment, with rootRpid and parentRpid; 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. sortComments hot (Bilibili's ranking) or newest first; the leader's time and likes are 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; includeComments reads their comments too.
  • Danmaku as a profile, or as rows. includeDanmaku gives 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 — and maxDanmaku delivers 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-scraperthis Actorwhat to know
modemodeAn 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.
searchQuerysearchQueriesOne search per item; the leader's single string is read as one item.
autoLocalizenot readNot read: Bilibili's search matches the words you give; add every spelling to searchQueries.
searchAliasesnot readNot read: put every alias in searchQueries (one search each).
sortOrdersortOrderThe same values: totalrank, click, pubdate, dm, stow, scores (every one is honoured by the source).
durationFilterdurationFilterThe same values: any, short, medium, long, verylong.
pubtimeBeginpubtimeBeginA date (2026-11-01), a date and time, or a relative time (30 days).
pubtimeEndpubtimeEndAs pubtimeBegin; a bare date counts the whole day.
deltaModenot readNot read: no memory between runs in this version; the newest order with commentsNewerThan re-reads only the comments after a date.
deltaStateKeynot readNot read (no memory between runs).
videoUrlsvideoUrlsVideo links of every form, b23.tv links and bare BV or av ids.
userIdsuserIdsA creator's mid or space link; the videos come newest first.
categorynot readNot read: Bilibili's ranking by category refuses a logged-out reader; popular reads the popular board, which has no category.
maxResultsmaxVideosVideos per search, creator or board, at most 1,000.
includeCommentsincludeCommentsThe comments of every video a search, creator or the board gives; video links always get theirs.
includeRepliesincludeRepliesEvery reply as its own comment row after its comment.
followUpCommentsnot readNot read: no follow-up of earlier runs' threads in this version.
includeDanmakuincludeDanmakuOne danmaku profile row per video; maxDanmaku adds each danmaku as a row.
danmakuSampleSizedanmakuSampleSizeTexts in the profile's sample, 0 to 500.
maxCommentsmaxCommentsRows per video, replies included; 0 = the video's row only.
sortCommentssortCommentshot or newest; time is read as newest and likes as hot.
sentimentAnalysissentimentAnalysisA score from -1 to 1 with a confidence and a label on each comment.

What differs:

  • mode is optional here: the inputs you fill decide the job. The leader's mode is read all the same: popular turns the popular board on, video_detail gives the video row with no comments, and user_profile is not read (this Actor reads a creator's videos, not the profile).
  • maxResults is read as maxVideos (at most 1,000 a search: Bilibili serves no more), searchQuery as one item of searchQueries.
  • maxComments counts 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).
  • sortComments time is read as newest and likes as 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-profile row is type danmaku-profile here, and maxDanmaku adds 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.

fieldmeaning
typecomment (charged), video (charged), danmaku-profile (charged), danmaku (charged), or input: an input's free row.
statusok 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).
inputThe value you gave that this row answers (a link, an id, the search words, a creator, popular).
commentIdThe comment's id (rpid), as text.
textThe comment's (or the danmaku's) text, emote codes like [doge] included.
createdAtWhen the comment was posted (ISO 8601, UTC).
createdTimestampWhen the comment was posted (Unix seconds).
timeDescriptionBilibili's own wording of the time, as the page shows it (e.g. 18小时前发布).
likeCountLikes of the comment; on a video row the video's likes.
replyCountOn a comment: the replies Bilibili serves under it (rcount). On a video: Bilibili's comment count, replies included.
replyCountTotalThe replies Bilibili counts under the comment (count), which can include replies it does not serve.
rootRpidThe thread's top comment: a top-level comment names itself, a reply names its root.
parentRpidA reply's parent comment (empty on a top-level comment).
isThreadReplytrue on a reply, false on a top-level comment.
isPinnedtrue on the comment the uploader pinned (delivered once: first in the hot order, at its own time in the newest).
isUploadertrue when the commenter is the video's uploader.
likedByUploadertrue when the uploader liked the comment.
repliedByUploadertrue when the uploader replied to the comment.
authorNameThe commenter's public name; on a video row the uploader's name.
authorMidThe 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).
authorKeyWith 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.
authorLevelThe commenter's account level (0-6).
authorAvatarThe commenter's avatar picture.
authorSexThe gender the commenter shows (男, 女, or 保密 when not shown), as Bilibili gives it.
authorViptrue when the commenter's VIP is active now (an expired VIP is false).
authorVerifiedtrue when the commenter carries Bilibili's verification.
authorVerifiedDescThe verification's own words (e.g. bilibili 知名游戏UP主).
authorFanMedalThe commenter's fan medal shown on the comment: name and level; empty when none.
emotesThe emotes in the comment: code (e.g. [笑哭]) and the picture's url.
picturesPictures attached to the comment: url, width, height.
mentionsUsers the comment mentions: mid and name (with pseudonymizeAuthors a key instead).
linksThe words Bilibili turned into search or video links in the comment.
analysis_sentimentWith sentimentAnalysis: the comment's sentiment from -1 (negative) to 1 (positive).
analysis_confidenceWith sentimentAnalysis: the model's confidence in the score (0-1), by question.
sentimentLabelWith sentimentAnalysis: positive (above 0.2), negative (below -0.2) or neutral.
videoBvidThe BV id of the video the row belongs to.
videoAidThe av id (aid) of the video the row belongs to.
videoUrlThe page of the video the row belongs to.
videoTitleThe title of the video the row belongs to (the record's, or its search, creator or popular row's).
orderServedThe comment order this row was read in: hot or newest.
bvidA video row's BV id.
aidA video row's av id (aid).
urlA video row's page.
titleA video row's title (the search's highlight marks removed).
descriptionA video row's description (a search gives it shortened).
viewCountA video's plays.
coinCountA video's coins (from its record; empty on a search or creator row).
favoriteCountA video's favorites.
shareCountA video's shares (from its record; empty on a search or creator row).
danmakuCountA video's danmaku count.
authorFaceThe uploader's avatar picture on a video row.
publishDateWhen the video was published (ISO 8601, UTC).
publishTimestampWhen the video was published (Unix seconds).
durationThe video's length in seconds.
durationFormattedThe video's length as minutes:seconds.
categoryThe 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).
tagsThe video's tags (on a search row).
thumbnailUrlThe video's cover picture.
partsThe video's parts (from its record): page, cid, title, duration.
rankA video's position in its search, creator list or the popular board.
videoSourceWhere a video row came from: video (your link), search, creator or popular.
danmakuIdA danmaku's own id.
videoTimeSecThe second of the video the danmaku appears at.
modeThe danmaku's display mode (1-3 scrolling, 4 bottom, 5 top, 7 advanced).
fontSizeThe danmaku's font size.
colorThe danmaku's colour as #rrggbb.
colorDecimalThe danmaku's colour as Bilibili gives it (a decimal number).
sentAtWhen the danmaku was sent (ISO 8601, UTC).
sentTimestampWhen the danmaku was sent (Unix seconds).
poolThe danmaku's pool (0 ordinary, 1 subtitle, 2 special).
senderHashBilibili's own hash of the sender (not the mid).
weightThe danmaku's weight as Bilibili gives it.
partThe part of the video the danmaku belongs to.
cidThe part's cid.
danmakuKeptDanmaku in the profile: Bilibili's live pool of the parts read (in your window when you set one).
danmakuTotalThe video's own danmaku count, when every part was read with no window (the pool keeps fewer).
poolCapThe live pool's cap per part as Bilibili states it.
uniqueSendersDistinct senders (by Bilibili's hash) in the profile.
danmakuPerMinuteDanmaku per minute over the seconds read: your window's length in each part read (rateDurationSec).
rateDurationSecThe seconds the rate is computed over (the parts read, cut to your window).
peakMinuteThe minute of the video with the most danmaku (0 = the first minute).
peakMinuteCountDanmaku in the peak minute.
firstDanmakuSecThe second of the first danmaku (the earliest over every part read).
lastDanmakuSecThe second of the last danmaku (the latest over every part read).
minuteCountsDanmaku 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).
topPhrasesThe ten most repeated danmaku texts: text, count.
danmakuSampleDanmaku spread evenly over the timeline in time order (danmakuSampleSize): videoTimeSec, text.
partsReadThe parts whose danmaku the profile holds.
inputKindOn an input row: video, short (a b23.tv link), search, creator, popular or invalid.
verdictOn 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).
noteWhy an input row has its status or verdict, in words, with Bilibili's own answer and the figures.
allCountOn an input row: Bilibili's comment count for the video (replies included).
rootsDeliveredOn an input row: top-level comments delivered.
repliesDeliveredOn an input row: replies delivered.
videosDeliveredOn an input row: video rows delivered.
danmakuDeliveredOn an input row: danmaku rows delivered.
rowsDeliveredOn an input row: every charged row it delivered.
secondReadAgreedOn 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.
orderAskedOn an input row: the comment order you asked (sortComments).
scrapedAtWhen 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.

eventunitFreeStarterScaleBusiness
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 — videoUrls with the link and maxComments 50: 50 comment rows in Bilibili's hot order, the video's row, and the input's free row.
  • Every comment and reply — maxComments above the video's count with includeReplies: the whole list and every thread; the input row says COMPLETE or LIST_END against Bilibili's count.
  • Comments since a date — commentsNewerThan 7 days: the walk reads the newest order and stops at the bound; nothing outside the window is charged.
  • A search and its videos' comments — searchQueries with maxVideos 20 and includeComments with maxComments 50: 20 video rows and up to 50 comments under each.
  • A video's danmaku peaks — includeDanmaku with maxComments 0: one profile row with the rate per minute, the peak minute and a sample over the timeline.

Input configuration

fieldtypedefaultwhat it does
videoUrlsarray[]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.
searchQueriesarray[]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.
userIdsarray[]Creators whose videos you want, newest first: a numeric mid or a space.bilibili.com/
popularbooleanfalseRead Bilibili's popular board (the videos it lists now). Each video is a row; turn on includeComments to read their comments too.
maxCommentsinteger100The 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.
sortCommentshot / 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.
includeRepliesbooleanfalseEvery reply as its own comment row, right after its comment, with rootRpid and parentRpid. Replies count toward maxComments.
maxRepliesPerCommentinteger0With includeReplies: the most replies of one comment. 0 = all of them.
includeCommentsbooleanfalseRead the comments of every video a search, a creator or the popular board gives (up to maxComments each). Video links always get their comments.
maxVideosinteger50The most video rows of one search, one creator or the popular board (at most 1,000: the source serves no more a search).
includeVideoDetailsbooleantrueFor 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.
sortOrdertotalrank / click / pubdate / dm / stow / scores"totalrank"The order of a search's results, as the source sorts them.
durationFilterany / short / medium / long / verylong"any"Only videos of this length in a search.
pubtimeBeginstringOnly videos published on or after this date in a search: 2026-11-01, 2026-11-01T08:00:00Z or 30 days.
pubtimeEndstringOnly videos published on or before this date in a search (a bare date counts the whole day).
includeDanmakubooleanfalseOne 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.
maxDanmakuinteger0With 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.
danmakuSampleSizeinteger25Texts in the profile's sample, spread evenly over the timeline.
allPartsbooleanfalseRead 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.
danmakuStartSecintegerOnly danmaku at or after this second of the video.
danmakuEndSecintegerOnly danmaku before this second of the video.
commentsNewerThanstringOnly 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.
commentsOlderThanstringOnly comments posted on or before this date (a bare date counts the whole day).
minLikesinteger0Only comments with at least this many likes. A comment left out is free and takes no room.
textContainsarray[]Only comments (and danmaku rows) whose text contains any of these words, case-insensitive. A row left out is free.
pseudonymizeAuthorsbooleanfalseReplace each commenter's name, mid and avatar (and mentioned users, also as @name in the text) with authorKey, a stable hash for your account.
sentimentAnalysisbooleanfalseScore 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.
modesearch / video_detail / video_comments / user_videos / user_profile / popularOptional: 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.
maxItemsinteger0The most charged rows of the whole run (comments, videos, danmaku and profiles); 0 = no cap beyond your charge limit.
feedbackstringA 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 ERROR holds 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 ApifyClient
client = 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.