# Bilibili Trending Videos Scraper (`apt_marble/bilibili-trending-videos-scraper`) Actor

Get the current Bilibili popular (trending) video list with rank, views, likes, coins, shares, danmaku, creator and category. No login, no cookies.

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

## Pricing

$1.20 / 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.

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 Trending Videos Scraper

Collect the videos on Bilibili's popular list right now. Each row is a trending video with its rank, cover image, title, creator, category, views, likes, coins, shares, favorites, danmaku and publish time.

**No login, no cookies, no browser needed.** Results are saved as a dataset you can download as JSON, CSV or Excel, or read through the Apify API. The first column of the table is the thumbnail image.

### What you get

- The live popular list, in Bilibili's order, with a rank number.
- Full engagement: views, likes, coins, shares, favorites, comments and danmaku.
- Creator, category, sub-category, video size, short link and the recommendation reason.
- Schedule it daily or hourly to build a trend history.

### Who uses this actor

- Daily trend tracking for Chinese video.
- Spot rising creators and topics early.
- Content ideas and competitor watching.
- Datasets for trend analysis.

### How to use it

1. Open the Input tab. The fields already hold a working example.
2. Click Start. Small runs finish in seconds.
3. Open the Output tab to see the table, then export it or connect it to your tools.

If something cannot be read, for example an unknown user or a video that does not exist, the run still finishes successfully and says what was wrong in the run status message, with an example of a working input. Results are saved while the run is going, so you can start using them straight away.

### Input

| Field | Name | Required | Default | What it does |
|---|---|---|---|---|
| `maxItems` | Maximum videos | no | `40` | How many trending videos to collect, in Bilibili's order. The list is long but not endless, so you may get fewer. |

#### Example input

```json
{
  "maxItems": 40
}
```

### Output

Each record is one row in the dataset. Fields Bilibili does not provide for a record are left out, and numbers that are really zero stay as 0. Field names are plain English so tables read well in Excel and CSV.

| Field | Type | Meaning |
|---|---|---|
| Cover image (`image`) | string | Video cover (shown as a thumbnail). |
| Video ID (`id`) | string | Bilibili BV id, unique per video. |
| Title (`title`) | string | Video title, plain text. |
| Video link (`url`) | string | Link to the video on Bilibili. |
| Rank (`rank`) | number | Position on the popular list (1 is the top). |
| Description (`description`) | string | Video description text. |
| Post text (`postText`) | string | The text the creator posted together with the video. |
| Creator (`creator`) | string | Uploader name. |
| Creator ID (`creatorId`) | string | Uploader user id (mid). |
| Creator link (`creatorUrl`) | string | Link to the uploader space page. |
| Creator avatar (`creatorAvatar`) | string | Uploader profile picture. |
| Category (`category`) | string | Bilibili category of the video. |
| Sub-category (`subCategory`) | string | More detailed Bilibili category. |
| Duration (seconds) (`durationSeconds`) | number | Video length in seconds. |
| Published at (`publishedAt`) | string | Publish time, ISO 8601 (UTC). |
| Published from (`publishedFrom`) | string | Region shown with the video, when given. |
| Views (`views`) | number | Play count. |
| Likes (`likes`) | number | Like count. |
| Danmaku (`danmaku`) | number | Number of danmaku (on-screen comments). |
| Comments (`comments`) | number | Number of comments. |
| Favorites (`favorites`) | number | How many users saved the video. |
| Coins (`coins`) | number | Coins the video received. |
| Shares (`shares`) | number | Share count. |
| Dislikes (`dislikes`) | number | Dislike count, when Bilibili reports it. |
| Current rank (`currentRank`) | number | Bilibili's own current ranking value, when given. |
| Best rank (`bestRank`) | number | Best ranking the video has reached. |
| Original (`isOriginal`) | boolean | True for original content, false for reposts. |
| Video width (`videoWidth`) | number | Video width in pixels. |
| Video height (`videoHeight`) | number | Video height in pixels. |
| Wide cover (`wideCover`) | string | Wide (4:3) cover image link. |
| Short link (`shortLink`) | string | Short b23.tv link to the video. |
| Recommend reason (`recommendReason`) | string | Why Bilibili shows the video, when given. |
| Parts (`partCount`) | number | Number of parts in the video. |
| AV id (`avId`) | string | Numeric av id of the video (the older Bilibili id style). |
| Scraped at (`scrapedAt`) | string | When this record was collected, ISO 8601. |
| Other data (`otherData`) | object | Any additional field Bilibili sent that has no column of its own. Empty placeholder values are left out. |

#### Example output

```json
{
  "image": "https://i2.hdslb.com/bfs/archive/7f475d7d8d1cace38cb12d4a9de69f8bed9af109.jpg",
  "id": "BV1VeHQ6tEaS",
  "title": "超市生存挑战后续！4人吃完整个超市赢100万美金！",
  "url": "https://www.bilibili.com/video/BV1VeHQ6tEaS",
  "rank": 1,
  "description": "满满一超市的食物，全部吃完就能赢走100万美金！ 听起来简直是不可能完成的任务，但为了这笔巨额奖金，他们四人又能拼到什么程度？换作是你，敢来挑战吗？快来看看这场疯狂的超市挑战，记得一键三连",
  "postText": "超市生存挑战后续！4人吃完整个超市赢100万美金！ #野兽先生# #MrBeast# #整活# #挑战#",
  "creator": "野兽先生MrBeast",
  "creatorId": "1027737427",
  "creatorUrl": "https://space.bilibili.com/1027737427",
  "creatorAvatar": "https://i1.hdslb.com/bfs/face/d85295bc576e059c1a549d89d405f22311571898.jpg",
  "category": "日常",
  "subCategory": "随拍·综合",
  "durationSeconds": 3466,
  "publishedAt": "2026-10-08T10:05:00.000Z",
  "publishedFrom": "广东",
  "views": 584582,
  "likes": 47806,
  "danmaku": 3265,
  "comments": 2230,
  "favorites": 15998,
  "coins": 27482,
  "shares": 2717,
  "dislikes": 0,
  "currentRank": 0,
  "bestRank": 62,
  "isOriginal": false,
  "videoWidth": 1920,
  "videoHeight": 1080,
  "wideCover": "https://i1.hdslb.com/bfs/archive/f8f983f621f63cdad158a2a399831de1f34b940f.jpg",
  "shortLink": "https://b23.tv/BV1VeHQ6tEaS",
  "partCount": 1,
  "avId": "117404491450249",
  "otherData": {
    "mission_id": 4071916,
    "cid": 42564652953,
    "season_id": 465513
  },
  "scrapedAt": "2026-10-08T22:31:50.234Z"
}
```

### Tips

- Chinese keywords usually give the widest coverage. Titles and comments come back in their original language.
- The actor paces its requests to stay within Bilibili's limits, so larger runs take a little longer. Spread very large jobs over several runs or schedules.
- Export as JSON, CSV or Excel, or read the results through the Apify API.

### FAQ

**How often does the list change?**
Bilibili refreshes its popular list through the day. Schedule the actor to capture it as often as you need.

**Can I filter by category?**
Not in this actor. Each row carries its category and sub-category so you can filter the dataset afterwards.

**Is it legal to scrape Bilibili?**
The actor reads only data that Bilibili shows publicly, without logging in. Comments and profiles can contain personal data, so use the results in line with the data protection rules that apply to you and with Bilibili's terms.

**Something looks wrong. What should I do?**
Open the run log and the run status message first; they explain what happened. If the data still looks wrong, send the run link through the Issues tab and it will be looked at.

# Actor input Schema

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

How many trending videos to collect, in Bilibili's order. The list is long but not endless, so you may get fewer.

## Actor input object example

```json
{
  "maxItems": 40
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

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

No description

# 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 = {
    "maxItems": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("apt_marble/bilibili-trending-videos-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 = { "maxItems": 40 }

# Run the Actor and wait for it to finish
run = client.actor("apt_marble/bilibili-trending-videos-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 '{
  "maxItems": 40
}' |
apify call apt_marble/bilibili-trending-videos-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apt_marble/bilibili-trending-videos-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/xV6ROrZ9zJuOvsMcA/builds/q3peh8hS2VOQEvDeB/openapi.json
