Skip to content
Scrappa Get API key
Bilibili API 1 credit/request

Bilibili Comments API Documentation

GET https://scrappa.co/api/bilibili/comments

Bilibili Comments API 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.

Bilibili Comments API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/bilibili/comments
Auth header
x-api-key
Cost
1 credit/request
type = 10 oid = 10
Response preview
200 OK
{
    "meta": {
        "endpoint_family": "comments"
    },
    "page": 1,
    "count": 359670,
    "comments": [
        {
            "mid": 1242205079,
            "like": 7508,
            "rpid": 247714016448,
            "count": 3,
            "message": "Great course!"
        },
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

2 required parameters needed before sending a request.

3 optional filters available.

type integer Required

Reply type. 1=video (oid is avid).

Example value 10
oid integer Required

Video aid. Example: 113006243481679.

Example value 10
sort integer Optional

Sort: 0=time, 1=likes, 2=replies. Defaults to 2.

Example value relevance
pn integer Optional

Page number, 1-based. Defaults to 1.

Example value 10
ps integer Optional

Page size, max 20. Defaults to 20.

Example value 10

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

meta page count comments has_more page_size

Common comments fields

mid like rpid count
JSON Response
200 OK
{
    "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
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.