Bilibili Scraper: Videos, Comments, Danmaku, Search & Live avatar

Bilibili Scraper: Videos, Comments, Danmaku, Search & Live

Pricing

from $2.50 / 1,000 bilibili videos

Go to Apify Store
Bilibili Scraper: Videos, Comments, Danmaku, Search & Live

Bilibili Scraper: Videos, Comments, Danmaku, Search & Live

Scrape Bilibili (哔哩哔哩): user videos, video details, profiles, comments + replies, danmaku (on-screen comments), uploader subtitles, keyword search, popular videos, hot search and live rooms. No login or cookies. Pay only per result.

Pricing

from $2.50 / 1,000 bilibili videos

Rating

5.0

(1)

Developer

Pika Choo

Pika Choo

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

3 days ago

Last modified

Share

📺 Bilibili Scraper: Videos, Comments, Danmaku, Search & Live

Scrape Bilibili (哔哩哔哩) without login: uploader videos, comments with replies, danmaku with timestamps, search, popular and live rooms. $2.50 per 1,000 videos.

📋 Table of contents

What does it do?

Bilibili Scraper collects public data from Bilibili, China's biggest video community for games, anime, tech and education. Give it video links, BV ids, space links or keywords and it returns videos with stats, uploader profiles, comment threads, danmaku (on-screen bullet comments) with the second they appear, search results, the popular feed, the hot-search list and live rooms. No account, cookies or proxy.

Features

🎬 What you can scrape on Bilibili

ModeWhat you give itWhat you get
user_postsprofile link / user IDUser posts — all videos from a profile
video_detailvideo or post linkVideo details — one video per link
user_profileprofile link / user IDUser profile — bio, followers, likes
video_commentsvideo or post linkVideo comments (+ replies)
search_videoskeywordsSearch videos (keywords)
trendingnothing (pick a category)Trending videos
hot_searchnothingHot search terms
live_infoprofile or live room linkLive room info
danmakuvideo link or BV idBilibili danmaku (on-screen comments)
subtitlesvideo link or BV idBilibili subtitles (full text)

✨ Smart features

  • Danmaku with the second each line appears (raw.time_sec)
  • Replies are placed right under their comment (comments with 3+ replies)
  • b23.tv short links are resolved for you
  • Uploader subtitles when the uploader added them
  • Popular feed and hot-search list in one call
  • Duplicates are removed automatically
  • 🔓 No login, no cookies, no proxy setup
  • 💸 Pay only for results: hint and error rows are free

🧭 More scrapers from us

Pricing

You pay per result. No compute or proxy charges on top, and hint and error rows are free.

What you getPrice per 1,000
📺 Bilibili videos (any mode)$2.50
💬 Comments, replies and danmaku lines$0.50
🔍 Profiles and live rooms$1.50
📈 Hot-search terms$1.00
📝 Subtitle track (per video)$3.00

How much does it cost to scrape Bilibili data?

JobCost
1,000 Bilibili videos$2.50
10,000 Bilibili videos$25
10,000 danmaku lines$5.00
100,000 comments$50

Set Max cost per run in the run options and the actor stops cleanly at that amount.

🆓 Free plan

On the free Apify plan each run returns up to 10 results, so you can check the data before you buy. Comment replies need a paid plan. Any paid Apify plan removes the limit.

⚡ Speed

List modes return a page of rows per request; a video's full danmaku track usually comes back in seconds.

Input

FieldWhat it does
modeLinks, @usernames or IDs: user_posts, video_detail, user_profile, video_comments, live_info, danmaku, subtitles. Keywords: search_videos. No input: trending, hot_search.
urlsOne per line: video links or BV ids, space.bilibili.com profile links or UIDs, live room links. b23.tv short links work too.
queriesKeywords for video search, one per line. Chinese keywords give the best results.
maxItemsStop after this many rows per link or keyword (comments include their replies).
includeRepliesIn video_comments mode, also fetch the replies under each comment that has 3 or more replies (TikTok, Douyin, Bilibili). Replies are billed as comments. Paid Apify plans only.
downloadVideosAdd the direct video file URL to each video row when the platform provides one.

🧪 Example inputs

All danmaku from a video

{"mode": "danmaku", "urls": ["https://www.bilibili.com/video/BV1M1421t7hT"], "maxItems": 5000}

Comments with replies

{"mode": "video_comments", "urls": ["BV1M1421t7hT"], "maxItems": 500, "includeReplies": true}

An uploader's latest videos

{"mode": "user_posts", "urls": ["https://space.bilibili.com/178360345"], "maxItems": 100}

Search videos

{"mode": "search_videos", "queries": ["原神", "机械键盘"], "maxItems": 200}

Output

Every row uses the same fields. Export as JSON, CSV, Excel, XML or HTML.

📦 Example output

{
"platform": "bilibili",
"item_type": "video",
"item_id": "BV1M1421t7hT",
"url": "https://www.bilibili.com/video/BV1M1421t7hT",
"title": "陈翔六点半:恶语伤人六月寒",
"description": "陈翔六点半:恶语伤人六月寒",
"author_id": "19286458",
"author_name": "陈翔六点半",
"duration_sec": 353.0,
"cover_url": "http://i2.hdslb.com/bfs/archive/149821b536849b6ad802a8a5e1c4576681090f…",
"created_at": "2024-08-11T10:40:00+00:00",
"play_count": 2924458,
"like_count": 71730,
"comment_count": 2258,
"share_count": 995,
"collect_count": 14543,
"mode": "video_detail",
"source_input": "BV1M1421t7hT",
"scraped_at": "2026-10-08T19:59:26.999963+00:00",
"raw": {
"…": "full original record"
}
}

📤 Main fields

FieldDescription
platform, item_type, mode, source_inputWhere the row came from and what it is (video, user, comment, hint, error…)
item_id, urlNative ID and a link back to the item
title, description, hashtags, created_atText and publish time (ISO 8601)
author_id, author_name, author_usernameCreator or account
play_count, like_count, comment_count, share_count, collect_countEngagement counts
rawThe full original record, every field the platform returned
error_messageExplanation on free hint / error rows

Troubleshooting

A video has no subtitles?

Only uploader-added subtitles are available. Bilibili's AI captions need a login and aren't included. You get a free hint row and no charge.

Getting no results?

Check that the link or username is public and typed correctly. Private accounts, deleted posts and hidden lists return a free hint row that says why. Keyword modes need the Keywords field, link modes need Links.

Getting fewer results than maxItems?

The platform ran out of items for that input (a small profile, a niche keyword), or the run reached its Max cost per run limit. The log says which one.

Some fields are empty?

Platforms don't return every field for every item. Everything the platform did return is kept in raw.

Media URLs from these platforms expire after a few hours. Download files right after the run.

The run failed or shows an error row?

Retry once: the platforms sometimes refuse a request for a few minutes. If it keeps failing, open an issue with the run link and we'll fix it fast.

Who uses this Bilibili Scraper?

🎮 Game and anime studios

Track reactions to trailers and releases through comments and danmaku.

📊 Market researchers

Measure sentiment on brands, games and tech products.

🧑‍🤝‍🧑 KOL agencies

Pull uploader profiles and engagement.

🎓 Researchers

Study online culture through danmaku and comment threads.

🤖 AI and data teams

Collect Chinese comments and danmaku as training data.

🧑‍💻 Developers and AI agents

Bring Bilibili data into apps through the API or MCP.

Use cases

Reaction timelines

Plot danmaku by time_sec to see the exact moments viewers react to.

Launch monitoring

Pull comments on a trailer every hour after release.

Creator research

Pull uploader videos and stats to rank creators in a niche.

FAQ

Can I scrape Bilibili without an account?

Yes. No Bilibili login, cookies or API keys.

What is danmaku?

On-screen bullet comments that fly across the video at a specific second. This actor returns each line with its timestamp.

Does Bilibili have an official API?

Bilibili's open platform only covers creators' own accounts and needs approval. This actor needs nothing.

Can I scrape Bilibili comments and replies?

Yes, with video_comments and Include comment replies on.

How much does it cost to scrape 10,000 danmaku lines?

About $5, at $0.50 per 1,000 lines.

Can I get Bilibili subtitles?

Yes, when the uploader added them. AI captions need a login and aren't included.

Do I need a Chinese proxy?

No.

Can I search Bilibili in Chinese?

Yes, and it gives the best results.

Is there a free tier?

Yes. On the free Apify plan each run returns up to 10 results. Subtitles need a paid plan.

Can I use it from Python, JavaScript or an AI agent?

Yes, through the Apify API, the client libraries, or MCP.

API, Python, JavaScript and MCP

Python

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("openclawai/bilibili-scraper").call(run_input={"mode": "danmaku", "urls": ["https://www.bilibili.com/video/BV1M1421t7hT"], "maxItems": 5000})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

JavaScript

import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: "YOUR_APIFY_TOKEN" });
const run = await client.actor("openclawai/bilibili-scraper").call({"mode": "danmaku", "urls": ["https://www.bilibili.com/video/BV1M1421t7hT"], "maxItems": 5000});
const { items } = await client.dataset(run.defaultDatasetId).listItems();

MCP (Claude, ChatGPT, Cursor and other MCP clients): https://mcp.apify.com/?tools=openclawai/bilibili-scraper

Works with Zapier, Make, n8n, Google Sheets, Slack, webhooks and scheduled runs.

Collects public data only. You are responsible for complying with Bilibili's terms and with privacy laws such as GDPR, CCPA and PIPL when you store personal data.

⭐ Support

Something not working? Check the hint / error rows, then open an issue with the run link. We reply fast.