Bilibili Scraper: Videos, Search, Rankings & Danmaku (No Login) avatar

Bilibili Scraper: Videos, Search, Rankings & Danmaku (No Login)

Pricing

from $3.00 / 1,000 videos

Go to Apify Store
Bilibili Scraper: Videos, Search, Rankings & Danmaku (No Login)

Bilibili Scraper: Videos, Search, Rankings & Danmaku (No Login)

Scrape Bilibili (哔哩哔哩 / B站) videos by URL, keyword search or Top 100 ranking: views, likes, coins, favorites, tags, channel, plus full-timeline danmaku (bullet comments) with reaction peaks. No login, no cookies.

Pricing

from $3.00 / 1,000 videos

Rating

0.0

(0)

Developer

CN Data Lab

CN Data Lab

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Share

Scrape Bilibili (哔哩哔哩 / B站), China's largest video platform for Gen Z, anime, gaming, tech and lifestyle content. You get structured video data and danmaku (弹幕, bullet comments) with no login, no cookies and no browser.

  • 🔎 Keyword search: up to 1,000 videos per keyword, in Chinese or English, sorted by relevance, views, newest, danmaku or favorites
  • 🏆 Trending: the official Bilibili Top 100 ranking (排行榜), for all categories or one category (games, tech, music, anime and more)
  • 🎬 Video URLs / BV IDs / av IDs / b23.tv short links
  • 📊 Full engagement stats for every video: views, likes, coins, favorites, shares, danmaku count, comment count, tags, duration, publish date, channel
  • 💬 Danmaku across the whole timeline. Many scrapers use the legacy XML feed, which is capped at the newest ~1,000–3,000 messages. This Actor reads danmaku in 6-minute segments, so a single video can return tens of thousands of messages.
  • 📈 Reaction timeline and peak moments: each video comes with a danmaku density histogram and its top 5 "most reacted" moments. Use it to find highlights, viral moments and ad placement points.
  • 🔒 Privacy-friendly by default: danmaku are anonymous by design, and commenter identities are not stored unless you explicitly enable it
  • 💸 Low price, pay only for results: $3 per 1,000 videos and $0.20 per 1,000 danmaku

Who uses Bilibili data?

Use caseWhat you get
Brand & market research in ChinaWhat Chinese Gen Z says about your product, game, car or phone, in real time
Game publishers & studiosReactions to trailers, launches and patches (e.g. Black Myth: Wukong, Genshin Impact), moment by moment
Influencer / KOL discoveryTop channels for a keyword with views, likes, coins and favorites
AI / LLM datasetsLarge amounts of authentic, timestamped Chinese conversational text (danmaku)
Academic researchMedia studies, sentiment analysis and online culture in China
Trend monitoringRun the Top 100 ranking on a schedule and track what goes viral

How to use

  1. Click Try for free.
  2. Add video URLs, search keywords, and/or turn on Top 100 ranking.
  3. Optionally turn on Scrape danmaku.
  4. Click Start and download the results as JSON, CSV, Excel or HTML, or get them through the API.

Input example

{
"searchKeywords": ["iPhone 17 测评", "Black Myth Wukong"],
"maxVideosPerKeyword": 50,
"searchOrder": "click",
"includeRanking": true,
"rankingCategoryId": 188,
"maxRankingVideos": 20,
"videoUrls": ["https://www.bilibili.com/video/BV17x411w7KC", "https://b23.tv/BV1xx411c7mD"],
"scrapeDanmaku": true,
"maxDanmakuPerVideo": 2000
}
FieldDescription
videoUrlsBilibili video URLs, BV… or av… IDs, mobile links or b23.tv short links
searchKeywordsKeywords to search (Chinese or English)
maxVideosPerKeywordMax results per keyword (1–1,000, default 20)
searchOrdertotalrank (relevance), click (most viewed), pubdate (newest), dm (most danmaku), stow (most favorited)
includeRanking / rankingCategoryId / maxRankingVideosOfficial Top 100 ranking. 0 = all categories. Examples: 4 games, 188 tech, 36 knowledge, 3 music, 1 anime, 211 food, 160 lifestyle
scrapeDanmaku / maxDanmakuPerVideoDownload danmaku (bullet comments) and cap how many are saved per video
danmakuTimelineBucketSecBucket size for the reaction timeline (default 30 s)
includeTagsAdd the uploader's tags (default on)
includeTopCommentsAdd a preview of the top hot comments (up to 3; free)
includeCommentAuthorStore commenter nicknames (off by default)
maxConcurrencyParallel requests (default 3)
proxyConfigurationOptional; normally not needed

Output

Every dataset item has a type: video, danmaku, or error. The dataset has two ready-made views, Videos and Danmaku.

Video item (real example)

{
"type": "video",
"bvid": "BV1A4421f7nX",
"url": "https://www.bilibili.com/video/BV1A4421f7nX",
"title": "【完结】《黑神话:悟空》全程无伤全收集全成就全支线全结局全BOSS无伤 | 完美剧情流程攻略-4K…",
"coverUrl": "https://i0.hdslb.com/bfs/archive/7560426b7ad02534806b8fb695f437d1cc4d6c0b.png",
"durationSec": 100357,
"publishedAt": "2024-08-20T17:40:22+00:00",
"partsCount": 59,
"channelId": 288742222,
"channelName": "劍訣浮雲",
"channelUrl": "https://space.bilibili.com/288742222",
"views": 1394920,
"danmakuCount": 20522,
"comments": 2086,
"likes": 29524,
"coins": 23907,
"favorites": 24402,
"shares": 3242,
"tags": ["西游记", "孙悟空", "黑神话悟空", "黑神话", "游戏科学", "国产3A"],
"danmakuScraped": 300,
"danmakuPeaks": [{"startSec": 210, "count": 21}, {"startSec": 630, "count": 16}],
"danmakuTimeline": [{"startSec": 0, "count": 15}, {"startSec": 30, "count": 14}],
"source": "search",
"searchKeyword": "黑神话 悟空",
"searchRank": 2,
"scrapedAt": "2026-10-18T07:56:57+00:00"
}

Danmaku item (real example)

{
"type": "danmaku",
"bvid": "BV1xx411c7mD",
"cid": 62131,
"danmakuId": "12338673447075844",
"text": "唯一活着的老片",
"videoTimeSec": 0.0,
"postedAt": "2019-02-20T15:25:26+00:00",
"mode": 5,
"fontSize": 25,
"color": "#ffd302"
}

mode: 1–3 = scrolling, 4 = bottom, 5 = top, 7 = advanced.

Pricing (pay per event)

EventPrice
Video (one video item with full stats)$0.003 ($3 per 1,000)
Danmaku (one bullet comment)$0.0002 ($0.20 per 1,000)

Failed or deleted videos come back as error items and are not charged. The Actor respects your maximum cost per run and stops cleanly when it reaches it.

Example costs: 1,000 videos from keyword search ≈ $3. 50 videos with 2,000 danmaku each ≈ $0.15 + $20.

FAQ

Do I need a Bilibili account or cookies? No. The Actor only uses the public data that Bilibili shows to any logged-out visitor.

How fast is it? In our tests it scraped about 380 videos with full stats in about 2.5 minutes, and 22 videos plus 13,000 danmaku in under 40 seconds, with the default concurrency.

Why only up to 3 comments? Bilibili shows logged-out visitors just a short preview of the comment section. This Actor never logs in, so it returns that preview for free. For audience reactions at scale, use danmaku: they are public, plentiful and anonymous.

Multi-part videos? Danmaku are collected for the first part (P1) of a multi-part video. The video stats cover the whole video.

Is it legal? The Actor collects only publicly available data, without logging in or bypassing access controls, and it doesn't store personal data by default. You are responsible for using the data in line with Bilibili's terms and the laws that apply to you (e.g. GDPR, PIPL). If you are unsure, ask a lawyer.

Can I schedule it or use it through the API, Make, Zapier or an AI agent? Yes. It works with Apify schedules, webhooks and the API, with integrations such as Make, Zapier, n8n and Google Sheets, and with MCP clients for AI agents.

Keywords

Bilibili scraper, Bilibili API, B站爬虫, 哔哩哔哩数据, 弹幕爬虫, Bilibili danmaku downloader, bullet comments, Bilibili video stats, Bilibili search scraper, Bilibili ranking, China social media data, Chinese video data, Bilibili comments, Bilibili analytics.

Feedback

Found a bug or want a feature (creator uploads, all-parts danmaku, scheduled ranking diffs)? Open an issue on the Actor's Issues tab and we'll respond quickly.