# How do I export Bilibili comments in bulk? (2026)

1,000 comments come to about $0.10: page through bilibili.videos.comments.list with the video's BV number, 20 comments a page at $0.0020, and write them to a table. Replies are a separate call. There is no endpoint for danmaku, the comments shown over the video: you get only how many there are. DataXAPI reads Bilibili with 9 endpoints, from $0.0020 a call; a failed call is not charged.

Updated 2026-11-04

## How to do it

One video, up to 200 comments: `dataxapi run comments platform=bilibili id=BV_NUMBER pages=10 --out comments.csv` writes a table of comment ID, text, commenter, likes, replies and time, for $0.02. A run takes up to 10 pages.

More than that: `dataxapi call bilibili.videos.comments.list id=BV_NUMBER --pages 50 --max-spend 0.1 --out comments.json` takes about 1,000 for $0.10, as JSON, which a few lines of code or your AI turn into a CSV or an Excel file. In code, pass `page.next_cursor` back as `cursor` until `page.has_more` is false, within the hour a cursor is good for.

The comments endpoint takes the BV number, `BV1` and 12 characters in all, which is in the video's address. Only have a b23.tv short link? `bilibili.videos.get` takes the link and gives the number, at $0.0020.

## Replies, and many videos

Comments come most liked first. Replies need the comment's `id` and its `post_id`, both in the comment list. To find the videos, use `bilibili.users.videos.list` for an uploader's, about 30 a page, or `bilibili.videos.search` for a topic's, about 20 a page.

| Job | Calls | Comes to |
| --- | --- | --- |
| 1,000 comments of one video | 50 × $0.0020 | $0.10 |
| One page of replies under 50 comments | 50 × $0.0020 | $0.10 |
| An uploader's 10 videos, 5 pages of comments each | 1 × $0.0020 + 50 × $0.0020 | $0.102 |

## Danmaku

DataXAPI has no endpoint for the danmaku themselves, so their text cannot be read here. The count can: with `view=full`, `bilibili.users.videos.list` gives each video's in `ext.danmaku`, and so does `bilibili.videos.get`.

## Good to know

To go from the table to what people want or complain about, ask your AI to group the comments, with how many times each comes up and a line in their own words. Sort by likes first. Leave commenters' names out of what you share. DataXAPI reads public data only.

## Endpoints

- [Bilibili video comments](https://dataxapi.com/apis/bilibili/videos/comments/list/) ($0.0020 / a call): Get a page of comments on a Bilibili video by BV number, most liked first: text, commenter, likes, reply count, time posted.
- [Bilibili comment replies](https://dataxapi.com/apis/bilibili/comments/replies/list/) ($0.0020 / a call): Get a page of replies to a Bilibili comment, by the comment's ID and its video's BV number: text, replier, likes, what it answers, time posted.
- [Bilibili video detail](https://dataxapi.com/apis/bilibili/videos/get/) ($0.0020 / a call): Get one Bilibili video by BV number or link: title, description, uploader, views, likes, coins, saves, danmaku count, length.
- [Bilibili user videos](https://dataxapi.com/apis/bilibili/users/videos/list/) ($0.0020 / a call): Get a page of the videos a Bilibili user uploaded, newest first: title, description, views, comments, danmaku count, length, time published.
- [Bilibili video search](https://dataxapi.com/apis/bilibili/videos/search/) ($0.0020 / a call): Get a page of Bilibili videos for search terms, by relevance, newest or most played: title, uploader, views, likes, saves, comments, length.

## More about Bilibili

- [Bilibili API](https://dataxapi.com/apis/bilibili/)
- [What are Bilibili's 412 error and wbi? (2026)](https://dataxapi.com/answers/bilibili-412-wbi/)
- [What does Bilibili's -352 error mean? (2026)](https://dataxapi.com/answers/bilibili-352-risk-control/)
- [What does Bilibili's API校验密匙错误 (code -3) mean? (2026)](https://dataxapi.com/answers/bilibili-api-key-error-minus-3/)

---

Catalog revision bf04cdef3b75e745. [HTML version](https://dataxapi.com/answers/export-bilibili-comments/)
