# Bilibili Video Comments (App) API

> Returns user comments for a specified Bilibili video by AV or BV identifier. Supports sorting comments by popularity or post time, with cursor-based pagination.

Source: https://www.sandbase.ai/apis/bilibili/app/video-comments
API reference: https://www.sandbase.ai/apis/bilibili/app/video-comments/docs

## Facts

- Provider: Bilibili
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/bilibili/app/video-comments`
- Price: $0.0015 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, bilibili
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/bilibili/app/video-comments` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `av_id` | string | no |  |
| `bv_id` | string | no |  |
| `mode` | integer | no |  |
| `next_offset` | integer | no |  |

## FAQ

### How do I use the Bilibili Video Comments (App) API?

Send a POST request to https://api.sandbase.ai/v1/api/bilibili/app/video-comments with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Bilibili Video Comments (App) API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Bilibili Video Comments (App) API accept?

No parameters are required. Optional: av_id (string), bv_id (string), mode (integer) and next_offset (integer). The Parameters table and the Playground on this page list every field.

### What does the Bilibili Video Comments (App) API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Bilibili developer account or API key?

No. Bilibili Video Comments (App) runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Bilibili API access separately.

## README

### Bilibili Video Comments (App) API

Retrieve comments on a Bilibili video using either `bv_id` or `av_id`. Configure comment ordering and traverse pages via `next_offset`.

#### Use cases

- Analyze viewer sentiment and reactions across top video comments.
- Track discussion timelines on videos sorted by post time.
- Collect popular viewer feedback to measure engagement trends.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/app/video-comments" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `mode` | integer | No | Sort mode (3=hot, 2=time) |
| `av_id` | string | No | AV ID (choose one of av_id or bv_id) |
| `bv_id` | string | No | BV ID (choose one of av_id or bv_id) |
| `next_offset` | integer | No | Pagination cursor |

#### Notes

- Specify either `av_id` or `bv_id` to identify the target video.
- Set `mode` to 3 for top comments or 2 for chronological order.
- Advance through result pages using `next_offset`.

#### Related APIs

- [Bilibili App Bangumi Tab](/model/bilibili/app/bangumi-tab): Returns Bilibili app bangumi tab data, providing curated anime recommendations, feed items, and category listings for mobile clients.
- [Bilibili App Cinema Tab](/model/bilibili/app/cinema-tab): Returns cinema tab content from the Bilibili app, featuring curated movies, TV shows, and entertainment recommendations without requiring additional query para…
- [Bilibili App Home Feed](/model/bilibili/app/home-feed): Returns recommended video items from the Bilibili app home feed.
