Bilibili Scraper 哔哩哔哩 — Search, Videos, Danmaku & Rankings
Pricing
from $2.00 / 1,000 videos
Bilibili Scraper 哔哩哔哩 — Search, Videos, Danmaku & Rankings
Scrape Bilibili (B站) without login: keyword search, video stats and tags, full danmaku (bullet comments), all videos of an uploader (UP主), popular and ranking lists. $2 per 1,000 videos, $0.10 per 1,000 danmaku.
Pricing
from $2.00 / 1,000 videos
Rating
0.0
(0)
Developer
China Data
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Security
Limited permissionsShare
Scrape public data from Bilibili (B站), China's biggest video community, without logging in and without cookies.
- 🔎 Keyword search: up to 1,000 videos per keyword, with the same sort and length filters as the Bilibili search page.
- 🎬 Video details: views, likes, coins (投币), favorites, shares, danmaku count, comment count, tags, parts (分P), description, cover, uploader.
- 💬 Danmaku (弹幕, bullet comments): text, time in the video, sent time, position and colour. The actor merges Bilibili's XML pool with the per-segment feed, so you get more danmaku per video than from the XML file alone.
- 👤 Uploader (UP主) videos: all videos of a channel, newest first, plus the uploader's follower count.
- 🔥 Popular (综合热门) and ranking lists (排行榜): the whole site or any of 14 categories, the same lists as bilibili.com/v/popular/rank.
Typical uses: tracking trends and competitors in China, influencer research, sentiment analysis of danmaku, building datasets for AI/LLM training and research.
How to use
- Add one or more of: search keywords, video URLs, uploader IDs, popular, ranking lists.
- Optionally turn on Full video details and/or Danmaku.
- Click Start, then download the results as JSON, CSV, Excel or via the API.
Input examples
Search, most viewed first:
{"searchQueries": ["原神", "machine learning"],"maxResultsPerQuery": 200,"searchOrder": "click"}
Danmaku of specific videos (b23.tv short links, BV IDs and av numbers also work):
{"videoUrls": ["https://www.bilibili.com/video/BV1dAxE6VErW"],"includeDanmaku": true,"maxDanmakuPerVideo": 5000}
All videos of two uploaders, plus today's popular list and the gaming ranking:
{"userIds": ["https://space.bilibili.com/401742377", "546195"],"maxVideosPerUser": 500,"popular": true,"rankingCategories": ["1008"]}
Output
Each video is one row with "type": "video". Danmaku are separate rows with "type": "danmaku" and the bvid of their video, so CSV and Excel exports stay flat. The Videos and Danmaku tabs of the dataset show each kind as a table.
Video row (from a real run, description shortened):
{"type": "video","bvid": "BV1dAxE6VErW","aid": 117518106630700,"url": "https://www.bilibili.com/video/BV1dAxE6VErW","title": "《原神》米提亚角色PV——「小小伎俩」","description": "在劫后余生后的某个清晨,米提亚决定逃避监督,并趁机给忙碌的朋友们带些礼物。…","coverUrl": "https://i1.hdslb.com/bfs/archive/1ce0d6e289e89c0c5740b9d9434f0dc40b1cc399.jpg","durationSec": 677,"publishedAt": "2026-10-29T04:00:00Z","category": null,"uploaderMid": 401742377,"uploaderName": "原神","uploaderFollowers": null,"views": 1582382,"likes": 232744,"coins": 65373,"favorites": 47065,"shares": 18310,"danmakuCount": 18929,"commentCount": 12501,"tags": ["米提亚", "米哈游", "miHoYo", "原神"],"partsCount": 4,"parts": [{ "cid": 43125246260, "page": 1, "title": "《原神》米提亚角色PV——「小小伎俩」", "durationSec": 167 },{ "cid": 43125310951, "page": 2, "title": "日-《原神》米提亚角色PV——「小小伎俩」", "durationSec": 170 }],"source": "url","rank": null,"scrapedAt": "2026-11-01T19:11:45Z"}
Danmaku row:
{"type": "danmaku","bvid": "BV1dAxE6VErW","cid": 43125246260,"part": 1,"dmid": "2232672416008769792","text": "在劫后余生后的某个清晨,米提亚决定逃避监督,并趁机给忙碌的朋友们带些礼物。","timeInVideoSec": 0.0,"sentAt": "2026-10-29T04:01:32Z","position": "top","mode": 5,"fontSize": 18,"color": "#ffffff"}
source tells you where a video came from (search:<keyword>, user:<mid>, popular, ranking:<category> or url) and rank is its position there.
Which fields are filled depends on the source:
| Field | Search | Uploader | Popular / ranking | Video URL or "Full video details" |
|---|---|---|---|---|
| views, title, cover, length, date | ✅ | ✅ | ✅ | ✅ |
| likes, favorites, danmaku and comment counts | ✅ | — | ✅ | ✅ |
| coins, shares | — | — | ✅ | ✅ |
| tags | ✅ | — | — | ✅ |
| parts (分P) | — | — | — | ✅ |
| uploader followers | — | ✅ | — | — |
Pricing
Pay only for what you get — no monthly rental:
| What | Price |
|---|---|
| Video | $2.00 per 1,000 videos ($0.002 each) |
| Danmaku | $0.10 per 1,000 danmaku ($0.0001 each) |
Set a maximum cost per run in the run options; the actor stops cleanly when it is reached and keeps everything scraped so far.
Tips and limits
- Speed: about 10 videos per second for search, uploader, popular and ranking lists. "Full video details" and danmaku need extra requests per video, so they are slower.
- Search returns at most 1,000 results per keyword (Bilibili's own limit). Use several keywords or sort orders to get more.
- Danmaku: Bilibili does not publish every danmaku ever sent on very popular videos; the actor returns everything Bilibili serves for each part (分P), de-duplicated.
- Comments (评论) are not included: Bilibili shows visitors who are not logged in only the first 3 comments of a video.
- Category is empty for videos from uploader lists and video URLs, because Bilibili no longer returns it there; search, popular and ranking results include it.
- Proxy: not needed for normal runs. If Bilibili blocks a very large run, turn on Apify Proxy in the input.
中文说明
免登录、免 Cookie 采集 B站公开数据:关键词搜索(最多 1000 条/词)、视频详情(播放、点赞、投币、收藏、分享、弹幕数、评论数、标签、分P)、完整弹幕(XML 弹幕池 + 分段弹幕合并去重)、UP主全部投稿和粉丝数、综合热门、全站及 14 个分区排行榜。按条计费:视频 $2/千条,弹幕 $0.1/千条,可设置单次运行费用上限。
Is it legal?
The actor only collects data that Bilibili shows publicly to visitors who are not logged in. It does not collect personal data about viewers: danmaku are saved without any sender ID. Make sure your use of the data complies with the laws that apply to you and with Bilibili's terms.