Bilibili Scraper - Chinese Video Intelligence avatar

Bilibili Scraper - Chinese Video Intelligence

Pricing

from $5.00 / 1,000 item scrapeds

Go to Apify Store
Bilibili Scraper - Chinese Video Intelligence

Bilibili Scraper - Chinese Video Intelligence

Extract videos, comments, creator profiles, and trending content from Bilibili (哔哩哔哩), China's largest video platform. 300M+ users. Danmaku, coins, favorites included. No API key, no browser needed. Part of the Chinese Digital Intelligence Suite.

Pricing

from $5.00 / 1,000 item scrapeds

Rating

0.0

(0)

Developer

Sami

Sami

Maintained by Community

Actor stats

0

Bookmarked

13

Total users

7

Monthly active users

4.4 hours

Issues response

12 days ago

Last modified

Share

Extract videos, comments, and creator analytics from Bilibili (哔哩哔哩) — China's YouTube with 300M+ monthly active users. The most comprehensive Bilibili scraper on Apify. No API key, no browser needed.

No API key required. No browser. No proxy. Pure HTTP — fast and cheap.

How to scrape Bilibili in 3 easy steps

  1. Go to the Bilibili Scraper page on Apify and click "Try for free"
  2. Configure your input — choose a mode (search, video_detail, video_comments, user_videos, or popular), enter your keywords or video URLs, and set the number of results
  3. Click "Run", wait for the scraper to finish, then download your data in JSON, CSV, or Excel format

No coding required. No API key. Works with Apify's free plan.

Chinese Digital Intelligence Suite by Zhorex: Bilibili (video) + RedNote/Xiaohongshu (social commerce) + Zhihu (Q&A) + Weibo (microblogging). The only developer on Apify specializing in Chinese platforms.

What is Bilibili?

Bilibili is China's premier video platform, known for anime, gaming, tech content, and education. Unlike YouTube, Bilibili features danmaku (弹幕) — real-time scrolling comments that overlay the video. With 300M+ monthly active users, it's where Chinese Gen Z and millennials consume and create content.

Bilibili-specific data points this actor captures:

  • Danmaku count (弹幕) — live scrolling comments overlaid on videos
  • Coin count (投币) — Bilibili's tipping system where users "throw coins" at creators
  • Favorite count (收藏) — equivalent to "save" on other platforms
  • Standard metrics: views, likes, shares, replies

Bilibili API alternative

There is no official public Bilibili API available for international developers. Bilibili's internal APIs require Chinese phone verification, are undocumented, and frequently change. This Bilibili Scraper is the best Bilibili API alternative in 2026 — it handles all the complexity for you, returns structured data, and requires zero authentication. Extract videos, comments, danmaku counts, and creator analytics without dealing with Bilibili's internal endpoints.

What can this actor do?

ModeDescriptionInput needed
searchSearch videos by keyword (Chinese or English)Search query
video_detailFull video info with all engagement metricsVideo URLs or BVIDs
video_commentsComments with author info and likesVideo URLs or BVIDs
user_videosRecent videos from specific creatorsUser IDs (mid)
popularTrending/popular videos, filterable by categoryOptional category filter

Bilibili categories

Animation (动画), Music (音乐), Dance (舞蹈), Gaming (游戏), Knowledge (知识), Tech (科技), Sports (运动), Cars (汽车), Life (生活), Food (美食), Animal (动物圈), Fashion (时尚), Entertainment (娱乐)

Use cases

  • Gaming/anime brand monitoring — Track game launches and anime reactions on China's largest anime community
  • Content research — Analyze trending topics in Chinese youth culture and Gen Z interests
  • Creator analytics — Evaluate Bilibili KOLs (Key Opinion Leaders) for partnerships and sponsorships
  • Ad placement research — Understand which categories and content types perform best
  • Academic research — Study Chinese digital culture, danmaku behavior, and content trends
  • Market intelligence — Monitor product launches, brand mentions, and competitor content in China

Scrape Bilibili with Python, JavaScript, or no code

You can use the Bilibili Scraper directly from the Apify Console (no code), or integrate it into your own scripts with Python or JavaScript.

Python

from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("zhorex/bilibili-scraper").call(run_input={
"mode": "search",
"searchQuery": "人工智能教程",
"maxResults": 50
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

JavaScript

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('zhorex/bilibili-scraper').call({
mode: 'search',
searchQuery: '人工智能教程',
maxResults: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => console.log(item));

Input examples

Search videos

{
"mode": "search",
"searchQuery": "人工智能教程",
"maxResults": 50
}

Search videos with filters (v1.1+)

Sort by newest, views, danmaku, favorites, or comments. Filter by duration and publish date range.

{
"mode": "search",
"searchQuery": "AI",
"sortOrder": "pubdate",
"durationFilter": "medium",
"pubtimeBegin": "2026-01-01",
"pubtimeEnd": "2026-04-15",
"maxResults": 100
}

Sort orders:

  • totalrank — Relevance (default)
  • click — Most views first
  • pubdate — Newest first
  • dm — Most danmaku
  • stow — Most favorites
  • scores — Most comments

Duration filters: any, short (<10min), medium (10-30min), long (30-60min), verylong (>60min)

Date filters: pubtimeBegin / pubtimeEnd in YYYY-MM-DD format

Video details

{
"mode": "video_detail",
"videoUrls": [
"https://www.bilibili.com/video/BV1GJ411x7h7",
"BV1xx411c7mD"
]
}

Video comments

{
"mode": "video_comments",
"videoUrls": ["https://www.bilibili.com/video/BV1GJ411x7h7"],
"maxComments": 50,
"sortComments": "hot"
}

Sort options:

  • hot — top/most-liked comments first (default)
  • time — newest comments first
  • likes — sorted by like count descending

User/creator videos

{
"mode": "user_videos",
"userIds": ["546195", "1340190821"],
"maxResults": 30
}

Find a user's mid in their profile URL: space.bilibili.com/{mid}. Multiple users are processed in parallel (up to 3 concurrent). Each user's dataset output starts with a user profile item followed by their video items.

Popular/trending videos

{
"mode": "popular",
"category": "game",
"maxResults": 20
}

Output example

Video output

{
"type": "video",
"bvid": "BV1YXDfBUETP",
"aid": 116379604749273,
"title": "Example Video Title",
"description": "Video description...",
"url": "https://www.bilibili.com/video/BV1YXDfBUETP",
"thumbnailUrl": "https://i0.hdslb.com/bfs/...",
"duration": 167,
"durationFormatted": "2:47",
"viewCount": 1570113,
"likeCount": 182455,
"coinCount": 110535,
"favoriteCount": 63471,
"shareCount": 45918,
"danmakuCount": 7466,
"replyCount": 17276,
"authorName": "Creator Name",
"authorMid": 1340190821,
"publishDate": "2026-04-08T12:00:00+00:00",
"publishTimestamp": 1775822400,
"category": "Gaming",
"tags": ["anime", "action", "review"],
"scrapedAt": "2026-04-10T10:00:00+00:00"
}

In video_detail mode, tags are populated from Bilibili's tag endpoint. In search and user_videos modes, tags come from the search response (comma-separated list). In popular mode, tags is always an empty list (the popular endpoint doesn't include tag data).

Comment output

{
"type": "comment",
"commentId": 295779210449,
"text": "Comment text in Chinese...",
"likeCount": 10010,
"replyCount": 42,
"createdAt": "2026-04-08T10:00:00+00:00",
"createdTimestamp": 1775822400,
"authorName": "Username",
"authorMid": 12345678,
"authorAvatar": "https://i0.hdslb.com/bfs/face/...",
"authorLevel": 6,
"videoBvid": "BV1YXDfBUETP",
"scrapedAt": "2026-04-10T10:00:00+00:00"
}

User profile output (user_videos mode)

When you use user_videos mode, the dataset contains one user profile item per creator followed by their video items:

{
"type": "user",
"mid": 546195,
"name": "老番茄",
"face": "https://i0.hdslb.com/bfs/face/...",
"sign": "User bio / signature",
"level": 6,
"fans": 20189060,
"friend": 5,
"attention": 5,
"isOfficial": false,
"officialDesc": "",
"archiveCount": 652,
"likeCount": 0,
"profileUrl": "https://space.bilibili.com/546195",
"scrapedAt": "2026-04-10T10:00:00+00:00"
}

Pricing

This actor uses Apify's pay-per-event pricing:

EventPrice
1 item scraped$0.005
1,000 items$5.00

Technical details

  • No browser needed — uses Bilibili's public HTTP APIs
  • No proxy needed — Bilibili is accessible globally (some licensed content may be geo-restricted)
  • No API key needed — all endpoints are public
  • 256MB RAM — lightweight and efficient
  • Chinese text preserved — all content returned as-is in original language
  • Concurrent fetching — optimized for speed:
    • video_detail: up to 5 videos fetched in parallel, each with detail + tags fetched concurrently
    • video_comments: up to 3 videos processed in parallel
    • user_videos: up to 3 users processed in parallel
  • Consistent schema — every numeric field is always an integer (never null), tags is always a list, every item has all documented fields

Performance

Typical run times on Apify (256MB, no proxy):

ModeInputDurationThroughput
searchmax=30~5-6s~5 items/s
searchmax=50~7-8s~7 items/s
popularmax=40~5s~8 items/s
video_detail10 BVIDs~5s~2 items/s (incl. tag enrichment)
video_comments2 videos~4s
user_videos3 users, max=15~4s~4 items/s

Limitations

  • Comments from datacenter IPs: Bilibili throttles /x/v2/reply/main when called from cloud / datacenter IPs (like Apify's runners), returning only ~3 "top/pinned" comments per video. Full pagination (hundreds/thousands of comments) is only available via authenticated sessions or residential IPs. This is a Bilibili-side restriction, not a bug in this actor. Other modes (search, video_detail, popular, user_videos) are unaffected.

FAQ

Is there a Bilibili API?

There is no official public Bilibili API for international developers. Bilibili's internal APIs are undocumented, require Chinese phone verification, and change frequently. This Bilibili Scraper acts as the best API alternative — giving you structured data without any authentication.

How much does it cost to scrape Bilibili?

The Bilibili Scraper costs $0.005 per item scraped ($5 per 1,000 results). You can start with Apify's free plan, which includes $5 of monthly credits — enough for 1,000 Bilibili videos, comments, or data points.

Can I scrape Bilibili in Python?

Yes. Install the Apify Python client (pip install apify-client), then use the ApifyClient to call the zhorex/bilibili-scraper actor with your desired input. See the Python code example above.

This scraper only accesses publicly available data through Bilibili's public HTTP endpoints — the same data any visitor can see without logging in. It does not bypass any authentication or access private data. Always review your local laws and Bilibili's terms of service.

What is the best Bilibili scraper in 2026?

The Bilibili Scraper by Zhorex is the most comprehensive Bilibili scraper on Apify in 2026. It supports 5 modes (search, video details, comments, user videos, popular/trending), captures Bilibili-specific metrics like danmaku and coin counts, and runs without a browser, proxy, or API key.

Integrations & data export

The Bilibili Scraper integrates with your existing workflow tools:

  • Google Sheets — Send scraped Bilibili data directly to a spreadsheet
  • Zapier / Make / n8n — Automate workflows triggered by new Bilibili data
  • REST API — Call the actor programmatically and retrieve results via Apify's REST API
  • Webhooks — Get notified when a scraping run finishes and process data in real time
  • Data formats — Download results in JSON, CSV, Excel, XML, or RSS

Chinese Digital Intelligence Suite

Build complete China market intelligence with our suite of scrapers:

PlatformUsersWhat it covers
Bilibili (this actor)300M+ MAUVideo content, danmaku, creator analytics
RedNote/Xiaohongshu200M+ MAUSocial commerce, lifestyle, product reviews
Zhihu100M+ MAUQ&A, expert opinions, long-form content
Weibo580M+ MAUMicroblogging, trending topics, celebrity content

All four actors: no browser, no proxy, no API keys. Built by Zhorex — the only developer on Apify specializing in Chinese platform intelligence.

More scrapers by Zhorex

Streaming

B2B Reviews

Other Tools


Your Review Matters

Building and maintaining scrapers for Chinese platforms takes serious effort — these APIs are undocumented, frequently change, and most scrapers on Apify for these platforms are broken.

If this Actor saved you time, a 30-second review makes a real difference:

  1. Go to the Bilibili Scraper page
  2. Scroll down and click the star rating
  3. Optionally leave a one-line comment about your use case

Why it matters: Reviews help this Actor rank higher in the Apify Store, which brings more users, which funds continued maintenance and new features. Every review counts — especially early ones.

Found a bug instead? Open an issue and I'll fix it fast.