# Bilibili Scraper - Creator & Video Growth Tracker (`khadinakbar/bilibili-scraper`) Actor

Track Bilibili (哔哩哔哩) creators, keywords and videos. Get views, likes, coins, favorites, shares, danmaku, comments and followers, plus growth since your last run and a fastest-growing rank. No login.

- **URL**: https://apify.com/khadinakbar/bilibili-scraper.md
- **Developed by:** [Khadin Akbar](https://apify.com/khadinakbar) (community)
- **Categories:** Social media, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 video trackeds

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 Creator & Video Tracker — Views, Coins & Follower Growth

### What does Bilibili Creator & Video Tracker do?

It tracks a **watchlist of Bilibili (哔哩哔哩) creators, keywords and videos** and tells you **what changed since your last run**: views, likes, coins, favorites, shares, danmaku (bullet comments), comments and followers gained, plus a **fastest-growing rank** for videos and creators. No login, no cookies.

### Why use it?

- **Growth, not just a snapshot.** Run it daily or weekly with the same tracker name and every row shows `viewsGained`, `coinsGained`, `followersGained` and speed (`viewsPerHour`, `followersPerDay`).
- **Decide who to sponsor, renew or drop.** `velocityRank` and `creatorVelocityRank` put the fastest-rising videos and creators at the top.
- **One clean table.** Creators, keyword search and direct video links in one run, one row shape, ready for Sheets, BI tools or AI agents.

### What data can it extract?

| Field | Example | Notes |
|---|---|---|
| `title` / `titleEnglish` | 失败公司的成功产品？… / "A successful product from a failed company?…" | English is optional |
| `viewCount`, `likeCount`, `coinCount`, `favoriteCount`, `shareCount`, `danmakuCount`, `commentCount` | 1,441,326 · 88,000 · 41,000 … | Every video row |
| `viewsGained`, `likesGained`, `coinsGained`, `favoritesGained`, `sharesGained`, `danmakuGained`, `commentsGained` | +640,000 | From the 2nd run |
| `viewsPerHour`, `velocityRank` | 2,667 · 1 | Fastest first |
| `authorName`, `authorUid`, `authorFollowers`, `authorVideoCount`, `authorVerifiedTitle` | 影视飓风 · 946974 · 19,137,361 | Creator profile |
| `followersGained`, `followersPerDay`, `creatorVelocityRank` | +18,300 | From the 2nd run |
| `topComments` | up to 3 top comments with likes | Optional |
| `danmakuReport` | peak moments, top phrases, mood | Paid add-on |
| `transcriptText`, `transcriptSegments` | 这个品牌的logo… | Paid add-on (speech-to-text) |
| `publishedAt`, `durationSec`, `coverUrl`, `videoUrl`, `bvid`, `aid` | 2026-11-17T08:20:00Z | |

### How to track Bilibili creators and keywords

1. Add **creators** (space.bilibili.com links, numeric UIDs or exact creator names), **keywords** (e.g. `原神`, `Xiaomi SU7`) and/or **videos** (BV links, BV/av ids, b23.tv links).
2. Pick a **tracker name**, e.g. `gaming-creators`. Runs with the same name are compared with each other.
3. Run it once to set the baseline, then schedule it (daily or weekly). From the second run on, every row shows what changed.

The first run of a tracker returns full stats with lifetime speed (`velocityBasis: "lifetime"` = views per hour since publish). Later runs use real growth (`velocityBasis: "since_last_run"`).

#### Example input

```json
{
  "creators": ["https://space.bilibili.com/946974", "老番茄"],
  "keywords": ["原神"],
  "trackerName": "gaming-creators",
  "maxVideosPerCreator": 20,
  "maxVideosPerKeyword": 20,
  "includeComments": false,
  "translateTitles": true
}
```

#### Example output row

```json
{
  "recordType": "video",
  "velocityRank": 1,
  "bvid": "BV17osu6pEP9",
  "title": "失败公司的成功产品？GoPro相机评测…",
  "titleEnglish": "A successful product from a failed company? GoPro camera review…",
  "viewCount": 1441326,
  "viewsGained": 640000,
  "viewsPerHour": 26666.7,
  "coinCount": 41000,
  "coinsGained": 800,
  "velocityBasis": "since_last_run",
  "hoursSinceLastRun": 24,
  "authorName": "影视飓风",
  "authorFollowers": 19137361,
  "followersGained": 18300,
  "matchedBy": "creator",
  "videoUrl": "https://www.bilibili.com/video/BV17osu6pEP9",
  "scrapedAt": "2026-11-21T08:00:00.000Z"
}
```

Creator summary rows (`recordType: "creator"`) carry followers, follower growth and `creatorVelocityRank`. A **GROWTH_REPORT** record in the run's key-value store lists the top 10 fastest videos and creators.

### How much does it cost to track Bilibili videos?

Pay only for what you get. Prices depend on your Apify plan:

| Event | Free | Bronze | Silver | Gold and above |
|---|---|---|---|---|
| Video tracked (stats + growth) | $0.0025 | $0.0022 | $0.0019 | $0.0016 |
| Bullet-comment reaction report (add-on, per video) | $0.012 | $0.010 | $0.009 | $0.008 |
| Transcript (add-on, per started audio minute) | $0.009 | $0.008 | $0.0075 | $0.007 |
| Run start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

Creator summary rows are free. Add-ons are off by default and are charged only when they return data. Platform usage (compute, proxy, data transfer) is included in these prices, so you pay nothing extra. Typical runs finish 200 videos in about a minute. **Free Apify plan: up to 50 videos per run**; the run still succeeds and the status message says when the limit was reached.

### Bullet-comment (danmaku) reaction report

Turn on `includeDanmakuReport` to see how viewers reacted, second by second. Each video gets a `danmakuReport` with:

- `timeline`: bullet comments per time slice (up to 20 slices across the video),
- `peakMoments`: the 3 busiest moments with their top phrases (great for finding the clip to reuse),
- `topPhrases`: the 10 most repeated phrases (repeats like 哈哈哈哈哈 are grouped),
- `positiveShare`, `negativeShare`, `moodScore` (-1 to 1) and `moodLabel` (positive, mixed, negative, neutral) from a Chinese internet-slang word list.

It uses Bilibili's public bullet-comment feed, which holds the newest few thousand bullet comments of a video.

### Bilibili video transcripts

Turn on `includeTranscripts` to get the spoken words of each video as `transcriptText` plus timed `transcriptSegments`. Bilibili's own subtitles are only shown to logged-in users, so transcripts are made with speech recognition from the video's audio. Videos longer than `maxTranscriptMinutes` (default 30) are skipped and not charged. `transcriptStatus` tells you what happened for every video.

### What's new

- **November 2026:** first release. Creator watchlists, keyword search and video links with full stats, growth since last run, velocity ranks, bullet-comment reaction reports and transcripts. Every run also saves an `OUTPUT` record with a one-line outcome summary that AI agents can read directly.

### Tips

- Use one tracker name per watchlist. Changing the name starts a new baseline.
- Run on a schedule; comparisons are most useful at a steady interval (daily or weekly).
- Speeds for gaps shorter than one hour are calculated over one hour so short re-runs don't inflate them.
- Keyword search follows Bilibili's own ranking, which also returns loosely related videos for rare terms.

### FAQ

**Do I need a Bilibili account or cookies?** No. Only public data is collected.

**Why only 3 comments per video?** Bilibili shows visitors who are not logged in only the top comments. The total is always in `commentCount`.

**Where is the history kept?** In a key-value store in your own Apify account named `bilibili-tracker-<trackerName>`. Entries not seen for 120 days are pruned.

**What happens if Bilibili blocks a request?** The Actor retries with a fresh connection. If every source fails, the run fails with a clear message instead of returning an empty "success", and you are not charged for videos.

**Can AI agents use it?** Yes. Input fields explain when to use creators vs keywords vs videos, and every output field is documented.

### Other China social media Actors

Looking for more China platforms? See the Douyin, Xiaohongshu and Weibo Actors by the same author; they use the same field style (`*Count` stats, `author*` fields, `scrapedAt`).

### Legal disclaimer

This Actor collects publicly available data only. You are responsible for using it lawfully, including compliance with Bilibili's terms, copyright and data-protection laws (such as GDPR, CCPA and China's PIPL). Do not use it to collect personal data without a legal basis.

This Actor is an independent tool and is not affiliated with, endorsed by or sponsored by Bilibili. Bilibili is a trademark of its owner and is named only to describe the public website this Actor reads.

# Changelog

This Actor's version history is a separate document: https://apify.com/khadinakbar/bilibili-scraper/changelog.md

# Actor input Schema

## `creators` (type: `array`):

Use when the user names Bilibili creators (UP主) or gives space.bilibili.com links or numeric UIDs. Returns each creator's latest videos with full stats plus a creator summary row (followers, follower growth). Use 'keywords' instead for topics, and 'videos' for specific video links.

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

Use when the user describes a topic, game, brand or product (Chinese or English), e.g. '原神' or 'Xiaomi SU7'. Searches Bilibili videos and tracks the top results. Use 'creators' instead when the user names specific accounts.

## `videos` (type: `array`):

Use when the user gives specific video links or IDs: bilibili.com/video/BV… links, BV ids, av ids or b23.tv short links.

## `trackerName` (type: `string`):

Runs with the same tracker name are compared with each other to calculate views, coins, likes and followers gained since the previous run. Use one name per watchlist, e.g. 'gaming-creators'. Saved in your account's key-value store 'bilibili-tracker-<name>'.

## `maxVideosPerCreator` (type: `integer`):

Newest videos to track for each creator.

## `maxVideosPerKeyword` (type: `integer`):

Search results to track for each keyword.

## `searchOrder` (type: `string`):

How keyword results are ranked before the top ones are tracked.

## `maxResults` (type: `integer`):

Hard cap on video rows (and video charges) for the whole run. Creator summary rows are free and not counted. Free Apify plan: capped at 50 videos per run.

## `includeCreatorStats` (type: `boolean`):

Adds followers, following, video count, level and verification title for every video's creator, and enables follower growth.

## `includeComments` (type: `boolean`):

Adds each video's top comments (Bilibili shows up to 3 to visitors who are not logged in) with likes, replies and location.

## `translateTitles` (type: `boolean`):

Adds a machine-translated English title in titleEnglish.

## `includeDanmakuReport` (type: `boolean`):

Adds danmakuReport to each video: a timeline of bullet comments (danmaku), the 3 peak moments with their top phrases, the 10 most repeated phrases and a simple positive/negative mood. Built from the newest few thousand bullet comments. Charged once per video that has bullet comments.

## `includeTranscripts` (type: `boolean`):

Adds transcriptText and timed transcriptSegments made by speech recognition from the video's audio (Bilibili's own subtitles need a login). Charged per started minute of audio, only when a transcript is returned. Videos longer than the max length below are skipped and not charged.

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

Videos longer than this are not transcribed (and not charged for transcripts).

## `proxyConfiguration` (type: `object`):

Apify datacenter proxy works for Bilibili. Change only if runs are blocked.

## Actor input object example

```json
{
  "creators": [
    "https://space.bilibili.com/946974"
  ],
  "keywords": [
    "原神"
  ],
  "trackerName": "default",
  "maxVideosPerCreator": 10,
  "maxVideosPerKeyword": 10,
  "searchOrder": "totalrank",
  "maxResults": 1000,
  "includeCreatorStats": true,
  "includeComments": false,
  "translateTitles": false,
  "includeDanmakuReport": false,
  "includeTranscripts": false,
  "maxTranscriptMinutes": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All video and creator rows, fastest-growing videos first.

## `growthReport` (type: `string`):

Top 10 fastest videos and creators for this run.

## `output` (type: `string`):

Compact result for agents: outcome (COMPLETE, PARTIAL, VALID_EMPTY, INVALID_INPUT, UPSTREAM_FAILED), agentSummary, item counts and charged events.

## `runSummary` (type: `string`):

Detailed diagnostics: outcome, timing, failures and request statistics.

# 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 = {
    "creators": [
        "https://space.bilibili.com/946974"
    ],
    "keywords": [
        "原神"
    ],
    "maxVideosPerCreator": 10,
    "maxVideosPerKeyword": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("khadinakbar/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 = {
    "creators": ["https://space.bilibili.com/946974"],
    "keywords": ["原神"],
    "maxVideosPerCreator": 10,
    "maxVideosPerKeyword": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("khadinakbar/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 '{
  "creators": [
    "https://space.bilibili.com/946974"
  ],
  "keywords": [
    "原神"
  ],
  "maxVideosPerCreator": 10,
  "maxVideosPerKeyword": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call khadinakbar/bilibili-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,khadinakbar/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/cO83UkyOLhkdw3o2r/builds/yOYFK7NN9hQIe9lL9/openapi.json
