# Get Bilibili popular videos

**Use case:** 

See which videos are popular on Bilibili (B站) right now. Get title, views, likes, coins, favorites, danmaku count, comments, creator, followers and link for each video. No login needed. Schedule it daily to follow what is hot in China. Export to Excel, CSV or JSON.

## Input

```json
{
  "mode": "trending",
  "keywords": [
    "机械键盘",
    "iPhone 17"
  ],
  "sort": "relevance",
  "duration": "any",
  "maxResults": 50,
  "includeDetails": true,
  "includeComments": false,
  "maxCommentsPerVideo": 20,
  "maxDanmakuPerVideo": 1000,
  "trendingList": "popular",
  "category": "all",
  "maxConcurrency": 5
}
```

## Output

```json
{
  "searchKeyword": {
    "label": "Search keyword"
  },
  "rank": {
    "label": "Rank"
  },
  "title": {
    "label": "Title"
  },
  "author": {
    "label": "Author"
  },
  "views": {
    "label": "Views",
    "format": "number"
  },
  "likes": {
    "label": "Likes",
    "format": "number"
  },
  "coins": {
    "label": "Coins",
    "format": "number"
  },
  "favorites": {
    "label": "Favorites",
    "format": "number"
  },
  "shares": {
    "label": "Shares",
    "format": "number"
  },
  "danmakuCount": {
    "label": "Danmaku count",
    "format": "number"
  },
  "commentCount": {
    "label": "Comment count",
    "format": "number"
  },
  "authorFollowers": {
    "label": "Author followers",
    "format": "number"
  },
  "duration": {
    "label": "Duration"
  },
  "publishedAt": {
    "label": "Published at",
    "format": "date"
  },
  "category": {
    "label": "Category"
  },
  "tags": {
    "label": "Tags"
  },
  "url": {
    "label": "Url",
    "format": "link"
  },
  "thumbnail": {
    "label": "Thumbnail",
    "format": "image"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Bilibili Scraper: Videos, Comments, Danmaku & Creators Actor is ready to run with the inputs already set for "Get Bilibili popular videos". [Sign up or log in](https://console.apify.com/create-task-from-example/fWLqncTE3eaBfscUY) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Get Bilibili popular videos" task

The Bilibili Scraper: Videos, Comments, Danmaku & Creators Actor will start running based on the input automatically. You can also change all the input fields, like what to scrape, keywords, and more, to match your specific use case.

### 3. Receive the "Get Bilibili popular videos" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as search keyword, rank, title, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Get Bilibili popular videos" task via API](https://apify.com/serenido/bilibili-scraper.md).

## About this Actor

This example demonstrates how to use [Bilibili Scraper: Videos, Comments, Danmaku & Creators](https://apify.com/serenido/bilibili-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/serenido/bilibili-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/serenido/bilibili-scraper.md

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`).
