Bilibili Scraper - Videos, Comments, Danmaku 哔哩哔哩
Pricing
from $0.70 / 1,000 records
Bilibili Scraper - Videos, Comments, Danmaku 哔哩哔哩
Scrape Bilibili (哔哩哔哩, B站) without login: video search, popular and ranking lists, comments with replies, danmaku (弹幕), user profiles and hot searches. Up to 1,000 videos per search. Export to Excel, CSV or API.
Pricing
from $0.70 / 1,000 records
Rating
0.0
(0)
Developer
Shivam Prajapati
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 days ago
Last modified
Categories
Features
Share
Get Bilibili (哔哩哔哩, B站) data as clean rows: video search with views, likes and tags, popular and ranking lists with coins and shares, comments with replies, danmaku (弹幕) with their time in the video, user profiles and hot searches. No login, no API key. Up to 1,000 videos per search. Export to Excel, CSV, JSON or the API.
Actively maintained. Last update: 2026-11-15. Every release passes 70+ automated tests on real saved Bilibili answers.
What can you use it for?
- Track trends in China. The popular list, the ranking of every zone and the hot search keywords, daily, with views, likes, coins and shares.
- Research a topic or a game. Search any Chinese or English text and get up to 1,000 videos with views, likes, danmaku counts, tags, creator and upload date. Sort by views, newest, danmaku or favorites.
- Study audiences. Comments (hottest or newest) with likes, replies, the writer's level and gender, and the replies under each comment.
- Read what viewers say at each second. Danmaku with the exact second, mode and color, ready for sentiment and highlight analysis.
- Find creators. User profiles with followers, following, level, video count, likes received and the verification badge.
- Feed AI and translation pipelines. One clean row per video, comment or danmaku in Chinese, ready for language models.
What data can you get?
Give search texts, lists, video links or user numbers. Every row is one record, and the type field tells which.
| You give | You get |
|---|---|
searchQueries | Videos matching each text, up to 1,000 per text, in the order you choose |
lists: popular, ranking, precious, hotSearch | The popular videos, the ranking of the chosen zones, the must-watch list or today's hot keywords |
startUrls: a video link or a BV or av number | That video's comments and danmaku |
startUrls or userIds: a user link or number | The user's profile |
maxCommentsPerVideo, maxRepliesPerComment, maxDanmakuPerVideo | Comments, replies and danmaku of every video found, as their own rows |
Fields
Rows hold every field. A field that does not apply to the record's type, or that Bilibili does not show, is null.
Record
| Field | What it is |
|---|---|
type | What the record is: video, comment, danmaku, user or hotSearch. |
id | The record's own number: the BV number of a video, the comment number, the danmaku number, the user number, or the day and keyword of a hot search. |
url | The page of the video, the user or the hot search on Bilibili. |
title | The video's title, the user's name or the hot search keyword. |
text | The comment, the danmaku or the hot search keyword. E-mail addresses, links and phone numbers are replaced by [removed]. |
description | The video's description. E-mail addresses, links and phone numbers are replaced by [removed]. |
coverUrl | The video's cover picture, or the hot search's icon. |
publishedAt | When the video, comment or danmaku was posted (UTC). |
Video
| Field | What it is |
|---|---|
bvid | The video's BV number. On comments and danmaku, the video they belong to. |
aid | The video's av number. On comments, the video they belong to. |
cid | The number of the video part the danmaku belong to (the part list and the popular and ranking lists give it). |
durationSeconds | The video's length in seconds. |
views | How many times the video was played. |
likes | Likes of a video or comment. On a user, the likes all their videos received. |
coins | Coins viewers gave the video (popular, ranking and must-watch lists only). |
favorites | How many viewers saved the video. |
shares | How many times the video was shared (popular, ranking and must-watch lists only). |
replies | The video's comment count, or the number of replies to a comment. |
danmakuCount | How many danmaku the video holds. |
zone | The video's zone (分区), for example 电子竞技. |
tags | The video's tags (search results only). |
location | Where the video was published from (popular, ranking and must-watch lists), or the place a comment shows. |
width | The video's width in pixels (lists only). |
height | The video's height in pixels (lists only). |
Creator, commenter or user
| Field | What it is |
|---|---|
authorId | The number of the video's creator, of the comment's writer or of the user. |
authorName | The name of that person. |
authorUrl | Their page on Bilibili. |
authorAvatar | Their profile picture. |
level | The user's level (0 to 6), or the level of the comment's writer. |
gender | The gender the user shows: 男, 女 or 保密 (secret). |
bio | The user's profile text. E-mail addresses, links and phone numbers are replaced by [removed]. |
verified | The text of the user's verification badge, for example a company or creator title. |
followers | How many people follow the user. |
following | How many people the user follows. |
videoCount | How many videos the user uploaded. |
Replies and danmaku
| Field | What it is |
|---|---|
parentId | For a reply, the number of the comment it answers. |
timeSeconds | Where in the video the danmaku appears, in seconds. |
mode | How the danmaku moves: 1 scrolls right to left, 4 sits at the bottom, 5 sits at the top, 6 scrolls left to right, 7 is positioned. |
color | The danmaku's color, for example #ffffff. |
userHash | Bilibili's anonymous code of the danmaku's sender: the same sender has the same code in one video. It cannot be turned into a user number. |
Hot searches
| Field | What it is |
|---|---|
rank | The keyword's place in the hot searches. |
Where it came from
| Field | What it is |
|---|---|
searchText | The search text, list or zone that found the video. |
foundVia | How the Actor reached the record: search, list |
page | The page of the search or list the video was on. |
position | The record's place on that page or list. |
totalResults | How many results the search holds, how many comments the video has, or how many danmaku were read. |
sourceUrl | The Bilibili address the record was read from. |
scrapedAt | When the record was collected (UTC). |
Example results
Video from a search:
{"type": "video", "id": "BV1VtsV6ZE9S", "bvid": "BV1VtsV6ZE9S", "aid": 117615011825159, "url": "https://www.bilibili.com/video/BV1VtsV6ZE9S", "title": "【2026KPL年总】Cat评论席 20261114", "description": "【2026KPL年总】Cat评论席 20261114", "coverUrl": "https://i1.hdslb.com/bfs/archive/844402deb8c477c5cac89af1f1212c4caed8b5af.jpg", "durationSeconds": 1151, "publishedAt": "2026-11-14T13:26:12Z", "views": 1729, "likes": 56, "favorites": 20, "replies": 3, "danmakuCount": 0, "zone": "电子竞技", "tags": ["陈正正", "CatGod", "Cat", "猫神"], "authorId": "553232", "authorName": "夏之月", "authorUrl": "https://space.bilibili.com/553232", "authorAvatar": "https://i2.hdslb.com/bfs/face/868c701b243d8c1cf823eed9b2b26dcf8894b16d.jpg", "foundVia": "search", "searchText": "cat", "page": 1, "position": 1, "totalResults": 1000, "sourceUrl": "https://api.bilibili.com/x/web-interface/search/all/v2?keyword=cat&page=1", "scrapedAt": "2026-11-15T16:00:06Z"}
Video from the popular list (every counter):
{"type": "video", "id": "BV15es76gEgL", "bvid": "BV15es76gEgL", "aid": 117616622439632, "cid": 43611326038, "url": "https://www.bilibili.com/video/BV15es76gEgL", "title": "【2026全球总决赛】11月15日 GEN vs BLG", "description": "【2026全球总决赛】11月15日 GEN vs BLG", "coverUrl": "https://i1.hdslb.com/bfs/archive/75bd99af8766e89c599ccdfd66c36d363f9ea9bd.jpg", "durationSeconds": 19165, "publishedAt": "2026-11-14T20:17:21Z", "views": 17727266, "likes": 271493, "coins": 216034, "favorites": 86953, "shares": 12207, "replies": 54962, "danmakuCount": 231433, "zone": "电子竞技", "authorId": "50329118", "authorName": "哔哩哔哩英雄联盟赛事", "authorUrl": "https://space.bilibili.com/50329118", "authorAvatar": "https://i2.hdslb.com/bfs/face/544c89e68f2b1f12ffcbb8b3c062a3328e8692d9.jpg", "location": "上海", "width": 1280, "height": 720, "foundVia": "list popular", "searchText": "popular", "page": 1, "position": 1, "sourceUrl": "https://api.bilibili.com/x/web-interface/popular?ps=20&pn=1", "scrapedAt": "2026-11-15T16:00:06Z"}
Comment:
{"type": "comment", "id": "1353715029", "bvid": "BV17x411w7KC", "aid": 170001, "url": "https://www.bilibili.com/video/BV17x411w7KC", "text": "妖王为了提倡节约用水,特意拍了《HOP》这部公益短片,这部短片讲述了一群男人为了节约用水而挤在一个澡盆里洗澡的故事,他们的精神可嘉,值得我们大家学习", "publishedAt": "2019-02-03T04:07:30Z", "likes": 181498, "replies": 618, "authorId": "266952687", "authorName": "君之自由", "authorUrl": "https://space.bilibili.com/266952687", "authorAvatar": "https://i0.hdslb.com/bfs/face/1379184a8c0caa875ef5bd31d30e89cf6e092f9c.jpg", "level": 6, "gender": "保密", "foundVia": "comments", "totalResults": 184331, "sourceUrl": "https://api.bilibili.com/x/v2/reply/main?type=1&oid=170001&mode=3&next=0", "scrapedAt": "2026-11-15T16:00:06Z"}
Danmaku:
{"type": "danmaku", "id": "44635381374648323", "bvid": "BV1GJ411x7h7", "cid": 137649199, "url": "https://www.bilibili.com/video/BV1GJ411x7h7", "text": "无 敌 破 坏 王", "publishedAt": "2021-02-02T14:50:08Z", "timeSeconds": 0, "mode": 5, "color": "#f0ab2a", "userHash": "94db4968", "foundVia": "danmaku", "totalResults": 1000, "sourceUrl": "https://comment.bilibili.com/137649199.xml", "scrapedAt": "2026-11-15T16:00:06Z"}
User:
{"type": "user", "id": "2", "url": "https://space.bilibili.com/2", "title": "碧诗", "likes": 5109221, "authorId": "2", "authorName": "碧诗", "authorUrl": "https://space.bilibili.com/2", "authorAvatar": "https://i2.hdslb.com/bfs/face/ef0457addb24141e15dfac6fbf45293ccf1e32ab.jpg", "level": 6, "gender": "男", "bio": "[removed] 直男过气网红 # We Are Star Dust", "verified": "bilibili创始人(站长)", "followers": 1438310, "following": 430, "videoCount": 44, "foundVia": "user link", "sourceUrl": "https://api.bilibili.com/x/web-interface/card?mid=2&photo=true", "scrapedAt": "2026-11-15T16:00:06Z"}
Input
| Input | What it does |
|---|---|
searchQueries | Search texts, Chinese or English, one per line |
searchOrder, searchDuration | Sort order and video length of searches |
lists, rankingZones, rankingType | The lists to read, the zones of the ranking and the ranking type |
startUrls, userIds | Video links, BV and av numbers, user links and user numbers |
maxCommentsPerVideo, commentSort, maxRepliesPerComment | How many comments (hottest or newest) and replies to read per video |
maxDanmakuPerVideo | How many danmaku to read per video |
maxItemsPerSearch | Stop each search text and each list after this many videos |
onlyNew | Skip records that earlier runs of the same input returned |
maxItems | Stop after this many records in total |
maxConcurrency | Pages read at the same time |
secondsBetweenRequests | Pause between requests |
How much does it cost?
You pay per record: a video, a comment, a danmaku, a user or a keyword each count as one. There is no start fee.
| Plan | Price per 1,000 records |
|---|---|
| Free | $1.00 |
| Bronze | $0.90 |
| Silver | $0.80 |
| Gold | $0.70 |
- 100 videos cost about $0.10.
- 1,000 comments cost about $1.00.
- Use
maxItemsto cap the cost of a run, andonlyNewto pay only for new records on scheduled runs.
Use it via API, on a schedule, or with your tools
from apify_client import ApifyClientclient = ApifyClient("<YOUR_API_TOKEN>")run = client.actor("pshivam/bilibili-scraper").call(run_input={"searchQueries": ["原神"],"searchOrder": "views","maxItemsPerSearch": 200,"maxCommentsPerVideo": 20,})for record in client.dataset(run["defaultDatasetId"]).iterate_items():print(record["type"], record["title"] or record["text"], record["views"] or record["likes"])
Use it in Clay, n8n, Make or Zapier
Use the Actor ID pshivam/bilibili-scraper and an input like this:
{"lists": ["popular", "hotSearch"], "maxItemsPerSearch": 50}
Watch the popular list
Schedule the Actor daily with "lists": ["popular"] and onlyNew turned on. Each run returns only videos that were not on the list before.
Good to know
- No login. The Actor reads what Bilibili shows every visitor. Videos, comments and users that need an account are not returned.
- Search returns 1,000 videos per text, 50 pages of 20, which is Bilibili's own limit. Use more specific texts,
searchOrderandsearchDurationto reach different videos. - Video details by link are not available. Bilibili does not give a video's own page data to visitors without login, so a video link returns its comments and danmaku. Videos found by a search or a list carry all their counters.
- Danmaku: Bilibili serves up to about 6,000 of a video's danmaku without login, from the first part of the video.
- Creator uploads are not available without login. Search the creator's name or videos instead.
- Comments are closed on some videos. The run message names them. They return nothing and cost nothing.
- Bilibili can refuse requests. The Actor waits, slows down and switches to Apify Proxy.
- Independent tool. Not affiliated with or endorsed by Bilibili. The Actor reads public pages that Bilibili shows to every visitor. Check Bilibili's terms before you redistribute the data.
FAQ
How do I search Bilibili videos?
Put a text in searchQueries, for example 原神, and raise maxItemsPerSearch up to 1,000. Choose searchOrder: most views, newest, most danmaku or most favorites.
How do I get the comments of a video?
Paste the video link in startUrls and set maxCommentsPerVideo. For the comments of every video a search finds, set maxCommentsPerVideo next to your search text.
What is danmaku?
Danmaku (弹幕) are the comments that scroll over the video at the second where the viewer wrote them. Set maxDanmakuPerVideo to read them, each with its second, mode and color.
Can I get the Bilibili trending list every day?
Yes. Use lists with popular, ranking and hotSearch, and schedule the Actor daily.
Do I need a Bilibili account or an API key?
No. The Actor never logs in.
Can I search in English?
Yes, but Chinese texts find far more.
How do I get new records only?
Turn on onlyNew and run the same input again later. Records that earlier runs returned are skipped and not charged.
Is it legal to scrape Bilibili?
The Actor reads public data that Bilibili shows without login. You are responsible for how you use the data. Check Bilibili's terms before you redistribute it.