How to get Bilibili video comments by BV ID

Pass the BV ID and page with data.next, which counts the page number up. Ten pages are about 180 comments for 10 calls and $0.02, without wbi signing or a 412 block.

Updated 2026-11-22·This page as Markdown

Page through the comments

bv_id is the BV... part of a bilibili.com/video link. Paging is by page number: data.next is {"pn": 2}, then 3, and so on, until it is null.

Bilibili comments API·GET /v1/bilibili/comments/list·$0.002 a call

curl "https://xtikapi.com/v1/bilibili/comments/list?bv_id=BV1zGy5ziEnd" \
  -H "Authorization: Bearer YOUR_API_KEY"
Recorded response (lists keep the first two items)
{
  "data": {
    "items": [
      {
        "id": "627037004863",
        "text": "Example text",
        "author": {
          "id": "691389870",
          "name": "Example name",
          "avatar": "https://example.com/image.jpg",
          "description": "Example text"
        },
        "createdAt": "2026-11-18T18:21:51.000Z",
        "likeCount": 72,
        "replyCount": 7
      },
      {
        "id": "627020641159",
        "text": "Example text",
        "author": {
          "id": "6467168760735863",
          "name": "Example name",
          "avatar": "https://example.com/image.jpg"
        },
        "createdAt": "2026-11-18T14:20:14.000Z",
        "likeCount": 21,
        "replyCount": 13
      }
    ],
    "has_more": true,
    "next": {
      "pn": 2
    }
  },
  "meta": {
    "request_id": "example",
    "endpoint": "bilibili.comments.list",
    "normalized": true,
    "unavailable": [],
    "billing": {
      "charged": true,
      "amount": 0.002,
      "balance": 4.98
    }
  }
}

What the example costs

Calls: 10
Price: $0.002
Subtotal: $0.02
Total
Calls: 10
Price: —
Subtotal: $0.02

Failed calls and timeouts are not charged. A new account with a verified email gets $0.50 of trial balance, enough to run this example.

Good to know

  • In our tests on 2026-11-22 the first page held 3 or 20 comments and later pages 20; ten pages gave 183 comments.
  • Bilibili sometimes answers a page empty although more comments exist. The gateway retries it, and if it still fails you get a retryable error that is not charged; the code above retries it once more.
  • Stop on data.next being null, not on a short page.
  • Replies come from bilibili.comment_replies.list. Danmaku (bullet comments) are not returned.

Endpoints

Questions

How much does this cost with XTikAPI?

The example here is 10 calls, $0.02 in total. Failed calls and timeouts are free, and a new account with a verified email gets $0.50 of trial balance.

Can I pass an av number?

This call takes the BV ID. Old av links redirect to a BV link on bilibili.com; use the BV part of that link.