Bilibili Scraper Pro — Videos, Danmaku & Creator API avatar

Bilibili Scraper Pro — Videos, Danmaku & Creator API

Pricing

from $1.00 / 1,000 bilibili item (video / creator / trending)s

Go to Apify Store
Bilibili Scraper Pro — Videos, Danmaku & Creator API

Bilibili Scraper Pro — Videos, Danmaku & Creator API

Fast, 10x cheaper Bilibili (B站) scraper & API. Extract video search, engagement stats, parsed timestamped danmaku XML, popular charts, and creator profiles with zero browser overhead.

Pricing

from $1.00 / 1,000 bilibili item (video / creator / trending)s

Rating

0.0

(0)

Developer

Moe Over

Moe Over

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 hours ago

Last modified

Features

Limited permissions

Share

Fast, reliable Bilibili (B站) Video, Creator, Trending Chart & Parsed Timestamped Danmaku (弹幕) XML API — engineered for zero browser overhead, SPI guest-session reliability, and 10x lower cost than legacy scrapers.

Key Capabilities & Advantages

  • Zero-Browser, Zero-Proxy Architecture: Runs cleanly in lightweight containers with near-instant startup and high reliability.
  • Schema-First & MCP-Ready: Ships with strict Input, Output, and Dataset table schemas for seamless use with Apify MCP Server (Claude / Cursor), n8n, Make, Clay, and Zapier.
  • Transparent Pay-Per-Event Pricing: Pay only for verified records delivered ($2.00 per 1,000 bilibili video, trending, or creator records) — never for idle browser compute.
  • Chinese Market & Brand Sentiment Research: Track video mentions, views, likes, coins (投币), favorites, and shares across product keywords.
  • Danmaku (弹幕) Audience Mining: Enable includeDanmaku: true to automatically parse raw XML bullet-comments into timestamped JSON plus top repeated audience phrases (danmakuTopPhrases).
  • Creator / KOL Discovery & Vetting: Pull creator profiles (mode: creator) with follower counts, archive counts, total likes, and official verification titles.
  • Viral Trend Monitoring: Schedule mode: popular daily to track rising Chinese tech, gaming, AI, and consumer video trends.

Input Configuration

Every field below matches the Actor's live Input Schema:

ParameterTypeRequiredDefaultDescription
modestringNo"search"Choose what to extract: keyword video search, specific video URLs/BVIDs, creator profiles, or live popular/trending charts.
keywordsarrayNo["AI Agent"]List of Chinese or English keywords to search on Bilibili (e.g. 'AI Agent', '黑神话悟空', 'Python').
searchOrderstringNo"totalrank"How to sort video search results.
videoUrlsarrayNo[]Accepts full URLs (https://www.bilibili.com/video/BV...) or raw BV IDs (BV1...).
creatorIdsarrayNo[]Accepts numeric Bilibili UIDs (mid) or space URLs (https://space.bilibili.com/946974).
includeDanmakubooleanNofalseWhen enabled on 'video' or 'search' (with enrichDetails) mode, fetches and parses the video's danmaku XML into structured timestamped bullet comments + top phrases.
maxDanmakuPerVideointegerNo200Maximum parsed danmaku lines stored per video when includeDanmaku is enabled.
enrichVideoDetailsbooleanNofalseCalls Bilibili's video detail API for each search hit to add exact likes, coins, shares, favorites, and CID.
maxItemsintegerNo30Maximum number of items returned per keyword (search) or total items (popular).

Example Input JSON

{
"mode": "search",
"keywords": [
"AI Agent"
],
"searchOrder": "totalrank",
"videoUrls": [],
"creatorIds": [],
"includeDanmaku": false,
"maxDanmakuPerVideo": 200,
"enrichVideoDetails": false,
"maxItems": 20
}

Output Data Structure

Results are written to the default Apify Dataset and downloadable as JSON, CSV, Excel (XLSX), XML, or RSS.

FieldTypeDescription
itemTypestringItem Type
bvidstringBVID
titlestringTitle
authorstringCreator
viewsnumberViews
likesnumberLikes
coinsnumberCoins
danmakuCountnumberDanmaku Count
publishedDatestringPublished Date
urlstringURL

Sample Output Record

{
"itemType": "video",
"bvid": "BV1xx411c7mD",
"title": "AI Agent Workflow Deep Dive",
"author": "TechCreatorCN",
"views": 184200,
"likes": 12450,
"coins": 4810,
"danmakuCount": 920,
"publishedDate": "2026-11-20",
"danmakuTotalInXml": 920,
"danmakuTopPhrases": [
{
"text": "太强了",
"count": 48
},
{
"text": "实用",
"count": 31
}
],
"url": "https://www.bilibili.com/video/BV1xx411c7mD"
}

Transparent Pricing (Pay-Per-Event)

  • Actor Start (apify-actor-start): $0.00005 flat startup fee per run.
  • Primary Event (item-result): $0.0020 per item ($2.00 / 1,000) — Bilibili video, trending, or creator record.
  • Optional Add-On Event (danmaku-pack): $0.0050 per item ($5.00 / 1,000) — Parsed timestamped Danmaku XML + top phrases (optional).
VolumeEstimated Total Cost
100 results$0.2001
1,000 results$2.00
10,000 results$20.00
50,000 results$100.00

Set Apify's built-in Max cost per run cap anytime to guarantee strict budget control.


Integrations (API, Python, Node.js, n8n & AI Agents MCP)

cURL (Synchronous JSON Response)

curl -X POST "https://api.apify.com/v2/acts/moeover~bilibili-pro-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"mode": "search", "keywords": ["AI Agent"], "searchOrder": "totalrank", "videoUrls": [], "creatorIds": [], "includeDanmaku": false, "maxDanmakuPerVideo": 200, "enrichVideoDetails": false, "maxItems": 20}'

Python (apify-client)

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("moeover/bilibili-pro-scraper").call(run_input={"mode": "search", "keywords": ["AI Agent"], "searchOrder": "totalrank", "videoUrls": [], "creatorIds": [], "includeDanmaku": false, "maxDanmakuPerVideo": 200, "enrichVideoDetails": false, "maxItems": 20})
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(f"Fetched {len(items)} records")

Node.js / TypeScript (apify-client)

import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: "YOUR_APIFY_TOKEN" });
const run = await client.actor("moeover/bilibili-pro-scraper").call({"mode": "search", "keywords": ["AI Agent"], "searchOrder": "totalrank", "videoUrls": [], "creatorIds": [], "includeDanmaku": false, "maxDanmakuPerVideo": 200, "enrichVideoDetails": false, "maxItems": 20});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Claude Desktop / Cursor MCP Server

{
"mcpServers": {
"apify": {
"command": "npx",
"args": ["-y", "@apify/actors-mcp-server", "--actors", "moeover/bilibili-pro-scraper"],
"env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
}
}
}

Frequently Asked Questions

Do I need Chinese residential proxies or Bilibili cookies?

No. The Actor automatically initializes guest WBI signing keys and SPI fingerprint tokens (buvid3/buvid4) directly from Apify Cloud.

What formats are accepted for videoUrls and creatorIds?

Pass full Bilibili URLs (https://www.bilibili.com/video/BV...), bare BV IDs, space.bilibili.com/<uid> URLs, or numeric UIDs.

How is Danmaku priced?

If includeDanmaku is false, you only pay $0.002 per item ($2.00 / 1,000). When enabled, parsed Danmaku packs add $0.005 per video.

Support & Reliability

This Actor is continuously monitored via automated weekly live canary runs. If you need a custom field, higher rate limit, or encounter an upstream change, open an issue in the Issues tab on Apify Console for rapid resolution.


More Fast, Zero-Browser APIs by MoeOver