Bilibili Scraper avatar

Bilibili Scraper

Pricing

from $2.50 / 1,000 results

Go to Apify Store
Bilibili Scraper

Bilibili Scraper

Scrape Bilibili videos by URL, user or search term: title, stats, tags, author, plus optional comments and danmaku. No login or cookies needed. Pay only for videos returned.

Pricing

from $2.50 / 1,000 results

Rating

0.0

(0)

Developer

Muhammad Noman Riaz

Muhammad Noman Riaz

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Share

Scrape Bilibili (哔哩哔哩) videos without login or cookies. Give it video URLs, user space URLs or search keywords, and get one clean record per video: title, description, author, publish date, duration, views, likes, coins, favorites, shares, danmaku count, comment count, tags and thumbnail. Optionally add top comments and the full danmaku (bullet comment) feed with timestamps.

You only pay for videos that are returned. Videos that are removed, private, region-locked or still failing after all retries are skipped and not charged. They are listed in FAILED_ITEMS in the run's key-value store with the reason.

What you can use it for

  • Track views, likes, coins and favorites of Bilibili creators and videos over time
  • Research trends on Bilibili by keyword
  • Collect danmaku for audience sentiment and engagement analysis by timestamp
  • Monitor a creator's newest uploads
  • Build Chinese video datasets for research or LLM work

Features

  • No login, no cookies: uses Bilibili's public web APIs only
  • Three ways in: video URLs (/video/BV... or /video/av...), user space URLs (space.bilibili.com/<mid>, newest videos first) and search terms
  • Stable English field names, with ISO dates
  • Danmaku: text and playback time in seconds for every bullet comment the public feed returns
  • Comments: top comments with text, likes, date and author name
  • Retries on a fresh proxy IP when Bilibili rate-limits (codes -412 and -352)
  • Duplicates removed: a video found by several sources is scraped once

Input

{
"startUrls": [
{ "url": "https://www.bilibili.com/video/BV17x411w7KC" },
{ "url": "https://space.bilibili.com/2" }
],
"searchTerms": ["猫"],
"maxItems": 20,
"includeComments": true,
"maxCommentsPerVideo": 20,
"includeDanmaku": false
}
FieldDescription
startUrlsVideo URLs and user space URLs
searchTermsKeywords to search videos for
maxItemsMax videos per user URL and per search term (default 20)
includeCommentsAdd top comments to each video (default off)
maxCommentsPerVideoUpper limit of comments per video (default 20)
includeDanmakuAdd danmaku to each video (default off)
maxConcurrencyVideos processed in parallel (default 5)
maxRequestRetriesAttempts per video or source, each on a new IP (default 6)
proxyProxy settings, residential recommended

Output

One item per video:

{
"bvid": "BV17x411w7KC",
"aid": 170001,
"title": "【MV】保加利亚妖王AZIS视频合辑",
"description": "sina 保加利亚超级天王 Azis1999年出道...",
"url": "https://www.bilibili.com/video/BV17x411w7KC",
"duration": 2412,
"publishedAt": "2011-11-09T14:55:33.000Z",
"author": { "mid": 122541, "name": "冰封.虾子" },
"stats": {
"views": 45824141,
"likes": 943259,
"coins": 294996,
"favorites": 876996,
"shares": 43204192,
"danmaku": 915678,
"comments": 184148
},
"tags": ["保加利亚妖王", "保加利亚", "Азис", "azis", "mv"],
"thumbnail": "https://i2.hdslb.com/bfs/archive/1ada8c32a9d168e4b2ee3e010f24789ba3353785.jpg",
"category": null,
"categoryId": 2017,
"comments": [
{ "text": "妖王为了提倡节约用水...", "likes": 181172, "publishedAt": "2019-02-03T04:07:30.000Z", "authorName": "君之自由" }
],
"danmaku": [
{ "text": "欢迎来到米奇妙妙屋", "timeSec": 3.848 }
]
}

duration and timeSec are in seconds. comments and danmaku appear only when you turn them on. category is the category name when Bilibili includes it in the response, which it often does not; categoryId is always filled.

Limits

  • Comments: without login, Bilibili only serves a few top comments per video, usually 3. This actor does not log in, so it cannot return more than Bilibili shows to a logged-out visitor.
  • Danmaku come from Bilibili's public XML feed, which holds a capped sample (at most 1,800 lines per video in our tests), not every danmaku ever sent. For multi-part videos, only the first part is read.
  • User videos are listed through Bilibili's public series endpoint, newest first.
  • Search returns up to 20 results per page and follows Bilibili's default ranking.
  • Short links (b23.tv), bangumi, live streams and articles are not supported.

Privacy

The actor collects only public video data and, for comments, the commenter's public display name. It does not collect user IDs of commenters, the hashed sender IDs in the danmaku feed, emails or any private data.

FAQ

Do I need a Bilibili account? No. Everything comes from public endpoints that work for logged-out visitors.

Why did some videos fail? Removed, private or region-locked videos cannot be scraped. Check FAILED_ITEMS in the key-value store. You are not charged for them.

Which proxy should I use? Bilibili rate-limits busy IPs. Residential proxies with a low maxConcurrency give the most stable runs.