# Download danmaku (bullet comments) from a Bilibili video

**Use case:** 

Download the danmaku bullet comments of a Bilibili video with the text and the second of the video where each appeared. Useful for audience reaction and sentiment analysis.

## Input

```json
{
  "searchKeywords": [
    "python 教程"
  ],
  "searchOrder": "totalrank",
  "durationFilter": "any",
  "maxItems": 30,
  "trendingCategory": "none",
  "enrichSearchResults": false,
  "videoUrls": [
    "BV1xx411c7mD"
  ],
  "userIds": [],
  "maxVideosPerUser": 30,
  "includeComments": false,
  "maxCommentsPerVideo": 20,
  "commentSort": "hot",
  "includeReplies": false,
  "maxRepliesPerComment": 10,
  "includeDanmaku": true,
  "maxDanmakuPerVideo": 15,
  "requestDelaySecs": 1.5
}
```

## Output

```json
{
  "bvid": {
    "label": "Video",
    "format": "string"
  },
  "cid": {
    "label": "Cid",
    "format": "integer"
  },
  "part": {
    "label": "Part",
    "format": "integer"
  },
  "videoTitle": {
    "label": "Title",
    "format": "string"
  },
  "text": {
    "label": "Danmaku",
    "format": "string"
  },
  "timeInVideoSeconds": {
    "label": "At (s)",
    "format": "number"
  },
  "mode": {
    "label": "Mode",
    "format": "integer"
  },
  "fontSize": {
    "label": "Font size",
    "format": "integer"
  },
  "color": {
    "label": "Color",
    "format": "string"
  },
  "sentAt": {
    "label": "Sent",
    "format": "string"
  },
  "senderHash": {
    "label": "Sender hash",
    "format": "string"
  },
  "danmakuId": {
    "label": "Danmaku id",
    "format": "string"
  }
}
```

## About this Actor

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