# How do I export Bilibili comments with reply relationships?

How do I export Bilibili comments with reply relationships? Follow concrete contracts, examples and reviewable steps using Bilibili.

Canonical page: https://datanavoapi.com/en/answers/export-bilibili-comments/

This is a local simulation. Program-generated samples are not live platform data and do not establish provider availability.

## Answer

Start by inspecting the contracts and local samples for Bilibili video comments, Bilibili comment replies. Establish the input for bilibili.videos.comments.list, then check whether its comment object contains the fields your task needs.

Produce a structured local result before mapping fields to table columns or document sections. Deduplicate by platform and content ID and retain source and observation time. Downloading a file and writing to another application are separate actions; this exercise sends nothing externally.

## Relevant contracts

| Capability | Object | Shape | Pagination |

| --- | --- | --- | --- |

| bilibili.videos.comments.list | Comment | items | Explicit cursor |

| bilibili.comments.replies.list | Comment | items | Explicit cursor |

- [Bilibili video comments](https://datanavoapi.com/en/apis/bilibili/videos/comments/list/)
- [Bilibili comment replies](https://datanavoapi.com/en/apis/bilibili/comments/replies/list/)

## Input contract

Inspect meanings, examples and conditional rules for the selected method. view and fields control the response without changing the TEST unit price.

- Only send fields defined for this method; unknown fields are rejected before execution.

| Method | Field | Type | Requirement | Meaning | Enum or bound | Example |

| --- | --- | --- | --- | --- | --- | --- |

| GET | id | string | Required | The video's BV number: 12 characters starting with BV1 | — | "BV1ECeJ65EZS" |

| GET | sort | string | Optional / conditional | Top comments first, or by time posted (newest first; fewer a page that way, 7 to 9 recorded) | ["popular","latest"] | — |

| GET | cursor | string | Optional / conditional | The `next_cursor` of the previous page. A new page is a new call. | — | — |

| GET | view | string | Optional / conditional | How much of each item: compact (the most used fields, long text cut short), standard, or full (adds `ext`). | ["compact","standard","full"] | — |

| GET | fields | array | Optional / conditional | Return only these fields of each item, by path (`author.name`). | maxItems: 64 | — |

## Complete one verification

Run one local fixture for a listed capability and inspect the object structure. Then filter, classify or export according to the question. A local sample cannot replace evidence for a real-platform conclusion.

```json
{
  "capability": "bilibili.videos.comments.list",
  "method": "GET",
  "params": {
    "id": "BV1ECeJ65EZS"
  }
}
```

## Related pages

- [Bilibili video comments](https://datanavoapi.com/en/apis/bilibili/videos/comments/list/)
- [Bilibili comment replies](https://datanavoapi.com/en/apis/bilibili/comments/replies/list/)
- [Bilibili APIs](https://datanavoapi.com/en/apis/bilibili/)
- [Bilibili MCP](https://datanavoapi.com/en/mcp/bilibili/)
- [Comment fields](https://datanavoapi.com/en/docs/objects/comment/)
- [Read Bilibili videos and comments with Python](https://datanavoapi.com/en/guides/bilibili-api-python/)
- [How can an AI agent use Bilibili data?](https://datanavoapi.com/en/answers/bilibili-api-for-ai-agents/)
- [How do I organize Bilibili comments by time?](https://datanavoapi.com/en/answers/bilibili-comments-newest-first/)
- [Which Bilibili content, account and comment APIs are available?](https://datanavoapi.com/en/answers/bilibili-data-apis/)

[中文](https://datanavoapi.com/answers/export-bilibili-comments/)
