Bilibili Scraper: Videos, Comments, Danmaku & UP主 Creators avatar

Bilibili Scraper: Videos, Comments, Danmaku & UP主 Creators

Pricing

Pay per event

Go to Apify Store
Bilibili Scraper: Videos, Comments, Danmaku & UP主 Creators

Bilibili Scraper: Videos, Comments, Danmaku & UP主 Creators

Scrape Bilibili (哔哩哔哩, B站) videos, complete UP主 upload lists, comments with replies and danmaku (弹幕), one row each. Bilibili API alternative, no login. JSON, CSV, Excel.

Pricing

Pay per event

Rating

0.0

(0)

Developer

delta spider

delta spider

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

2 days ago

Last modified

Share

Bilibili Scraper: videos, comments, danmaku and UP主 creators

Scrape Bilibili (哔哩哔哩, B站), China's largest video community, with no login, no cookies and no browser. Get videos by keyword, link or creator, full creator upload lists, comments with replies, and danmaku (弹幕), one row each. Export to JSON, CSV or Excel, or call it from the API.

What does Bilibili Scraper do?

  • 🔎 Search videos by keyword, sorted by relevance, views, date, danmaku or favorites (up to 1,000 per query).
  • 🎬 Video details from links, b23.tv share links, BV ids or av ids: views, likes, coins (投币), favorites (收藏), shares, comments, danmaku.
  • 👤 Creators (UP主): profile (followers, likes, level, verification) plus their complete upload list, newest first.
  • 💬 Comments and replies (评论) for every video: comments most popular or newest first, replies oldest first.
  • 🌊 Danmaku (弹幕): bullet comments with their exact second in the video, across all parts of multi-part videos. For busy videos Bilibili serves a large sample rather than every danmaku ever sent (9,641 of 23,792 on one measured video).
  • 🔥 Trending: Bilibili's popular board.

What data can you get from Bilibili?

RowFields
Videotitle, description, cover, duration, publish date, category, tags, creator, views, likes, coins, favorites, shares, comments, danmaku count, parts
Creatorname, bio, avatar, level, followers, following, video count, total likes, verification
Comment / replytext, likes, reply count, date, author, author level, images, root and parent comment
Danmakutext, second in the video, part, send time, color, mode, font size, anonymous sender hash

Search and creator lists leave some stats empty (coins and shares; likes and comment counts for creator lists). Turn on Fetch full stats (fetchVideoDetails) to fill them in, at no extra charge. Tags come from search results. A value Bilibili does not report is null, never 0.

How to scrape Bilibili

  1. Click Try for free.
  2. Add search keywords, video links or creator ids (or all three), and choose whether you want comments and danmaku.
  3. Click Start, then download the dataset as JSON, CSV or Excel, or read it through the API.

Tip: search in Chinese. 耐克 finds far more videos than Nike.

Input example

{
"searchQueries": ["黑神话"],
"creatorIds": ["https://space.bilibili.com/546195"],
"videoUrls": ["https://b23.tv/BV1qyNo6TEX3"],
"maxVideosPerSearch": 100,
"maxVideosPerCreator": 200,
"maxCommentsPerVideo": 20,
"maxRepliesPerComment": 5,
"maxDanmakuPerVideo": 500
}

Output example

{
"type": "video",
"bvid": "BV1qyNo6TEX3",
"url": "https://www.bilibili.com/video/BV1qyNo6TEX3",
"title": "躲在超市后门拆炸弹的三人",
"authorName": "老番茄",
"views": 5227184,
"likes": 336882,
"coins": 120910,
"favorites": 86242,
"commentCount": 5013,
"danmakuCount": 23792,
"publishedAt": "2026-07-18T03:30:00.000Z"
}
{
"type": "danmaku",
"videoBvid": "BV1qyNo6TEX3",
"part": 1,
"timeSeconds": 12.862,
"text": "空瓶",
"sentAt": "2026-07-18T03:30:27.000Z",
"senderHash": "edb9d388"
}

Use cases

  • Brand and product monitoring in China's Gen Z community: track videos and comments about your brand, game or launch.
  • Creator (UP主 / KOL) research: follower growth, full upload history and engagement, for partnerships and sponsorships.
  • Audience reaction analysis: danmaku show second by second where viewers reacted.
  • NLP and AI training data: comments and danmaku are a large corpus of informal Chinese.
  • Market and trend research: what is trending on Bilibili, by category.

How much does it cost to scrape Bilibili?

Pay per row, no start fee. Paid Apify plans get lower prices.

RowFree planBronzeSilverGold and up
Video or creator$0.004$0.0035$0.003$0.0025
Comment or reply$0.0015$0.0012$0.001$0.0008
Danmaku$0.00006$0.00005$0.000045$0.00004

The $5 monthly free credit covers about 1,250 videos. 100 videos with 20 comments each cost $3.40 on the free plan. A run stops cleanly at your maximum charge, and you only pay for rows you receive.

FAQ

Is there a Bilibili API? Bilibili has no open API for international developers. This scraper works as a Bilibili API alternative: send a JSON input, get structured data back.

Do I need a Bilibili account, cookies or a VPN? No. Everything comes from public pages and endpoints.

Can I get every video of a creator? Yes. The full upload list is read directly, however long the channel is (tested on a 679-video channel: all 679).

What are danmaku? Danmaku (弹幕, "bullet comments") are viewer comments that scroll across the video, each tied to a second of playback.

Can I use it from Python or JavaScript? Yes, with the Apify API clients:

from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("deltaspider/bilibili-scraper").call(run_input={"searchQueries": ["原神"], "maxVideosPerSearch": 50})
items = client.dataset(run["defaultDatasetId"]).list_items().items

Can I use it with Make, Zapier, n8n, Google Sheets or an AI agent? Yes, through Apify integrations and the Apify MCP server.

Is it legal to scrape Bilibili? The scraper collects only publicly available data. Personal data is protected by laws such as the GDPR and PIPL; use the data lawfully and check with a lawyer if unsure. This independent Actor is not affiliated with Bilibili (哔哩哔哩).

Something is missing? Open an issue on the Issues tab.