# Bilibili Comment Replies API

> Returns replies to a specific comment on a Bilibili video by video ID and comment ID. Supports pagination to browse threaded discussion replies.

Source: https://www.sandbase.ai/apis/bilibili/web/comment-reply
API reference: https://www.sandbase.ai/apis/bilibili/web/comment-reply/docs

## Facts

- Provider: Bilibili
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/bilibili/web/comment-reply`
- 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/web/comment-reply` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `bv_id` | string | yes |  |
| `rpid` | string | yes |  |
| `pn` | integer | no |  |

## FAQ

### How do I use the Bilibili Comment Replies API?

Send a POST request to https://api.sandbase.ai/v1/api/bilibili/web/comment-reply 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 Comment Replies 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 Comment Replies API accept?

Required: bv_id (string) and rpid (string). Optional: pn (integer). The Parameters table and the Playground on this page list every field.

### What does the Bilibili Comment Replies API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

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

No. Bilibili Comment Replies 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 Comment Replies API

Fetch threaded replies for a specific comment using `bv_id` and `rpid`. Browse through conversation pages by specifying `pn`.

#### Use cases

- Inspect user conversations beneath specific video comments.
- Analyze engagement and reaction metrics on comment threads.
- Build moderation or archiving tools for video discussion replies.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/comment-reply" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bv_id": "BV1dFad6aEz9", "rpid": "237108091664"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `rpid` | string | Yes | Reply id |
| `bv_id` | string | Yes | Video id |
| `pn` | integer | No | Page number |

#### Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

```json
{
  "data": {
    "replies": [
      {
        "count": 0,
        "ctime": 1723373731,
        "dynamic_id_str": "0",
        "like": 18,
        "rcount": 0,
        "type": 1,
        "member": {
          "rank": "10000",
          "uname": "喜欢孤独的滋味"
        },
        "reply_control": {
          "time_desc": "786天前发布"
        },
        "up_action": {
          "like": false
        }
      }
    ]
  }
}
```

#### Notes

- Identify the target video using `bv_id`.
- Provide the parent comment identifier via `rpid`.
- Use `pn` to page through nested reply results.

#### Related APIs

- [Bilibili Streaming Areas](/model/bilibili/web/all-live-areas): Returns the complete list of streaming broadcast areas and categories on Bilibili.
- [Bilibili BV to AID Converter](/model/bilibili/web/bv-to-aid): Converts a Bilibili BV identifier to its corresponding numeric AID value.
- [Bilibili User Collection Folders](/model/bilibili/web/collect-folders): Returns the collection folders owned by a specific Bilibili user.
