Bilibili Scraper: Videos, Comments & Danmaku (B站 哔哩哔哩) avatar

Bilibili Scraper: Videos, Comments & Danmaku (B站 哔哩哔哩)

Pricing

from $2.00 / 1,000 row scrapeds

Go to Apify Store
Bilibili Scraper: Videos, Comments & Danmaku (B站 哔哩哔哩)

Bilibili Scraper: Videos, Comments & Danmaku (B站 哔哩哔哩)

Scrape Bilibili (哔哩哔哩, B站) without login: keyword search, video details, comments and replies, popular videos, creator profiles and danmaku (弹幕) summaries. $2 per 1,000 rows, datacenter proxy by default.

Pricing

from $2.00 / 1,000 row scrapeds

Rating

0.0

(0)

Developer

dheeraj kumar

dheeraj kumar

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

an hour ago

Last modified

Share

Scrape public data from Bilibili (哔哩哔哩, B站), China's largest video community, with no login, no cookie and no API key. Search videos by keyword, get full video details, export comments and replies, pull the popular / trending board and creator profiles, and summarise a video's danmaku (弹幕) bullet comments into one row.

$2 per 1,000 rows. It runs on Apify's datacenter proxy by default and switches to residential automatically only if Bilibili blocks the run.

中文简介:B站数据采集,无需登录、无需 Cookie。支持关键词搜索视频、视频详情(播放、点赞、投币、收藏、分享、弹幕数)、评论与楼中楼回复、热门视频、UP主资料(粉丝数、投稿数、获赞数)和弹幕分析(弹幕密度、高峰分钟、弹幕样本)。按条计费,每 1000 条 2 美元。

What you can scrape

ModeWhat you getInput
searchVideos matching keywords (sort, length and date filters)searchQueries
video_detailFull stats: views, likes, coins, favorites, shares, danmaku, comments, parts, hasSubtitlesvideoUrls (links or BV ids)
video_commentsTop-level comments (popular or newest first) plus optional repliesvideoUrls
popularBilibili's popular / trending board(none)
user_profileCreator (UP主) followers, following, video count, total likes, level, verification, biouserIds (mid or space.bilibili.com link)

Add-ons for search, video_detail and popular: includeComments, includeReplies, includeDanmaku, includeVideoDetails.

Pricing (pay per event)

EventPrice
Run start$0.001 per run
Row (video, comment, reply or creator)$0.002 ($2 per 1,000)
Danmaku summary (one row per video, only with includeDanmaku)$0.01

Error rows are free. Set maxChargeUsd (default $5) and the run stops cleanly before it goes over; rows already delivered are kept.

Example costs: 100 search results = $0.20. 10 videos × 50 comments = 510 rows ≈ $1.02. Danmaku summaries for 50 videos = $0.50.

Input examples

Search, newest first, with comments:

{
"mode": "search",
"searchQueries": ["机械键盘", "原神"],
"maxResults": 50,
"sortOrder": "pubdate",
"publishedAfter": "2026-10-01",
"includeComments": true,
"maxComments": 20
}

Comments and replies of specific videos:

{
"mode": "video_comments",
"videoUrls": ["https://www.bilibili.com/video/BV1xx411c7mD"],
"maxComments": 200,
"sortComments": "hot",
"includeReplies": true,
"maxRepliesPerComment": 10
}

Video details with a danmaku summary:

{ "mode": "video_detail", "videoUrls": ["BV1xx411c7mD"], "includeDanmaku": true }

Creator profiles (schedule it daily to track follower growth):

{ "mode": "user_profile", "userIds": ["452412746", "https://space.bilibili.com/265504053"] }

Output examples

Video:

{
"type": "video", "source": "detail", "bvid": "BV1frJB64EQv", "aid": 117456668459441, "cid": 42824894014,
"title": "2026年双十一高性价比机械键盘选购推荐", "url": "https://www.bilibili.com/video/BV1frJB64EQv",
"thumbnailUrl": "https://i1.hdslb.com/bfs/archive/....jpg", "duration": 2295, "parts": 1,
"viewCount": 2179, "likeCount": 106, "coinCount": 8, "favoriteCount": 151, "shareCount": 12,
"danmakuCount": 98, "replyCount": 41, "authorName": "UP主名", "authorMid": 12345678,
"category": "数码", "tags": ["机械键盘"], "publishDate": "2026-10-16T10:00:00+00:00",
"hasSubtitles": true, "scrapedAt": "2026-10-18T15:48:14+00:00"
}

Comment or reply:

{
"type": "reply", "videoBvid": "BV1frJB64EQv", "commentId": 321073847136, "rootCommentId": 321056652768,
"text": "售后换呗", "likeCount": 1, "replyCount": 0, "createdAt": "2026-10-18T02:47:21+00:00",
"authorName": "景行推荐", "authorMid": 2133808831, "scrapedAt": "2026-10-18T15:48:14+00:00"
}

Danmaku summary (real row from a test run on 2026-10-18):

{
"type": "danmaku", "videoBvid": "BV1qm41197pQ", "danmakuFetched": 1101, "danmakuTotal": 1303,
"danmakuPoolCapped": true, "danmakuUniqueSenders": 875, "danmakuPerMinute": 87.96,
"danmakuPeakMinute": 4, "danmakuPeakMinuteCount": 183, "danmakuFirstAt": 4.8, "danmakuLastAt": 748.3,
"danmakuSample": [{"atSecond": 4.8, "text": "不是还有个茶轴吗?"}, {"atSecond": 36.8, "text": "惊人收藏"}]
}

Creator (real row, 2026-10-18):

{
"type": "user", "mid": 452412746, "name": "Yooupi食途", "profileUrl": "https://space.bilibili.com/452412746",
"bio": "一个上山打虎,下海捉蛟的清奇频道。…", "level": 6, "followers": 2323150, "following": 126,
"videoCount": 278, "totalLikes": 15814347, "isVerified": true, "verificationTitle": "2023百大UP主、知名UP主"
}

Compact output for AI agents

Set Output format to compact and the run still pushes the same rows to the dataset at the same price — nothing about billing changes. It additionally writes OUTPUT_COMPACT to the run's key-value store: a lossless columnar JSON encoding of the same rows (one column-name header plus one array per row, instead of repeating every key name on every row), which is cheaper to hand to an LLM than the plain dataset JSON.

Measured on a real 406-row export of this actor's comment/reply rows (see benchmarks/compact-output/ in this repo for methodology and all 5 actors' numbers):

TokenizerPretty JSONMinified JSONCompactvs Prettyvs Minified
cl100k_base (GPT-4/3.5)74,31059,67345,53838.7% smaller23.7% smaller
o200k_base (GPT-4o)67,67253,03439,32041.9% smaller25.9% smaller

Decoding it back to the normal row objects is five lines of Python:

def decode_columnar(payload):
cols, marker = payload["columns"], payload["missing"]
return [{c: v for c, v in zip(cols, row) if v != marker}
for row in payload["rows"]]

Good to know

  • Public data only. The actor never logs in. Comment rows carry only the public nickname and mid; no avatars or other personal fields.
  • Subtitles: Bilibili only serves subtitle and AI-subtitle text to logged-in users, so this actor reports hasSubtitles (whether tracks exist) and does not download the text.
  • Creator upload lists (space pages) are blocked by Bilibili's risk control without login. To find a creator's videos, use search with their name.
  • Search depth: Bilibili caps one keyword at about 1,000 results. Use date windows or more specific keywords to go further.
  • Danmaku: Bilibili keeps a capped pool per video. danmakuPoolCapped tells you when the summary covers part of the total.
  • Reliability: a self-test runs every day against live Bilibili endpoints, so breakages get spotted and fixed fast. If Bilibili blocks every request in a run, the run is marked failed instead of ending green with 0 rows, so your schedule alerts fire.

FAQ

Is there an official Bilibili API? Not for international developers. This actor uses the same public endpoints the website uses.

English or Chinese keywords? Bilibili indexes Chinese text. Searching 耐克 returns many more videos than "Nike".

How do I schedule it? Save your input as a Task in Apify Console, then add a Schedule (for example 0 8 * * * for daily at 8 AM).

关键词: B站爬虫, 哔哩哔哩采集, B站评论采集, 弹幕分析, B站热门, UP主数据, Bilibili API, Bilibili comments scraper, danmaku scraper.