Bilibili Danmaku Scraper: Bullet Comments (B站弹幕) avatar

Bilibili Danmaku Scraper: Bullet Comments (B站弹幕)

Pricing

from $1.00 / 1,000 danmakus

Go to Apify Store
Bilibili Danmaku Scraper: Bullet Comments (B站弹幕)

Bilibili Danmaku Scraper: Bullet Comments (B站弹幕)

Scrape Bilibili (哔哩哔哩) danmaku (bullet comments) with playback timestamps from videos, searches, creators and the popular or ranking feeds. Keyword filter, free per-video density summaries, sentiment and delta mode. No login, no browser.

Pricing

from $1.00 / 1,000 danmakus

Rating

4.0

(1)

Developer

Divya Raj

Divya Raj

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 hours ago

Last modified

Share

Bilibili Danmaku Scraper: bullet comments (B站弹幕) with timestamps

Scrape Bilibili danmaku (弹幕, bullet comments) from any video, search, creator or the popular and ranking feeds. Every danmaku comes with its playback time, text, colour, display mode and send time, in one clean dataset you can export as JSON, CSV or Excel.

No login, no cookies, no browser. It talks to Bilibili's JSON API directly, so it is fast and costs $1.00 per 1,000 danmaku.

Need video stats, comments, replies, subtitles or creator profiles too? Use the full Bilibili Scraper. This Actor is its danmaku-only spinoff, with the same client and the same prices.

What does Bilibili Danmaku Scraper do?

  • Finds videos from anywhere: video links, BV/AV IDs, space.bilibili.com creator pages, search.bilibili.com searches, keywords, creator IDs, or the popular and ranking feeds.
  • Gets more danmaku per video: Bilibili serves two different danmaku sources to anonymous visitors (a lifetime sample and the most recent few thousand). They barely overlap, so the Actor merges both by default. On a 34-minute video with 128,673 lifetime danmaku, that returned 5,416 rows.
  • Keyword filter: keep only danmaku containing words you choose. Filtering happens before charging, so you only pay for matches.
  • Free per-video summary: one free row per video with the danmaku count, a 20-slice density timeline, the busiest moment (peak_time) and the most repeated phrases. Find a video's highlight without downloading every row.
  • Sentiment analysis: label each danmaku positive, neutral or negative, with a score from -1 to 1.
  • Only new danmaku: scheduled runs skip what earlier runs already returned, so monitoring only pays for new bullet comments.
  • Every multi-part video: scrape P1, P2 and the rest with allParts.

Who uses it

  • Brand and marketing teams: see how Chinese viewers react to a product, ad or sponsored video, second by second.
  • Researchers: build danmaku corpora for NLP, sentiment and audience-engagement studies.
  • Creators and agencies: find the moments viewers react to most, from the density timeline and peak_time.
  • Game and anime studios: track reactions to trailers, launches and episodes (for example search 原神).

How to scrape Bilibili danmaku

  1. Paste one or more video links or BV IDs, or enter search keywords or creator IDs.
  2. Set how many videos per source and how many danmaku you want, and optionally a keyword filter.
  3. Click Start, then download the results as JSON, CSV or Excel, or read them through the API.

Example input: the danmaku of the top 10 search results for 原神, with a free summary per video.

{
"searchQueries": ["原神"],
"maxVideosPerSource": 10,
"danmakuSource": "both",
"videoSummary": true
}

Output: one row per danmaku

FieldMeaning
bvid, pageVideo and part (P1, P2, …)
timePlayback position in seconds
contentDanmaku text
mode, fontsize, colorScrolling, top or bottom; size; RGB colour as an integer
ctimeWhen it was sent (Unix seconds)
mid_hashHash of the sender's UID (no personal data)
sentiment, sentiment_scoreWith sentimentAnalysis on
sourceWhich input found the video

How much does it cost to scrape Bilibili danmaku?

Pay per result. Summary rows and error rows are free.

WhatPrice
Danmaku$1.00 per 1,000
Sentiment label (optional)$5.00 per 1,000
Actor start$0.001 per run

Set a maximum cost per run and the Actor stops cleanly when it is reached.

Limits worth knowing

  • Anonymous danmaku are a sample. Bilibili does not give anonymous visitors every danmaku a video has ever had. Merging both sources gets the most it allows.
  • Some videos are region-locked and answer non-Chinese IPs with an error. Those videos produce a free error row and the run continues.
  • No login is needed. A sessdata cookie is accepted but optional.

FAQ

Do I need a Bilibili account? No. Danmaku are public, and the Actor never needs a login.

What is danmaku? Danmaku (弹幕, "bullet comments") are the comments that fly across a Bilibili video at the moment a viewer posted them. Each one is tied to a playback time, which makes them ideal for second-by-second reaction analysis.

Can I get Bilibili comments and replies too? Yes, with the full Bilibili Scraper. It scrapes comments with full reply threads, videos, subtitles and creator profiles as well as danmaku.

Can I monitor a video or creator for new danmaku? Yes. Turn on onlyNewItems and schedule the Actor. Each run returns only danmaku it has not returned before.

Can I export to Excel or Google Sheets? Yes. Every run downloads as JSON, CSV, Excel, XML or RSS, and works with Make, Zapier, n8n and the Apify API.

中文简介

B站弹幕爬虫:按视频链接、BV号、搜索关键词、UP主或热门/排行榜采集哔哩哔哩弹幕,含播放时间、颜色、模式和发送时间。无需登录,支持关键词过滤、弹幕密度时间线、情感分析和增量采集。导出 JSON、CSV 或 Excel,每 1,000 条 $1。

Support

Found a bug or need a field? Open an issue on the Actor's Issues tab.