# Bilibili Video Comments: Threads and Replies

**Use case:** 

Video links or BV ids to root comments with replies, author level, like totals and reply counts.

## Input

```json
{
  "mode": "comments",
  "queries": [
    "人工智能教程",
    "露营"
  ],
  "videoUrls": [
    "https://www.bilibili.com/video/BV1ug4y1t7Ty"
  ],
  "creatorMids": [
    "1741962246"
  ],
  "searchOrders": [
    "totalrank"
  ],
  "maxItems": 200,
  "maxPagesPerOrder": 5,
  "rowsPerPage": 20,
  "maxCreatorPages": 40,
  "includeReplies": true,
  "commentsPerVideo": 9,
  "danmakuLimit": 3000,
  "requestDelayMs": 400,
  "requestTimeoutSecs": 25,
  "runBudgetSecs": 205
}
```

## Output

```json
{
  "message": {
    "label": "Comment",
    "format": "string"
  },
  "authorName": {
    "label": "Author",
    "format": "string"
  },
  "authorMid": {
    "label": "Author id",
    "format": "integer"
  },
  "authorLevel": {
    "label": "Level",
    "format": "integer"
  },
  "likeCount": {
    "label": "Likes",
    "format": "integer"
  },
  "replyCount": {
    "label": "Replies",
    "format": "integer"
  },
  "repliesReturned": {
    "label": "Replies kept",
    "format": "integer"
  },
  "publishedAt": {
    "label": "Published",
    "format": "string"
  },
  "videoBvid": {
    "label": "Video",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "reason": {
    "label": "Reason",
    "format": "string"
  }
}
```

## How it works

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

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

### 2. Start the "Bilibili Video Comments: Threads and Replies" task

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

### 3. Receive the "Bilibili Video Comments: Threads and Replies" 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 comment, author, author id, 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 Video Comments: Threads and Replies" task via API](https://apify.com/ai-lead-gen-tools/bilibili-scraper.md).

## FAQ

### What does one row contain?

The comment text, its author id, name, level and sex, the like count, the declared reply count and how many replies were actually kept, publish time and the video id.

### Are replies included?

Only when includeReplies is on. Each kept reply is its own row with parentRpid and rootRpid pointing at its thread.

### Where is the video row?

Comments mode emits one video row per requested video first, so a run with comments still shows which video was read.

### Do I need an account or a proxy?

No. Plain HTTP against the same public endpoints the website uses, no cookies and no key.

## About this Actor

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