# Bilibili Scraper: Video Search, Rankings & Creators (`scrapingmonkey/bilibili-scraper`) Actor

Search Bilibili videos and creators, collect popular videos and rankings, and export creator season collections. Get titles, dates, durations, thumbnails, views, danmaku counts and creator profiles for Chinese video and influencer research.

- **URL**: https://apify.com/scrapingmonkey/bilibili-scraper.md
- **Developed by:** [ScrapingMonkey](https://apify.com/scrapingmonkey) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

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** helps you research videos, creators and curated series across Bilibili. Search by keyword, follow popular videos or rankings, and export creator collections with titles, descriptions, durations and available engagement for content planning, creator discovery and Chinese video market research.

Compare videos around a topic, identify the creators behind them and follow their season collections. Combine search results with ranking and audience information to prioritize content and partnership research.

| At a glance | Details |
|---|---|
| 📥 Input | Search fields or links to the selected items; see the examples below |
| 📤 Output | One row per video, creator profile or collection, depending on the mode |
| 📄 Pagination | Automatic up to `maxResults` for each input, when more results are available |
| 🔐 Login required | No |
| ⚡ Processing | Multiple inputs per run with automatic retries for temporary errors |
| 💾 Delivery | One complete Apify dataset table; CSV, JSON and Excel export |

### What the Bilibili scraper collects 📱

Search Bilibili videos and creators, collect popular videos and rankings, and export creator season collections. Get titles, dates, durations, thumbnails, views, danmaku counts and creator profiles for Chinese video and influencer research.

| Collection | What you receive |
|---|---|
| Bilibili video search scraper | Search public Bilibili videos by keyword and export titles, authors, URLs, dates, duration, thumbnails, tags, and public engagement counts. |
| Bilibili collection videos scraper | Collect videos inside public Bilibili season collections with video URLs, titles, duration, publication dates, thumbnails, and visible view and danmaku counts. |
| Bilibili popular videos scraper | Collect Bilibili popular videos with creator information, titles, durations, thumbnails, publication dates, and public engagement metrics. |
| Bilibili creator collections scraper | Collect public Bilibili season collections from creator profiles, including collection IDs, titles, descriptions, covers, URLs, and video counts. |
| Bilibili creator profiles scraper | Extract public Bilibili creator cards with profile information, follower and following counts, video totals, received likes, level, and verification. |
| Bilibili creator search scraper | Find Bilibili creators by keyword and export profile IDs, names, URLs, avatars, biographies, follower counts, video counts, and verification details. |
| Bilibili video rankings scraper | Export the current Bilibili all-category video ranking with list positions, video and creator details, thumbnails, dates, and public metrics. |

Data can include:

- Videos: Video titles, IDs, links and available tags.
- Creators: Names, biographies, profile links, verification and avatars.
- Audience: Visible follower counts, received likes and creator video totals.
- Video engagement: Available views, danmaku counts and other exposed video metrics.
- Publication details: Publication dates, video duration and thumbnail images.
- Rankings and collections: Ranking positions, season collection titles, descriptions and video counts.

### How to scrape Bilibili 🚀

1. Choose **Video Search** in **What to collect**, or select another collection mode.
2. Fill in the search fields, or paste links to the items you want to collect.
3. Set the maximum results and any optional filters.
4. Start the Actor and review the collected rows.
5. Export the dataset or connect it to your application.

#### Bilibili video search scraper — input example

```json
{
  "mode": "video_search",
  "searchQueries": [
    "python"
  ],
  "maxResults": 10
}
```

`maxResults: 10` means up to 10 results for **each input**. It does not guarantee that the website has that many matches. You can set the limit as low as 1.

#### Bilibili collection videos scraper — input example

```json
{
  "mode": "collection_videos",
  "collectionUrls": [
    "https://space.bilibili.com/27501480/lists/1228442?type=season"
  ],
  "maxResults": 10
}
```

#### Bilibili popular videos scraper — input example

```json
{
  "mode": "popular_videos",
  "maxResults": 10
}
```

#### Bilibili creator collections scraper — input example

```json
{
  "mode": "user_collections",
  "profileUrls": [
    "https://space.bilibili.com/82483195"
  ],
  "maxResults": 10
}
```

#### Bilibili creator profiles scraper — input example

```json
{
  "mode": "user_details",
  "profileUrls": [
    "https://space.bilibili.com/27501480"
  ],
  "maxResults": 10
}
```

#### Bilibili creator search scraper — input example

```json
{
  "mode": "user_search",
  "searchQueries": [
    "python"
  ],
  "maxResults": 10
}
```

#### Bilibili video rankings scraper — input example

```json
{
  "mode": "video_ranking",
  "maxResults": 10
}
```

### Bilibili data fields and complete output 📦

| Field group | Included data |
|---|---|
| Videos | Video titles, IDs, links and available tags. |
| Creators | Names, biographies, profile links, verification and avatars. |
| Audience | Visible follower counts, received likes and creator video totals. |
| Video engagement | Available views, danmaku counts and other exposed video metrics. |
| Publication details | Publication dates, video duration and thumbnail images. |
| Rankings and collections | Ranking positions, season collection titles, descriptions and video counts. |

Each collected item is a separate row. `input` identifies the submitted value and `result_type` identifies the selected mode. All returned fields appear in one table; columns that do not apply to a mode can be empty.

A complete JSON result is shown for every collection mode below, in the same order as the input examples. Each example includes every field for its mode; text and lists are not shortened. Values are representative and can change.

#### Bilibili video search scraper — complete JSON result

```json
{
  "result_type": "video_search",
  "input": "python",
  "status": "success",
  "type": "video",
  "id": "113006243481679",
  "bvid": "BV1rpWjevEip",
  "url": "https://www.bilibili.com/video/BV1rpWjevEip/",
  "title": "【全748集】目前B站最全最细的Python零基础全套教程，2026最新版，包含所有干货！七天就能从小白到大神！少走99%的弯路！存下吧！很难找全的！",
  "duration_seconds": 143894,
  "published_at": "2024-08-22T14:59:18Z",
  "thumbnail_url": "https://i2.hdslb.com/bfs/archive/a979056b1a32012cdd00d48fbc3732d253e30620.jpg",
  "views_count": 20055922,
  "danmaku_count": 130184,
  "description": "【视频配套籽料、开发环境搭建安装包教程、电子书+问题解答请看 ”置顶平论” 自取哦】\r\n本套教程从零开始讲解，手把手教学，包含基础语法、进阶语法、爬虫、自动化办公、数据分析\r\n无论是新手小白，还是有一定编码经验的选手，皆可学习\r\n如果视频对你有用的话请 一键三连【长按点赞】支持一下UP哦，拜托，这对我真的很重要！",
  "comments_count": 350127,
  "likes_count": 546485,
  "favorites_count": 842528,
  "coins_count": null,
  "shares_count": null,
  "author.id": "3546597933714079",
  "author.name": "Python官方课程",
  "author.url": "https://space.bilibili.com/3546597933714079",
  "author.avatar_url": "https://i1.hdslb.com/bfs/face/6822e4fdc8f82c69e10accd1ab11a109702bccbf.jpg",
  "tags": [
    "程序员",
    "Python教程",
    "Python入门零基础",
    "计算机",
    "编程语言",
    "数据分析",
    "Python爬虫",
    "Python下载安装",
    "IT",
    "Python"
  ]
}
```

#### Bilibili collection videos scraper — complete JSON result

```json
{
  "result_type": "collection_videos",
  "input": "https://space.bilibili.com/27501480/lists/1228442?type=season",
  "status": "success",
  "type": "video",
  "id": "117149645543610",
  "bvid": "BV18XhP6GExJ",
  "url": "https://www.bilibili.com/video/BV18XhP6GExJ/",
  "title": "谁能坚持到最后？",
  "duration_seconds": 82,
  "published_at": "2026-08-24T08:59:41Z",
  "thumbnail_url": "http://i1.hdslb.com/bfs/archive/178fb9a20436043e22baccc399fe10bf18c84b5d.jpg",
  "views_count": 7850293,
  "danmaku_count": 20757,
  "collection_id": "1228442",
  "collection_title": "合集·鬼畜全明星",
  "collection_url": "https://space.bilibili.com/27501480/lists/1228442?type=season",
  "creator_id": "27501480"
}
```

#### Bilibili popular videos scraper — complete JSON result

```json
{
  "result_type": "popular_videos",
  "input": "all",
  "status": "success",
  "type": "video",
  "id": "117301378679276",
  "bvid": "BV1bLei6BEGo",
  "url": "https://www.bilibili.com/video/BV1bLei6BEGo/",
  "title": "采访了刘慈欣",
  "duration_seconds": 1526,
  "published_at": "2026-09-20T09:00:00Z",
  "thumbnail_url": "http://i1.hdslb.com/bfs/archive/0d3a475cd29d9d127370e5c631c1ea7a81828a51.jpg",
  "views_count": 177585,
  "danmaku_count": 1806,
  "description": "《三体》20周年，在四川自贡和刘慈欣聊了聊关于创作，宇宙和AI。采访完，我去到了之前我们拍《舌尖》时的一家饭店，关于爆炒腰花，这家饭店有独特的注解。宇宙很大，生活更大。如果你喜欢这期视频，欢迎一键三连和多多分享给身边的朋友，祝大家生活万岁！",
  "comments_count": 1137,
  "likes_count": 16548,
  "favorites_count": 5606,
  "coins_count": 4695,
  "shares_count": 1892,
  "author.id": "39627524",
  "author.name": "食贫道",
  "author.url": "https://space.bilibili.com/39627524",
  "author.avatar_url": "https://i2.hdslb.com/bfs/face/eef12b850c10b0d7a7929236abb08604955823c0.jpg"
}
```

#### Bilibili creator collections scraper — complete JSON result

```json
{
  "result_type": "user_collections",
  "input": "https://space.bilibili.com/82483195",
  "status": "success",
  "type": "collection",
  "id": "9079193",
  "url": "https://space.bilibili.com/82483195/lists/9079193?type=season",
  "title": "2026暴雪嘉年华",
  "creator_id": "82483195",
  "description": "",
  "collection_type": "season",
  "cover_url": "https://i0.hdslb.com/bfs/templar/york-static/viedeo_material_default.png",
  "videos_count": 15,
  "updated_at": "2026-09-19T16:47:26Z"
}
```

#### Bilibili creator profiles scraper — complete JSON result

```json
{
  "result_type": "user_details",
  "input": "https://space.bilibili.com/27501480",
  "status": "success",
  "type": "user",
  "id": "27501480",
  "url": "https://space.bilibili.com/27501480",
  "description": "他们曾如此骄傲的存在过，贯彻始终！个人群：544957728",
  "videos_count": 178,
  "name": "怠惰的一休",
  "avatar_url": "https://i0.hdslb.com/bfs/face/542bff8a6d26dbf1ff8fe2cb4856a124bfafebd2.jpg",
  "followers_count": 435054,
  "verification_type": 0,
  "verification_description": "bilibili 知名鬼畜UP主",
  "sex": "男",
  "level": 6,
  "following_count": 303,
  "articles_count": 0,
  "received_likes_count": 7490866,
  "vip_type": 1,
  "vip_status": 0
}
```

#### Bilibili creator search scraper — complete JSON result

```json
{
  "result_type": "user_search",
  "input": "python",
  "status": "success",
  "type": "user",
  "id": "898198",
  "url": "https://space.bilibili.com/898198",
  "description": "",
  "videos_count": 0,
  "name": "Python",
  "avatar_url": "https://i2.hdslb.com/bfs/face/1cb3d96064b86dadabe1cf9a4e2de6c0fc9dc4b2.gif",
  "followers_count": 120,
  "verification_type": 127,
  "verification_description": ""
}
```

#### Bilibili video rankings scraper — complete JSON result

```json
{
  "result_type": "video_ranking",
  "input": "all",
  "status": "success",
  "type": "video",
  "id": "117280105045764",
  "bvid": "BV1cSec6tEux",
  "url": "https://www.bilibili.com/video/BV1cSec6tEux/",
  "title": "",
  "duration_seconds": 1632,
  "published_at": "2026-09-16T12:00:00Z",
  "thumbnail_url": "http://i1.hdslb.com/bfs/archive/aec12235afcae7c12ed1eb3684c103ed407434bf.jpg",
  "views_count": 9892007,
  "danmaku_count": 350770,
  "description": "面对折叠屏手机，我们始终绕不开同一个问题“为什么不直接买一台好的直板机？”那 iPhone Duo，到底有没有它不可替代的地方？欢迎收看影视飓风 2026 年 iPhone 评测。哦对了，这次我们依旧准备了 100 台新 iPhone 送给大家，记得去动态参与抽奖！",
  "comments_count": 163060,
  "likes_count": 795894,
  "favorites_count": 269372,
  "coins_count": 690471,
  "shares_count": 159130,
  "author.id": "946974",
  "author.name": "影视飓风",
  "author.url": "https://space.bilibili.com/946974",
  "author.avatar_url": "https://i0.hdslb.com/bfs/face/c1733474892caa45952b2c09a89323157df7129a.jpg",
  "rank": 1
}
```

Images, tags and other lists stay with their parent result instead of creating extra rows. Invalid or unavailable inputs, inputs with no results, and requests that fail after all retries produce a row with `status: failed`. At most one failed row is saved per input; it includes `error_code` and `error_message` explaining the outcome. A normal end of pagination after collected results does not add a failed row.

### Input requirements and collection settings ⚙️

| Setting | What to enter |
|---|---|
| **What to collect** (`mode`) | Choose the information to collect. |
| **Maximum results per search or link** (`maxResults`) | Collect up to this many results for each search or link. Minimum: 1. |
| **Search keywords** (`searchQueries`) | Enter one search phrase per line. For Video Search, User Search. |
| **Collection links** (`collectionUrls`) | Paste one link per line. Example: https://space.bilibili.com/27501480/lists/1228442?type=season For Collection Videos. |
| **Profile links** (`profileUrls`) | Paste one link per line. Example: https://space.bilibili.com/82483195 For User Collections, User Details. |

| Collection mode | Fields to use |
|---|---|
| Collection Videos | **Collection links** |
| Popular Videos | Set the maximum results and start. |
| User Collections | **Profile links** |
| User Details | **Profile links** |
| User Search | **Search keywords** |
| Video Ranking | Set the maximum results and start. |
| Video Search | **Search keywords** |

The result limit applies separately to each search or supplied link. Collection ends earlier when no more matching results are available.

### Bilibili scraping use cases 🎯

#### Topic research

Compare videos covering a technology, product category or entertainment topic.

#### Creator discovery

Find relevant Bilibili creators and evaluate their profile and audience information.

#### Trend reporting

Capture popular video lists and ranking positions for editorial trend reports.

#### Series catalogs

Export season collection videos to organize a creator’s published series.

#### Content benchmarking

Compare duration and available engagement across videos serving the same audience.

### Pricing and saved-result behavior 💰

See the Actor's **Pricing** tab for the active pricing model and current rate. Store settings may change, so this README does not claim a fixed cost.

Under dataset-item pricing:

- Each collected item saved in the dataset is one result.
- Images, tags and other values attached to that item do not create additional rows.
- Automatic retry attempts do not create extra dataset rows.
- A saved `failed` row is also one billable dataset item, including invalid inputs, unavailable items, no results, or exhausted retries. At most one failed row is saved per input, including when some results were already collected.
- `maxResults` caps all saved rows for each input, including its failed row. Repeated copies of the same input are processed once. More inputs or a higher limit can produce more saved results.

### Bilibili scraper API and integrations 🔌

Replace `$ACTOR_ID` with the ID shown in the Actor API tab and `$APIFY_TOKEN` with your token.

```bash
curl -X POST "https://api.apify.com/v2/acts/$ACTOR_ID/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"video_search","searchQueries":["python"],"maxResults":10}'
```

Use schedules for recurring collection, webhooks for completion notifications, and Apify integrations for Google Sheets, Make, Zapier, cloud storage, a CRM or your own application.

### Reliability, retries, and public-data limits ⚠️

Temporary connection errors, timeouts and access restrictions are retried automatically, up to five attempts. Invalid inputs save a failed row without an HTTP request; confirmed unavailable items save a failed row without unnecessary retries. Exhausted retries also save a failed row. Results already collected remain available if a later request fails, and normal pagination completion adds no error row. Collection also stops after two consecutive fully processed pages add no new results, even if the website provides another cursor. Required detail lookups are completed before checking a page; new results reset the counter, and independent reply branches are checked separately. Failures while initializing the Actor, saving data or scheduling requests stop the run instead of being reported as a failed website result.

Collection modes cover supported public season collections.

Ranking and popularity lists reflect the lists available during the run.

Bilibili controls which information is publicly available. Removed, private or restricted items may be unavailable, and optional values can be null or empty. A run can still fail if the results cannot be saved.

### Frequently asked questions ❓

#### Does it require an account on Bilibili?

No. You do not need to provide an account, password or login cookies. Only publicly available information is collected.

#### How does maxResults work?

It limits the number of saved results separately for every input. The minimum is 1. With maxResults set to 10, each input returns at most 10 available results. A detail lookup normally returns one record per input.

#### Can I export a creator’s series?

User Collections lists public season collections, and Collection Videos collects the videos inside a selected collection.

#### Can I search for creators as well as videos?

Yes. User Search and Video Search are separate modes.

#### Why are some fields empty?

The website may not publish that value, or the field may belong to a different collection mode. Missing values remain null or empty instead of being guessed.

#### Can I export the results to a spreadsheet?

Yes. Download CSV, Excel or JSON from the Apify dataset. All returned fields are included in the same results table.

### Support and responsible use 🛟

For a reproducible issue, share the run ID, selected mode, result limit and a safe public example through the support channel. Never disclose access tokens, passwords or proxy credentials.

Use public Bilibili information lawfully and responsibly. Follow applicable privacy, copyright, data-protection, contractual and platform requirements when storing, analyzing or redistributing results.

# Actor input Schema

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

Choose the information to collect.

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

Collect up to this many results for each search or link. Minimum: 1.

## `searchQueries` (type: `array`):

Enter one search phrase per line. For Video Search, User Search.

## `collectionUrls` (type: `array`):

Paste one link per line. Example: https://space.bilibili.com/27501480/lists/1228442?type=season For Collection Videos.

## `profileUrls` (type: `array`):

Paste one link per line. Example: https://space.bilibili.com/82483195 For User Collections, User Details.

## Actor input object example

```json
{
  "mode": "video_search",
  "maxResults": 10,
  "searchQueries": [
    "python"
  ]
}
```

# Actor output Schema

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

Collected entities and failed input outcomes, with all available fields and error explanations in one dataset.

# 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 = {
    "mode": "video_search",
    "maxResults": 10,
    "searchQueries": [
        "python"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapingmonkey/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 = {
    "mode": "video_search",
    "maxResults": 10,
    "searchQueries": ["python"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapingmonkey/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 '{
  "mode": "video_search",
  "maxResults": 10,
  "searchQueries": [
    "python"
  ]
}' |
apify call scrapingmonkey/bilibili-scraper --silent --output-dataset

```

## MCP server setup

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