# Bilibili Danmaku: Bullet Comments by Timeline

**Use case:** 

Video links to bullet comments with the exact second, render mode, colour and sender hash, filtered by timeline window.

## Input

```json
{
  "videoUrls": [
    "https://www.bilibili.com/video/BV1WEWs66EBP"
  ],
  "maxVideos": 10,
  "pageScope": "first",
  "startSec": 0,
  "endSec": 600,
  "modes": [
    "scroll",
    "top"
  ],
  "pools": [
    "normal"
  ],
  "minLength": 0,
  "maxLength": 0,
  "includeText": [],
  "excludeText": [],
  "maxItems": 20000,
  "requestDelayMs": 400,
  "requestTimeoutSecs": 25,
  "runBudgetSecs": 205
}
```

## Output

```json
{
  "title": {
    "label": "Video",
    "format": "string"
  },
  "bvid": {
    "label": "BVID",
    "format": "string"
  },
  "part": {
    "label": "Part",
    "format": "string"
  },
  "offsetSeconds": {
    "label": "At, s",
    "format": "number"
  },
  "modeName": {
    "label": "Mode",
    "format": "string"
  },
  "poolName": {
    "label": "Pool",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "textLength": {
    "label": "Length",
    "format": "integer"
  },
  "sentAtIso": {
    "label": "Sent",
    "format": "string"
  },
  "windowStartSec": {
    "label": "Window from, s",
    "format": "integer"
  },
  "windowEndSec": {
    "label": "Window to, s",
    "format": "integer"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "reason": {
    "label": "Reason",
    "format": "string"
  }
}
```

## How it works

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

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

### 2. Start the "Bilibili Danmaku: Bullet Comments by Timeline" task

The Bilibili Danmaku Scraper - Bullet Comments by Timeline Actor will start running based on the input automatically. You can also change all the input fields, like video urls or bv ids, max videos, and more, to match your specific use case.

### 3. Receive the "Bilibili Danmaku: Bullet Comments by Timeline" 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 video, BVID, part, 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 "Bilibili Danmaku: Bullet Comments by Timeline" task via API](https://apify.com/ai-lead-gen-tools/bilibili-danmaku-scraper.md).

## FAQ

### What is stored per bullet comment?

text, offsetSeconds and offsetMs on the timeline, the render mode and its name, the pool, fontsize, colour as a number and as hex, senderHash, weight and the sent time.

### Why are there fewer rows than the video declares?

Bilibili cuts the file by its server maxlimit and serves only four segment pages, so declaredCount and deliveredCount differ. The row reports both plus the coverageRatio and every drop counter.

### Can I keep only part of the timeline?

Yes, with startSec and endSec. The window is applied to the file the source already served, so it costs no extra requests.

### What does pageScope do?

A multi-part video has a separate danmaku file per part. all reads every part, first only part 1, last only the final part, and a ?p= suffix on a URL overrides the setting for that target.

## About this Actor

This example demonstrates how to use [Bilibili Danmaku Scraper - Bullet Comments by Timeline](https://apify.com/ai-lead-gen-tools/bilibili-danmaku-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ai-lead-gen-tools/bilibili-danmaku-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/ai-lead-gen-tools/bilibili-danmaku-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`).
