# Bilibili Scraper: Creator Stats, Trending & Rankings (`precious_bathmat/bilibili-scraper`) Actor

Bilibili (哔哩哔哩) creator reports: followers, views, engagement, upload pace and best videos for any UP主, plus the trending board, weekly must-watch and category rankings, with full stats per video. No login, no proxy.

- **URL**: https://apify.com/precious\_bathmat/bilibili-scraper.md
- **Developed by:** [Mariam Ahmed](https://apify.com/precious_bathmat) (community)
- **Categories:** Social media, Marketing
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 creator reports

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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: Creator Stats, Trending & Rankings

A **Bilibili (哔哩哔哩) scraper** built for influencer research: give it any **UP主 (creator)** and get one report with **followers, median views, engagement rate, upload pace, view trend, top category and best recent videos**, plus every recent video with **views, likes, coins, favourites, shares, comments and danmaku**. It also reads Bilibili's **trending board (热门)**, the **weekly must-watch (每周必看)** and **15 category rankings (排行榜)**, and can report on the creators it finds there.

No login, no cookies to paste, no proxy.

### What does this Bilibili scraper do?

```
影视飓风 · space.bilibili.com/946974 · 18.5M followers · 30 recent videos

 median views     5.1M          engagement     6.9%  (likes + coins + favourites per view)
 uploads          1.9 a week    last upload    today
 view trend       -42%          (newer mature videos against older ones)
 top category     科技 (tech)    found in       trending now + weekly must-watch
```

1. **Creators by UID, space link or name.** Paste `https://space.bilibili.com/946974`, `946974`, or a name such as `影视飓风`.
2. **Recent uploads**, newest first, up to 300 per creator.
3. **Full stats per video**: likes, coins (投币), favourites (收藏), shares, comments and danmaku (弹幕).
4. **A report per creator** that makes creators comparable at a glance.
5. **Trending and rankings**: every video with its rank, and optional reports on the creators behind them, so you can **discover rising UP主 in a category**.

### Who is it for?

- **Brands and agencies entering China**: shortlist Bilibili KOLs by real reach and engagement, not follower counts alone
- **Influencer marketing platforms**: refresh creator stats on a schedule through the API
- **Game, tech and consumer companies**: see which creators dominate your category's rankings this week
- **Analysts and researchers**: track Chinese youth culture and what trends on Bilibili, with numbers
- **Creators and MCNs**: benchmark a channel against its peers

### What data do you get?

**One report per creator** (the dataset):

| Field | What it tells you |
|---|---|
| `name`, `profileUrl`, `verifiedAs`, `level`, `bio` | Who the creator is, and Bilibili's official verification title |
| `followers`, `following`, `totalLikes`, `totalVideos` | Account size |
| `medianViews`, `averageViews`, `medianViewsPerFollowerPercent` | Real reach per video, and how much of the audience shows up |
| `engagementRatePercent`, `medianLikes`, `medianComments` | How strongly viewers react (likes + coins + favourites per view) |
| `uploadsPerWeek`, `uploadsLast30Days`, `lastUploadAt`, `daysSinceLastUpload` | Posting pace and whether the channel is active |
| `viewsTrendPercent` | Newer videos against older ones: growing or fading |
| `topCategory`, `categories` | What the creator makes, from Bilibili's own category breakdown |
| `bestRecentVideos`, `latestVideo` | The standout uploads, with links |
| `foundBy`, `trendingAppearances` | Whether you asked for the creator or it came from a trending list |

**Every video** (`VIDEOS_CSV`): title, link, publish time, duration, views, likes, coins, favourites, shares, comments, danmaku and cover image.
**Trending videos** (`TRENDING_CSV`): the list, rank, creator and the same stats.

### Examples from live runs, 29 September 2026

One run on 29 September 2026: **20 creators by UID, plus the trending board and the weekly must-watch, with 10 more creators discovered from them**. It returned **30 creator reports and 886 videos with full stats**, plus 149 trending videos, in 14.6 minutes. Bilibili refused 41 of 991 requests along the way, and every one was retried successfully.

| Creator | Followers | Median views | Engagement | Uploads / week | View trend | Category |
|---|---|---|---|---|---|---|
| **影视飓风** | 18.5M | 5.1M | 6.9% | 1.9 | -42% | 科技 |
| **原神** (official) | 20.9M | 1.5M | **15.1%** | 2.3 | +17% | |
| **日食记** | 9.6M | 2.9M | 5.6% | 0.4 | -13% | 美食 |
| **柯洁** | 3.9M | **3.9M** | 10.2% | 1.3 | -15% | |
| **极客湾Geekerwan** | 5.6M | 1.0M | 4.9% | 1.3 | **+28%** | 科技 |
| **段俊piano** | 2.2M | 1.2M | 7.6% | 2.7 | **+55%** | 音乐 |
| **大鬍子牛仔** | 0.56M | 44K | **19.9%** | 3.9 | -5% | |

Follower counts alone would rank these the wrong way round. **柯洁's median video reaches as many people as he has followers**, while 原神's reaches 7% of its audience. The smallest channel here has the most engaged viewers, at 19.9%.

A second run read **all 15 category rankings**: 1,500 ranked videos, all published in the last few days, with full stats in 20 seconds.

### How to use it

1. Add creators: UIDs, `space.bilibili.com` links, or names.
2. Optionally pick **trending lists** and how many of their creators to report on.
3. Set **recent videos per creator** (30 by default).
4. Run it and download the reports, videos and trending lists as **JSON, CSV or Excel**.

### Pricing

**$0.02 per creator report** and **$0.002 per video** (each creator video and each trending video saved).

A creator with 30 videos costs **$0.08**. The 100 videos of the trending board cost **$0.20**. Switch off "Also save every video" to pay for reports only.

### Good to know

- **UIDs and links are the reliable way in.** Name lookup works, but Bilibili allows only about three name searches before it asks for a captcha. The Actor then tells you which names it could not look up, so use UIDs for longer lists.
- **No keyword video search.** Bilibili answers video searches from servers with a captcha, and this Actor does not solve captchas. Use the trending lists and rankings to discover creators and videos instead.
- **Steady, not fast.** Requests go out a little over one a second, and Bilibili refuses some at random; each is retried with back-off. A creator with 30 videos and full stats takes about 30 seconds.
- **Only live rankings are offered.** Bilibili reorganised its categories in 2025 and stopped updating many old rankings (life, travel, fitness, AI and others froze in March and April 2025). This Actor offers only the 15 that are current, and flags any list whose newest video is over 30 days old.
- **Fresh videos are still growing.** Videos under a week old are left out of the view trend, so a busy week does not look like a decline.
- **No personal data.** Public creator accounts only: no comments, commenters or viewer information.

### Input

| Field | Meaning |
|---|---|
| **Creators (UP主)** | UIDs, space links or names |
| **Trending lists** | Trending now, weekly must-watch, and 15 category rankings |
| **Creator reports from trending lists** | How many creators from those lists to report on (0 to 100) |
| **Recent videos per creator** | 1 to 300 |
| **Full stats for every video** | Likes, coins, favourites, shares, comments and danmaku; on by default |
| **Also save every video** | Adds the videos and trending files; charged per video |

### Integrations

Export to JSON, CSV, Excel or Google Sheets, or connect through the Apify API, webhooks, Make, Zapier and n8n. **Schedule it weekly** to track a list of KOLs, or daily to catch what is trending in your category.

# Actor input Schema

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

Bilibili creators to report on: a UID (e.g. 8960728), a space link (https://space.bilibili.com/8960728) or a name (e.g. 日食记). Names are matched exactly first, otherwise the most-followed account with that name is used.

## `trendingLists` (type: `array`):

Bilibili's trending board, the weekly must-watch and 15 category rankings (排行榜). Every video on them is saved, and the creators on them can be reported on too (see below).

## `maxDiscoveredCreators` (type: `integer`):

Also report on this many creators from the trending lists above, the ones appearing most often first. 0 saves the trending videos only.

## `videosPerCreator` (type: `integer`):

How many of each creator's latest uploads the report is built from.

## `includeVideoStats` (type: `boolean`):

Adds likes, coins, favourites, shares, comments, danmaku and category to each video, and the engagement rate to each report. About one second per video; switch off for a fast run with views only.

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

Saves each creator's videos as CSV and JSON next to the reports. Charged per video.

## Actor input object example

```json
{
  "creators": [
    "https://space.bilibili.com/8960728",
    "15634833"
  ],
  "maxDiscoveredCreators": 10,
  "videosPerCreator": 30,
  "includeVideoStats": true,
  "includeVideos": true
}
```

# Actor output Schema

## `creators` (type: `string`):

One row per creator: followers, median views, engagement, upload pace, trend and best recent videos.

## `videos` (type: `string`):

Every video behind the reports, with views, likes, coins, favourites, shares and comments.

## `trending` (type: `string`):

The trending board, weekly must-watch and category rankings you picked, with rank and full stats.

## `summary` (type: `string`):

Requests, refusals, problems and the limits of the data.

# 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/8960728",
        "15634833"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("precious_bathmat/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/8960728",
        "15634833",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("precious_bathmat/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/8960728",
    "15634833"
  ]
}' |
apify call precious_bathmat/bilibili-scraper --silent --output-dataset

```

## MCP server setup

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