Bilibili Video Scraper avatar

Bilibili Video Scraper

Pricing

Pay per event

Go to Apify Store
Bilibili Video Scraper

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

James Huang

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

2 days ago

Last modified

Share

📺 Bilibili Scraper — B站爬虫 | Video & Comment Data Extraction API

Apify Actor Bilibili API Node.js 20 Pay Per Event

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

ParameterTypeRequiredDefaultDescription
searchKeywordsarrayNo*["人工智能"]Keywords to search on bilibili
videoUrlsarrayNo*[]Direct BV IDs or bilibili.com URLs
maxResultsintNo50Max videos per keyword
extractCommentsboolNofalseExtract comments per video
maxCommentsintNo100Max comments per video
sortByselectNototalrankSort: comprehensive, views, newest, danmaku, favorites
proxyConfigurationobjectNoApify proxyProxy config (residential recommended outside China)

*At least one of searchKeywords or videoUrls must be provided.

Output Fields

Video Object (40+ fields)

FieldTypeDescription
bvidstringBilibili video ID (BV format)
aidintBilibili video ID (AV format)
titlestringVideo title (HTML tags stripped)
descriptionstringVideo description
authorstringCreator name
midintCreator user ID
authorAvatarstringCreator avatar URL
viewCountintTotal views
likeCountintTotal likes
coinCountintTotal coins (Bilibili virtual currency)
favoriteCountintTotal favorites
shareCountintTotal shares
danmakuCountintTotal danmaku (bullet comments)
replyCountintTotal comments
durationstringVideo duration (MM:SS or HH:MM:SS)
publishDatestringISO date string
coverUrlstringCover image URL
tagsarrayVideo tags
categorystringVideo category name
urlstringVideo URL on bilibili.com
commentsarrayComments (if extractComments=true)

Comment Object

FieldTypeDescription
commentIdintComment ID
contentstringComment text
authorstringCommenter name
authorMidintCommenter user ID
likesintComment likes
replyCountintNumber of replies
timestampstringISO date string

How It Works

  1. Input your keywords or URLs — Provide search keywords (e.g., "人工智能", "tech review") or direct BV/AV video URLs
  2. API-based scraping — The actor calls Bilibili's public search and video info APIs directly (no headless browser)
  3. Optional comment extraction — If enabled, fetches comment threads via Bilibili's reply API
  4. Structured JSON output — Results are saved to the Apify dataset as clean, ready-to-use JSON

Pricing

This Actor uses pay-per-event pricing:

EventCost
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?

FeatureThis ActorBilibili Video SearchBilibili Comments ScraperTikTok/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