Bilibili Scraper (B站): Videos, Comments, Danmaku & Creators avatar

Bilibili Scraper (B站): Videos, Comments, Danmaku & Creators

Pricing

from $3.60 / 1,000 videos

Go to Apify Store
Bilibili Scraper (B站): Videos, Comments, Danmaku & Creators

Bilibili Scraper (B站): Videos, Comments, Danmaku & Creators

Bilibili (哔哩哔哩, B站) scraper API, no login: search videos by keyword, full video stats (views, likes, coins, favorites, shares), comments and reply threads, danmaku (弹幕) with a per-minute heatmap, creator (UP主) profiles with new-upload monitoring, and popular videos. Export JSON, CSV or Excel.

Pricing

from $3.60 / 1,000 videos

Rating

0.0

(0)

Developer

SinoData

SinoData

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

14 days ago

Last modified

Share

Bilibili Scraper: Videos, Comments, Danmaku & Creators (哔哩哔哩)

Extract public data from Bilibili (哔哩哔哩, B站), China's largest video community for Gen Z, anime, gaming, tech reviews and education. No login, no cookies, no browser. Fast HTTP requests against Bilibili's own web APIs.

What you can scrape

SourceWhat you get
Keyword searchVideos for any keyword (Chinese or English), sortable by relevance, views, newest, danmaku, favorites or comments, filterable by length
Video URLsFull stats: views, likes, coins, favorites, shares, danmaku and comment counts, tags, category, duration, cover, author
CommentsTop comments and their full reply threads, with likes, reply counts, author name and level
Danmaku (弹幕)The bullet comments shown over the video, with timestamp and color, plus a per-minute activity profile and peak minute
Creators (UP主)Profile (followers, total likes, video count, verification) and their latest uploads
PopularBilibili's current popular list (综合热门) with recommendation reasons

Use cases

  • Brand and product monitoring in China: see how a launch (iPhone, EV, game, cosmetics) is reviewed by Chinese creators and viewers.
  • KOL / influencer discovery: find creators by keyword, compare followers and engagement before a campaign.
  • Market research and sentiment: collect comments and danmaku for NLP, sentiment or topic analysis.
  • Content strategy: find which video lengths, titles and tags get the most views in a niche.
  • Academic research on Chinese internet culture.

How to use

  1. Add one or more search keywords, video URLs, creator URLs, or turn on Popular videos.
  2. Choose how many videos per source, and whether to include comments and danmaku.
  3. Run, then download the results as JSON, CSV, Excel or via API.

Accepted video inputs: https://www.bilibili.com/video/BV1GJ411x7h7, b23.tv short links, BV1GJ411x7h7, av170001. Accepted creator inputs: https://space.bilibili.com/946974 or 946974.

Example input

{
"searchQueries": ["iPhone 17 测评"],
"maxVideosPerSource": 50,
"searchSort": "click",
"fetchFullVideoDetails": true,
"includeComments": true,
"maxCommentsPerVideo": 100,
"includeCommentReplies": true
}

Creator monitoring (new uploads only)

Track creators (UP主) and get only their new videos: add their space URLs to Creator URLs, turn on Only new videos from creators, and run the Actor on a Schedule (for example every hour).

  • The first run returns each creator's latest videos (up to Max videos) and sets the baseline. After that, each run returns only videos uploaded since the previous run, marked isNewUpload: true.
  • Turn off Save creator profile on every run to pay only for new videos.
  • Comments and danmaku settings apply to the new videos too, so you can collect early reactions automatically.
  • Runs that share a Memory name share one memory. The memory is kept in a key-value store called bilibili-scraper-memory in your own Apify account; delete it to start over.
{
"creatorUrls": ["https://space.bilibili.com/946974"],
"maxVideosPerSource": 5,
"onlyNewCreatorVideos": true,
"includeCreatorProfile": false,
"memoryName": "my-creators"
}

Output

Every record has a type field: video, comment, danmaku or creator. Use the Videos and Comments views in the dataset tab, or filter by type when exporting.

Video

{
"type": "video",
"bvid": "BV1GJ411x7h7",
"url": "https://www.bilibili.com/video/BV1GJ411x7h7",
"title": "...",
"authorName": "...",
"authorMid": 946974,
"views": 1234567,
"likes": 45678,
"coins": 12345,
"favorites": 23456,
"shares": 3456,
"danmakuCount": 7890,
"commentCount": 4567,
"publishedAt": "2025-09-12T10:00:00.000Z",
"durationSeconds": 612,
"category": "数码",
"tags": ["iPhone", "测评"]
}

Comment

{
"type": "comment",
"videoBvid": "BV1GJ411x7h7",
"text": "...",
"likes": 321,
"replyCount": 12,
"authorName": "...",
"authorLevel": 6,
"createdAt": "2025-09-12T12:00:00.000Z",
"parentRpid": null
}

Danmaku

{
"type": "danmaku",
"videoBvid": "BV1GJ411x7h7",
"totalReturned": 1500,
"peakMinute": 3,
"peakMinuteCount": 240,
"perMinute": { "0": 120, "1": 80, "3": 240 },
"danmaku": [{ "timeSeconds": 3.2, "text": "前排", "color": "#ffffff", "sentAt": "2025-09-12T10:05:00.000Z" }]
}

Pricing

Pay only for results:

EventPrice
Video$0.004
Creator profile$0.004
Comment$0.001
Danmaku set (one per video, up to 10,000 danmaku)$0.004

1,000 videos with full stats cost $4. The run stops cleanly when it reaches the maximum cost you set.

Notes and limits

  • Only public data visible to a logged-out visitor is collected. Bilibili shows logged-out visitors only the top few (usually 3) top-level comments per video, but their reply threads are fully available, so with replies on (the default) you still get hundreds of comments from popular videos. Commenter IP location is not shown to logged-out visitors, so it is not included.
  • Subtitles: Bilibili only serves subtitle text to logged-in users. With full details on, each video lists which subtitle languages exist (subtitleLanguages), but not the subtitle text.
  • Bilibili serves a sample of danmaku (usually up to a few thousand per video) to the public XML endpoint, not the full history.
  • Search returns at most 1,000 results per keyword (Bilibili's own limit). Use several specific keywords for broader coverage.
  • If you run very large jobs and see many -352 / 412 errors in the log, enable Apify Proxy (residential) in the Advanced section.
  • Respect Bilibili's terms and applicable law, and don't use personal data (names, comments) for spam or harassment.

Feedback

Found a bug or need a field that's missing? Open an issue on the Issues tab and it will usually be fixed within a day or two.