Bilibili

Bilibili API

Read videos, danmaku, comments and replies, creator profiles, search and popular videos from Bilibili over REST: 8 live endpoints, one API key and one JSON envelope. Below are all of them and a real request and response.

A new account gets 50 trial calls; after that, successful calls are billed from a prepaid balance. See pricing.

8 Bilibili API endpoints

Parameters, response fields and code samples for each are in the API reference.

A request and its response

Bilibili video detail(GET /v1/raw/bilibili/video). The sample comes from the endpoint catalog, not live data; a full response also carries request_id and meta.

cURL
curl 'https://api.qovia.ai/v1/raw/bilibili/video?bvid=BV1naKB64Evm' \
  -H "Authorization: Bearer $QOVIA_KEY"
data in the 200 OK response
{
  "data": {
    "id": "soc_bil_9b89815a7ce3",
    "src": "social",
    "platform": "bilibili",
    "lang": "zh-CN",
    "text": "一口气看懂先进封装:H100、B200、CoWoS与HBM如何连接?\nAI芯片为什么离不开先进封装?…",
    "author": {
      "uid_hash": "8fb5730b2ca6",
      "mid": "1517478075",
      "name": "坤元Research",
      "avatar": "https://i0.hdslb.com/bfs/face/8036b7133d5ba1fdc4286353885fdde55f0095dd.jpg"
    },
    "metrics": {
      "plays": 220502,
      "likes": 5640,
      "coins": 3550,
      "saves": 7982,
      "comments": 404,
      "shares": 1558,
      "danmaku": 242
    },
    "extra": {
      "source_id": "BV1naKB64Evm",
      "url": "https://www.bilibili.com/video/BV1naKB64Evm",
      "title": "一口气看懂先进封装:H100、B200、CoWoS与HBM如何连接?",
      "aid": "116944493613065",
      "cid": "40089160246",
      "duration_s": 1697,
      "published_at": "2026-07-19T11:23:00+08:00",
      "category": {
        "id": 2103,
        "name": null
      },
      "tags": [
        "先进封装",
        "CoWoS",
        "台积电",
        "HBM",
        "财经科普"
      ],
      "keywords": [
        "先进封装",
        "台积电",
        "HBM"
      ],
      "cover": "https://i1.hdslb.com/bfs/archive/bca0873add82bb7e6c8d7cf2b2e71cea9d18e798.jpg"
    },
    "prov": {
      "hash": "0xb5092dfcfd4fa826",
      "ts": "2026-10-20T12:00:00+08:00",
      "source": "live"
    }
  }
}

Use Bilibili data from an AI tool

Qovia is also an MCP server. Run this in Claude Code. Finding and reading endpoints needs no key; to call them, set up your API key as in the MCP docs. Cursor and VS Code setups are there too.

Shell
claude mcp add --transport http qovia https://api.qovia.ai/mcp

FAQ

How do I call the Bilibili API?

Send a GET request to https://api.qovia.ai, for example /v1/raw/bilibili/…, with your API key in an Authorization: Bearer header. A success is HTTP 200 with request_id, data and meta. This page lists all 8 endpoints, and each one's parameters are in the API reference.

What Bilibili data can I get?

Video detail (title, description, uploader, category, tags, and play, like, coin, save, comment, share and danmaku counts), keyword video search, top-level comments and nested replies, danmaku, creator profiles and their uploads, and Bilibili's popular videos.

Which ID identifies a Bilibili video?

The video endpoints take the BV id (bvid), not the older av number; creator endpoints take the mid. Search, creator uploads and popular videos return records with the same ids as video detail.

How much danmaku can I get?

The danmaku endpoint returns the current and historical danmaku of the video's first part, de-duplicated and cut at limit; has_more true means it was cut, so raise limit. complete=false means some segments could not be fetched.

Do I need a Bilibili account or cookies?

No. All you need is a Qovia API key: no accounts, cookies, proxies or request signing to maintain.

How is it billed?

Prepaid and per call: only successful calls that return data are charged, and empty results, errors and timeouts are not. Every response says what it cost (meta.charged_usd). Each endpoint's price is in the API reference.

Can I use it from Claude, Cursor or other AI tools?

Yes. Qovia is also an MCP server (https://api.qovia.ai/mcp): add it to Claude Code, Cursor or VS Code with your API key and the AI finds the endpoint, pulls the data and summarises it.

What should I keep in mind when using the data?

Qovia provides a data API service and claims no ownership of the underlying content. Use the data under applicable law and Bilibili's platform rules; see our terms of service.

Your agent only knows what you give it

Give it Douyin, Xiaohongshu (RedNote), WeChat and product reviews: structured, per call, nothing charged for failures.