Bilibili Video Scraper
Pricing
Pay per event
Bilibili Video Scraper
Scrape Bilibili (B站) videos, comments, and creator data by keyword search or direct video URL. 40+ fields per video. No browser needed — uses Bilibili public API directly.
Pricing
Pay per event
Rating
0.0
(0)
Developer
James Huang
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
0
Monthly active users
2 days ago
Last modified
Categories
Share
📺 Bilibili Scraper — B站爬虫 | Video & Comment Data Extraction API
Scrape Bilibili (哔哩哔哩/B站) videos, comments, and creator data by keyword search or direct video URL. The most comprehensive bilibili scraper and bilibili API tool for data extraction from China's largest video platform — 40+ data fields per video, full comment threads, creator analytics, and danmaku counts. No login required.
Features
- Keyword Search — Search Bilibili videos by keyword, get ranked results with full metadata
- Direct URL Mode — Scrape specific videos by BV ID or bilibili.com URL (no login, no cookie)
- 40+ Data Fields — Title, description, views, likes, coins, favorites, shares, danmaku count, duration, publish date, tags, cover image, and more
- Comments Scraper — Extract comments with author info, likes, reply count, timestamps
- Creator Info — Author name, avatar, mid, follower stats
- Sorting Options — Sort by comprehensive, most viewed, newest, most danmaku, most collected
- No Browser Needed — Uses Bilibili's public API directly via the bilibili api, no headless browser required
- Fast & Efficient — 500+ videos in under 60 seconds
- Chinese & English Keywords — B站爬虫 supports both Chinese and English search terms
Use Cases
- Content Research — Analyze trending topics, video performance benchmarks on B站
- KOL Discovery — Find top creators in a niche by engagement metrics
- Market Research — Understand Chinese audience interests and content trends
- Sentiment Analysis — Extract comments for NLP/sentiment analysis pipelines
- AI Training Data — Collect structured Chinese video metadata and comments for LLM fine-tuning
- Competitive Monitoring — Track competitor video performance on bilibili.com
- Academic Research — Study Chinese digital media patterns and user behavior
- Social Listening — Monitor brand mentions and audience reactions across Bilibili videos
- Price Monitoring — Track product review videos and consumer sentiment in Chinese markets
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
searchKeywords | array | No* | ["人工智能"] | Keywords to search on bilibili |
videoUrls | array | No* | [] | Direct BV IDs or bilibili.com URLs |
maxResults | int | No | 50 | Max videos per keyword |
extractComments | bool | No | false | Extract comments per video |
maxComments | int | No | 100 | Max comments per video |
sortBy | select | No | totalrank | Sort: comprehensive, views, newest, danmaku, favorites |
proxyConfiguration | object | No | Apify proxy | Proxy config (residential recommended outside China) |
*At least one of searchKeywords or videoUrls must be provided.
Output Fields
Video Object (40+ fields)
| Field | Type | Description |
|---|---|---|
bvid | string | Bilibili video ID (BV format) |
aid | int | Bilibili video ID (AV format) |
title | string | Video title (HTML tags stripped) |
description | string | Video description |
author | string | Creator name |
mid | int | Creator user ID |
authorAvatar | string | Creator avatar URL |
viewCount | int | Total views |
likeCount | int | Total likes |
coinCount | int | Total coins (Bilibili virtual currency) |
favoriteCount | int | Total favorites |
shareCount | int | Total shares |
danmakuCount | int | Total danmaku (bullet comments) |
replyCount | int | Total comments |
duration | string | Video duration (MM:SS or HH:MM:SS) |
publishDate | string | ISO date string |
coverUrl | string | Cover image URL |
tags | array | Video tags |
category | string | Video category name |
url | string | Video URL on bilibili.com |
comments | array | Comments (if extractComments=true) |
Comment Object
| Field | Type | Description |
|---|---|---|
commentId | int | Comment ID |
content | string | Comment text |
author | string | Commenter name |
authorMid | int | Commenter user ID |
likes | int | Comment likes |
replyCount | int | Number of replies |
timestamp | string | ISO date string |
How It Works
- Input your keywords or URLs — Provide search keywords (e.g., "人工智能", "tech review") or direct BV/AV video URLs
- API-based scraping — The actor calls Bilibili's public search and video info APIs directly (no headless browser)
- Optional comment extraction — If enabled, fetches comment threads via Bilibili's reply API
- Structured JSON output — Results are saved to the Apify dataset as clean, ready-to-use JSON
Pricing
This Actor uses pay-per-event pricing:
| Event | Cost |
|---|---|
| Actor start (1GB RAM) | $0.005 |
| Video scraped | $0.005 |
| Comment extracted | $0.002 |
Example: 100 videos with 50 comments each = $0.005 + (100 × $0.005) + (5000 × $0.002) = $10.505
Technical Details
This bilibili video scraper uses Bilibili's public API endpoints directly:
- Search:
api.bilibili.com/x/web-interface/search/type - Video info:
api.bilibili.com/x/web-interface/view - Comments:
api.bilibili.com/x/v2/reply/main
No headless browser is needed, making it fast and resource-efficient. The chinese video platform scraper works with Bilibili's cookie-based access system. Residential proxies are recommended when running from outside China to avoid IP-based rate limiting.
Runtime & SDK
- Runtime: Node.js 20
- SDK: Apify SDK v3 + Crawlee v3
- Execution: Single API calls, no browser overhead
Why Use This vs Alternatives?
| Feature | This Actor | Bilibili Video Search | Bilibili Comments Scraper | TikTok/Douyin/Bilibili Scraper |
|---|---|---|---|---|
| Keyword search | ✅ | ✅ | ❌ | ✅ |
| Direct URL mode | ✅ | ❌ | ✅ | ✅ |
| Comment extraction | ✅ | ❌ | ✅ | ✅ |
| 40+ video fields | ✅ | ❌ | ❌ | ❌ |
| Danmaku counts | ✅ | ✅ | ❌ | ❌ |
| Sorting options | ✅ | ❌ | ❌ | ❌ |
| No login required | ✅ | ✅ | ✅ | ✅ |
| Single-platform focus | ✅ | ✅ | ✅ | ❌ (multi-platform) |
FAQ
Keywords
bilibili scraper · bilibili api · b站爬虫 · bilibili video scraper · bilibili comments · bilibili data extraction · chinese video scraper · bilibili search · b站视频 · bilibili crawler · bilibili scraper api · 哔哩哔哩爬虫 · bilibili video downloader · bilibili video data · chinese video platform · bilibili danmaku · bilibili creator data · bilibili kol · b站视频数据 · bilibili web scraper · china social media scraper · bilibili keyword search · bilibili bv id · bilibili metadata extraction