# Bilibili Video API Documentation

<p><strong>Bilibili Video API</strong> returns the full public record of one Bilibili video: the BV id, aid, cid, title, thumbnail, duration, description, publish date, category, copyright, the uploader profile (mid, name), video statistics (views, danmaku, replies, favorites, coins, shares, likes) and the list of parts/pages for multi-part videos.</p>

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

## 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 |
| --- | --- | --- | --- |
| `bvid` | string | Yes | BV video identifier. Example: BV1rpWjevEip. Required unless aid is provided. |
| `aid` | integer | No | Video aid. Alternative to bvid. |

## Example response

```json
{
    "meta": {
        "endpoint_family": "video"
    },
    "video": {
        "aid": 113006243481679,
        "cid": 36010133667,
        "pic": "https://i2.hdslb.com/bfs/archive/abc123.jpg",
        "tid": 17,
        "bvid": "BV1rpWjevEip",
        "desc": "Complete Python course for beginners.",
        "stat": {
            "coin": 18662,
            "like": 112004,
            "view": 20709188,
            "reply": 2457,
            "share": 5231,
            "danmaku": 132790,
            "favorite": 69881
        },
        "owner": {
            "mid": 3546597933714079,
            "name": "Python Official"
        },
        "pages": [
            {
                "cid": 36010133667,
                "page": 1,
                "part": "Course Introduction",
                "duration": 299
            }
        ],
        "title": "Python tutorial course - full series",
        "pubdate": 1660000000,
        "duration": 2398,
        "copyright": 1
    }
}
```

## 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)
