# Bilibili Comments API Documentation

<p><strong>Bilibili Comments API</strong> returns the comment list for one Bilibili video with pagination. Each comment carries the reply id, mid, like count, reply count and message content. A valid empty list is a successful response.</p>

- **Documentation:** [https://scrappa.co/docs/bilibili-api/bilibili_comments](https://scrappa.co/docs/bilibili-api/bilibili_comments)
- **API group:** Bilibili API
- **Endpoint:** `GET https://scrappa.co/api/bilibili/comments`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `type` | integer | Yes | Reply type. 1=video (oid is avid). |
| `oid` | integer | Yes | Video aid. Example: 113006243481679. |
| `sort` | integer | No | Sort: 0=time, 1=likes, 2=replies. Defaults to 2. |
| `pn` | integer | No | Page number, 1-based. Defaults to 1. |
| `ps` | integer | No | Page size, max 20. Defaults to 20. |

## Example response

```json
{
    "meta": {
        "endpoint_family": "comments"
    },
    "page": 1,
    "count": 359670,
    "comments": [
        {
            "mid": 1242205079,
            "like": 7508,
            "rpid": 247714016448,
            "count": 3,
            "message": "Great course!"
        },
        {
            "mid": 1085563010,
            "like": 1940,
            "rpid": 243565772128,
            "count": 1,
            "message": "Very helpful for beginners."
        }
    ],
    "has_more": true,
    "page_size": 20
}
```

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
