# Bilibili Scraper (`blueskyscraper/bilibili-scraper`) Actor

Scrape Bilibili without a login: video stats (views, likes, coins, favorites, shares, danmaku), keyword search, uploader profiles with followers and all their videos, danmaku bullet comments with timestamps, top comments with replies, and trending lists. Export JSON, CSV, Excel.

- **URL**: https://apify.com/blueskyscraper/bilibili-scraper.md
- **Developed by:** [BlueskyScraper](https://apify.com/blueskyscraper) (community)
- **Categories:** Social media, Videos, Agents
- **Features:** Limited permissions
- **Stats:** 104 total users, 43 monthly users, 99.5% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.40 / 1,000 videos

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

**Bilibili Scraper** collects data from Bilibili (哔哩哔哩, B站) **without an account, cookies or proxy settings**: **video stats** (views, likes, coins, favorites, shares, danmaku and comment counts, tags, engagement rate), **keyword search**, **uploader (UP主) profiles** with followers and all their videos, **danmaku bullet comments** with video timestamps, **comments with replies**, and **trending and category rankings**. **From $1.5 per 1,000 rows, no start fee.**

### Tested head-to-head — 9 October 2026

![Bilibili scrapers tested head-to-head on 9 October 2026: this Actor returned 20 of 20 search results, full video stats with coins, shares, tags and category, 20 comments, 20 danmaku and 20 uploader videos, at $1 per 1,000 search results and $2 per 1,000 full videos](https://api.apify.com/v2/key-value-stores/tZJ3TnhQJ1jqUQVXq/records/bilibili-tested-2026-10-09.png)

The same requests went to this Actor and to eight of the most-used Bilibili scrapers on the Apify Store (A–H, most users first): a keyword search for `minecraft` (20 videos), full stats for 3 video pages, 20 comments of one video, 20 danmaku of the same video, 20 videos of one uploader, and a speech-to-text transcript.

| | This Actor | The others |
|---|---|---|
| Search: 20 asked, rows back | **20** in 3.8 s | 0–20, 4.6–64.9 s |
| Price per 1,000 search results | **$1.5**, no start fee | $0.08 + $0.005 a run (G) to $20.00 |
| Full video row: likes, coins, shares, tags, category | **all five** | A: no category · E: no coins, tags · G: no likes, coins, shares |
| Price per 1,000 full videos | **$3** | $1.00 (E, fewer fields) to $20.00 |
| Comments: 20 asked | **20** (9 top-level + replies) | A, B: 20 · D: 1 · G: 3 |
| Danmaku: 20 asked | **20**, $0.02 per 1,000 | D: whole video in one charge · F: failed |
| Uploader: 20 videos asked | **20 + profile** | A: 20 + profile · B: 20 · D: free-tier cap |
| Transcript of a 58-minute lecture | **5-minute demo, $0.003 a minute** | H: empty text (5-minute cap) |

Bilibili shows visitors who are not logged in only a few top-level comments per order; this Actor collects them from every public order and adds the replies under them, which stay fully open.

### What is Bilibili Scraper?

A **Bilibili API alternative** for influencer research, brand monitoring in China, content and trend analysis, and sentiment studies. Paste Bilibili links or type keywords, pick a mode, export JSON, CSV or Excel, or call it by API.

| Mode | You give | You get |
|---|---|---|
| **Videos** | video URLs, BV or av IDs | full stats, tags, parts, uploader, honors |
| **Search** | keywords | up to 1,000 videos per keyword with views, danmaku, length, date, uploader |
| **Uploaders** | space URLs or UIDs | followers, following, likes, level, verification, live room, plus their videos |
| **Danmaku** | video URLs | every bullet comment with video time, send time, mode, color |
| **Comments** | video URLs | top-level comments (hot or newest) and the replies under them, with likes and authors |
| **Trending** | a list name | the popular list or a category ranking with full stats |
| **Transcripts** | video URLs | speech-to-text of the video's audio: full text, timed lines, detected language — even where Bilibili hides subtitles from visitors |

### 🔬 Panels, research and data contract

- **Re-measure a panel daily**: put the BV links of the videos you track into the Videos mode — every run returns today's views, likes, coins, favorites, shares, comments and danmaku for the same IDs (monitoring mode, which returns only new rows, does not replace this). Give a **Panel id** and the run keeps a panel journal: free `panel_change` rows when a video joins, leaves or becomes unavailable (it stays in the panel), and a `PANEL` record with the full membership.
- **🧾 Data contract** (on by default) adds a `provenance` block (platform, upstream API, mode, source ID, canonical URL, position, observedAt / collectedAt, schema version, checksum, `rawChecksum` of the raw Bilibili answer, your snapshot / panel / query id) and a `metrics` block — every interaction type stays a separate counter, each a value or `null` with the reason, never summed. Each run writes a `MANIFEST` record per input — for searches the applied filters, pages read, Bilibili's own total and results excluded by the date check; for comments the stated total and whether the visitor preview was capped.
- **🕶️ Pseudonymous authors** (on by default — set **Author data** to *Full* for names, IDs and profile links) replace uploader and commenter names, IDs, links and avatars with a stable `uploaderKey` / `userKey`; @mentions inside comments, danmaku, titles and descriptions become `@user_` + a stable key.

### How much does it cost?

**New prices from 19 November 2026** — the table shows them; until then the previous prices apply.

| Row | Price |
|---|---|
| **Video** (full stats) | $0.003 — $3 per 1,000 |
| **Search result** (or a video from an uploader's list) | $0.0015 — $1.5 per 1,000 |
| **Uploader** profile | $0.003 — $3 per 1,000 |
| **Danmaku** comment | $2e-05 — $0.02 per 1,000 |
| **Comment** or reply | $0.0015 — $1.5 per 1,000 |
| **Transcript minute** (Transcripts mode of Bilibili Scraper and Bilibili Video Scraper) | $0.003 per started minute of audio — a 10-minute video is $0.03 |

No start fee and no proxy charge. Error rows are never billed. **Maximum rows per run** is a hard ceiling on the bill.

### ⬇️ Input

```json
{
    "mode": "search",
    "keywords": ["原神", "minecraft"],
    "sortBy": "click",
    "maxResultsPerInput": 200
}
```

### ⬆️ Output

```json
{
    "type": "video",
    "bvid": "BV1es411D7sW",
    "url": "https://www.bilibili.com/video/BV1es411D7sW",
    "title": "【循环向】跟着雷总摇起来！Are you OK！",
    "publishedAt": "2015-04-30T03:55:50.000Z",
    "durationSec": 132,
    "views": 51845079,
    "likes": 1803331,
    "coins": 1141962,
    "favorites": 1225514,
    "shares": 394881,
    "danmakuCount": 191528,
    "comments": 84542,
    "engagementRate": 8.97,
    "tags": ["小米", "动感视频"],
    "uploaderName": "Mr.Lemon",
    "uploaderUrl": "https://space.bilibili.com/609687"
}
```

### Use cases

- **Influencer research** — uploaders with followers, likes, verification and every video they posted.
- **Brand monitoring in China** — schedule a keyword and get only new videos with **Monitoring mode**.
- **Audience reaction** — danmaku show what viewers wrote at each second of the video.
- **Trend analysis** — the popular list and category rankings with engagement rates.

### ❓ FAQ

#### Do I need a Bilibili account, cookies or a proxy?

No. The Actor reads what bilibili.com shows any visitor who is not logged in. If Bilibili answers with a risk-control check, the request is retried on a fresh visitor session and, if needed, through a chain of proxies from the cheapest to an unblocking service — by itself, at no extra charge to you.

#### Does it work with Chinese keywords?

Yes. Search accepts Chinese, English or any other text: `原神`, `iphone 17`, `minecraft`. Titles and descriptions come back as published, usually in Chinese.

#### How many comments can I get?

Bilibili shows a visitor who is not logged in only a few top-level comments of a video in each order. The Actor collects them from every public order (hot, newest, most replied) — usually around 10 distinct comments — puts them first, in the order you picked, and then adds **the replies under them**, which are fully open, so a popular video still gives hundreds of rows. Turn off **Add replies** to get only the top-level comments. Danmaku have no such limit.

#### Is it legal to scrape Bilibili?

The Actor reads only public pages without logging in. User names and comments are personal data under laws like the GDPR and PIPL — have a lawful reason to process them.

#### Can I get only new rows on a schedule?

Yes. Give **Monitoring mode** a name and schedule the Actor: every run returns only videos, danmaku or comments not delivered before under that name.

#### Why transcribe the audio instead of reading Bilibili subtitles?

Bilibili shows its CC and AI subtitles only to logged-in viewers, and most videos have none. **Transcripts** mode (in [Bilibili Scraper](https://apify.com/blueskyscraper/bilibili-scraper) and [Bilibili Video Scraper](https://apify.com/blueskyscraper/bilibili-video-scraper)) downloads the audio track a visitor can play and turns it into text with Whisper: full text, timed lines (`segments`: start, end, text) and the detected language. **Minutes of audio per video** caps how much of a long video is transcribed (from the start; `truncated` tells you when it stopped early) and therefore the bill. A 45-minute lecture takes about two minutes. Another Bilibili transcript actor in the Store charges $0.387 per transcript; here a 10-minute video costs $0.03.

### You might also like

| Actor | What it does |
|---|---|
| [Bilibili Video Scraper](https://apify.com/blueskyscraper/bilibili-video-scraper) | Full video stats and category rankings |
| [Bilibili Search Scraper](https://apify.com/blueskyscraper/bilibili-search-scraper) | Keyword search with sort, duration and date filters |
| [Bilibili Danmaku Scraper](https://apify.com/blueskyscraper/bilibili-danmaku-scraper) | Danmaku (bullet comments) with video timestamps |
| [Bilibili User Scraper](https://apify.com/blueskyscraper/bilibili-user-scraper) | Uploader (UP主) profiles and all their videos |

# Actor input Schema

## `mode` (type: `string`):

<b>Videos</b> — views, likes, coins, favorites, shares, danmaku and comment counts, tags, duration, uploader. <b>Search</b> — videos for a keyword. <b>Uploaders</b> — a creator's profile and followers, then their videos. <b>Danmaku</b> — the bullet comments shown over a video, with the second they appear. <b>Comments</b> — top-level comments in hot or newest order, then the replies under them. <b>Trending</b> — Bilibili's popular list or a category ranking.

## `videoUrls` (type: `array`):

<code>https://www.bilibili.com/video/BV1es411D7sW</code>, a BV ID like <code>BV1es411D7sW</code>, or an AV ID like <code>av2271112</code>. Used by Videos, Danmaku and Comments.

## `keywords` (type: `array`):

Search: Chinese or English, e.g. <code>minecraft</code>, <code>人工智能</code>, <code>露营</code>. Each keyword is one search, up to 1,000 videos.

## `userUrls` (type: `array`):

Uploader (UP主) space URL or UID: <code>https://space.bilibili.com/546195</code> or <code>546195</code>.

## `startUrls` (type: `array`):

Any bilibili.com link, routed automatically: video, b23.tv-free video page, uploader space, search page (<code>search.bilibili.com/all?keyword=…</code>) or the popular page.

## `maxResultsPerInput` (type: `integer`):

Cap for each input: search results per keyword, videos per uploader, danmaku or comments per video, trending videos.

## `sortBy` (type: `string`):

Bilibili's own search orders.

## `durationFilter` (type: `string`):

Search: Bilibili's length filter.

## `publishedAfter` (type: `string`):

Search: <code>YYYY-MM-DD</code>.

## `publishedBefore` (type: `string`):

Search: <code>YYYY-MM-DD</code>.

## `includeDetails` (type: `boolean`):

Search and uploader videos: open every video for likes, coins, favorites, shares, tags and uploader — billed as a video row.

## `includeVideos` (type: `boolean`):

Uploaders: after the profile, the uploader's videos with views, comments, danmaku and length ($0.0015 each).

## `videoOrder` (type: `string`):

Order of the uploader's videos.

## `commentSort` (type: `string`):

Comments: Bilibili's hot order (most liked and discussed first) or newest first.

## `includeReplies` (type: `boolean`):

Comments: after the top-level comments, add the replies under them while the limit per video has room. Top-level comments always come first.

## `maxTranscriptMinutes` (type: `integer`):

Transcripts: how much of each video to transcribe, from the start. Billed per started minute of audio. Up to 600.

## `transcriptLanguage` (type: `string`):

Leave on auto-detect, or fix the language for better accuracy on mixed or noisy audio.

## `allParts` (type: `boolean`):

Danmaku: read every part (P1, P2…) instead of the first.

## `includeTags` (type: `boolean`):

Videos and Trending: add the video's tags (one extra request per video, no extra charge).

## `trendingList` (type: `string`):

Trending: Bilibili's Popular list, or the ranking of one category.

## `maxItems` (type: `integer`):

Stop after this many rows in the whole run — a hard ceiling on cost.

## `monitoringStoreName` (type: `string`):

Give the run a name (e.g. <code>minecraft-new</code>) and every later run with the same name returns <b>only rows it has not delivered before</b> — new videos, new danmaku, new comments. Empty = normal run.

## `dataContract` (type: `boolean`):

Adds to every row a <code>provenance</code> block (platform, upstream API, mode, source ID, canonical URL, position, observedAt / collectedAt, schema version, checksum of ID + counters, <code>rawChecksum</code> — SHA-256 of the raw Bilibili answer the row came from, the answer itself is not stored) and a <code>metrics</code> block: views, likes, coins, favorites, shares, comments and danmaku as separate counters, each a value or <code>null</code> with the reason. Each run also writes a <code>MANIFEST</code> record: per input its status and rows, for searches the requested and applied filters, pages read, Bilibili's numResults and the results our date check excluded, for comments the stated total against what visitors can open.

## `authorPrivacy` (type: `string`):

Pseudonymous replaces uploader and commenter names, IDs, links and avatars with <code>uploaderKey</code> / <code>userKey</code> — a salted, stable hash (the same key for one account in every row type) for concentration analysis, without storing profiles. Uploader profile rows lose name, UID, links, avatar, bio, birthday and school; danmaku <code>userHash</code> becomes a salted <code>userKey</code>; the "回复 @name:" prefix of replies is removed; @mentions inside comment, danmaku, title and description text become <code>@user\_</code> + an 8-character key (the same salted hash, stable for one name); uploader inputs become the key in <code>sourceInput</code>.

## `stripSignedTokens` (type: `boolean`):

Removes signed parameters from links and image URLs. On by itself with pseudonymous authors.

## `snapshotId` (type: `string`):

Optional label of this snapshot (e.g. the date), written into provenance of every row.

## `panelId` (type: `string`):

Optional id of your fixed panel of videos (re-measure them daily with the Videos mode), written into provenance. In the Videos mode it also keeps a panel journal under this name: free <code>panel_change</code> rows (added / removed / kept_unavailable, with the reason) and a <code>PANEL</code> record with the full membership. A new id or version starts a new panel.

## `queryId` (type: `string`):

Optional id of your search profile version, written into provenance.

## Actor input object example

```json
{
  "mode": "videos",
  "videoUrls": [
    "https://www.bilibili.com/video/BV1es411D7sW",
    "https://www.bilibili.com/video/BV1xx411c7mD"
  ],
  "maxResultsPerInput": 50,
  "sortBy": "totalrank",
  "durationFilter": "any",
  "includeDetails": false,
  "includeVideos": true,
  "videoOrder": "pubdate",
  "commentSort": "hot",
  "includeReplies": true,
  "maxTranscriptMinutes": 30,
  "transcriptLanguage": "",
  "allParts": false,
  "includeTags": true,
  "trendingList": "popular",
  "maxItems": 10000,
  "dataContract": true,
  "authorPrivacy": "pseudonymous",
  "stripSignedTokens": true
}
```

# Actor output Schema

## `rows` (type: `string`):

One row per video, search result, uploader, danmaku or comment; error rows explain inputs that could not be read.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "videoUrls": [
        "https://www.bilibili.com/video/BV1es411D7sW",
        "https://www.bilibili.com/video/BV1xx411c7mD"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("blueskyscraper/bilibili-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "videoUrls": [
        "https://www.bilibili.com/video/BV1es411D7sW",
        "https://www.bilibili.com/video/BV1xx411c7mD",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("blueskyscraper/bilibili-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "videoUrls": [
    "https://www.bilibili.com/video/BV1es411D7sW",
    "https://www.bilibili.com/video/BV1xx411c7mD"
  ]
}' |
apify call blueskyscraper/bilibili-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blueskyscraper/bilibili-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/L36Ve66T7GZQr48P9/builds/e8c6CAgLVlU9eKiaC/openapi.json
