# Bilibili trending and popular videos

**Use case:** 

Get the videos currently on Bilibili's popular feed with full stats: views, likes, coins, favorites, shares and danmaku. Filter by category, or schedule it to track what goes viral in China.

## Input

```json
{
  "mode": "popular",
  "searchQuery": "原神",
  "sortOrder": "totalrank",
  "durationFilter": "any",
  "videoUrls": [
    "https://www.bilibili.com/video/BV1LraH6qEr5"
  ],
  "category": "all",
  "maxResults": 100,
  "includeComments": false,
  "includeReplies": false,
  "maxComments": 20,
  "sortComments": "hot",
  "includeTags": true,
  "includeDanmaku": false,
  "danmakuSampleSize": 25,
  "deltaMode": false,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "title": {
    "label": "Title"
  },
  "authorName": {
    "label": "Author name"
  },
  "viewCount": {
    "label": "View count"
  },
  "likeCount": {
    "label": "Like count"
  },
  "coinCount": {
    "label": "Coin count"
  },
  "favoriteCount": {
    "label": "Favorite count"
  },
  "danmakuCount": {
    "label": "Danmaku count"
  },
  "replyCount": {
    "label": "Reply count"
  },
  "publishDate": {
    "label": "Publish date"
  },
  "category": {
    "label": "Category"
  },
  "url": {
    "label": "Url",
    "format": "link"
  }
}
```

## About this Actor

This example demonstrates how to use [Bilibili Scraper (B站 哔哩哔哩) - Videos, Comments, Danmaku](https://apify.com/alom/bilibili-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/alom/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/alom/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`).
