Bilibili Video Scraper (哔哩哔哩) - Search, Popular & Video Stats
Pricing
from $3.40 / 1,000 videos
Bilibili Video Scraper (哔哩哔哩) - Search, Popular & Video Stats
Scrape Bilibili (B站) videos without login: keyword search, video URLs and the Popular feed. Views, likes, coins, favorites, danmaku, comments count, author and tags as flat rows. Pay only per video.
Pricing
from $3.40 / 1,000 videos
Rating
0.0
(0)
Developer
QWIX Lab
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
6 days ago
Last modified
Categories
Features
Share
Bilibili Video Scraper (哔哩哔哩 / B站)
Extract public video data from Bilibili, China's largest video community, without a login and without cookies of your own.
- Keyword search – up to 1,000 videos per keyword (Bilibili's own limit), sorted by relevance, views, date, danmaku or favorites.
- Video URLs / IDs – full stats for any public video (
BV…,av…or a bilibili.com link). - Popular feed (热门) – what is trending on Bilibili right now.
Every row is flat (no nested objects), so it opens directly in Excel, Google Sheets or any BI tool.
What you can use it for
- Track Chinese-market trends, brands and competitors on Bilibili.
- Find creators (UP主) for a niche and compare their reach.
- Monitor views, likes, coins and favorites of selected videos over time (schedule the Actor).
- Build datasets for research on Chinese video content.
Input
| Field | Type | Description |
|---|---|---|
searchQueries | list of strings | Keywords, Chinese or English |
maxResultsPerQuery | integer (1–1000, default 100) | Videos per keyword |
sortBy | totalrank · click · pubdate · dm · stow | Relevance · most views · newest · most danmaku · most favorites |
includeFullStats | boolean (default false) | Adds coins and shares to search results (one extra request per video) |
videoUrls | list of strings | Video links or BV/av IDs |
includePopular | boolean (default false) | Also scrape the Popular feed |
maxPopularVideos | integer (default 100) | Videos taken from the Popular feed |
proxyConfiguration | proxy | Apify Proxy recommended |
Example:
{"searchQueries": ["咖啡", "python tutorial"],"maxResultsPerQuery": 100,"sortBy": "totalrank","videoUrls": ["https://www.bilibili.com/video/BV1aiKVzoE7t/"],"includePopular": true,"maxPopularVideos": 50,"proxyConfiguration": { "useApifyProxy": true }}
Output
One row per video:
| Field | Description |
|---|---|
source | search, url or popular |
query | Keyword (or the URL you provided) |
rank | Position in search results / Popular feed |
bvid, aid | Bilibili video IDs |
url | Video link |
title, description | Title and description (search highlight tags removed) |
coverUrl | Cover image |
durationSec | Length in seconds |
publishedAt | Publish time, ISO 8601 (UTC) |
authorName, authorMid, authorUrl | Uploader (UP主) name, ID and channel link |
category, tags | Category name and comma-separated tags (search results) |
views, likes, favorites, comments, danmaku | Engagement counters |
coins, shares | For URL and Popular rows always; for search rows when includeFullStats is on |
scrapedAt | When the row was collected |
Example row (real data from a test run):
{"source": "search","query": "咖啡","rank": 1,"bvid": "BV1aiKVzoE7t","url": "https://www.bilibili.com/video/BV1aiKVzoE7t","title": "【咖啡推荐】48天喝了上百杯咖啡,2025年度最新咖啡大测评!…","durationSec": 553,"publishedAt": "2025-06-24T11:37:31.000Z","authorName": "挑剔测评家","authorUrl": "https://space.bilibili.com/3493116086585951","category": "美食测评","views": 504888,"likes": 13905,"favorites": 10218,"comments": 394,"danmaku": 366,"coins": null,"shares": null}
See sample_output.json in the source for 20 complete rows.
Pricing
Pay per result: $3.40 per 1,000 videos ($0.0034 per video). You pay only for videos saved to your dataset. Set "Maximum cost per run" and the Actor stops cleanly at your budget.
Reliability
- Uses Bilibili's public web API, the same one the website uses for logged-out visitors.
- Automatic retries with exponential backoff; on rate-limit answers (-412, -352) it starts a fresh guest session and, with Apify Proxy, a new IP.
- A bad keyword or URL never fails the whole run: the Actor keeps everything it already collected and lists problems in the
FAILURESrecord of the key-value store.
FAQ
Do I need a Bilibili account or cookies? No. Only data that Bilibili shows to logged-out visitors is collected.
Why at most 1,000 results per keyword? Bilibili's search returns 50 pages of 20 results. Use several more specific keywords or different sort orders to get more.
Does it scrape comments or danmaku? Not yet. Bilibili shows only a few comments to logged-out visitors, so this Actor focuses on video data.
Which proxy should I use? Apify Proxy (automatic) works for most runs. If you see many retries in the log, switch to residential proxies.
Is it legal? The Actor collects only publicly available video data and no private user information. You are responsible for using the data in line with the laws that apply to you and Bilibili's terms.