# How do I collect Bilibili data? The creator center, the open platform, scrapers and data APIs (2026)

5 ways: your own account's numbers are in Bilibili's creator center; Bilibili's open platform gives only an authorising uploader's own data, with no search among its scopes; the popular list and single videos can be read by hand on the site; for other people's public videos, comments and uploaders, in quantity or on a schedule, write a scraper or use a data API. With DataXAPI a page of video search is $0.0020, with no Bilibili account, cookie or wbi signature of yours. DataXAPI's endpoints here are from $0.0020 a call, and a failed call is not charged; what others do was checked on 2026-11-20, with sources below.

Updated 2026-11-20

## What does each way get?

Side by side on what each gets, the account it needs, cost, upkeep and risk. Prices are DataXAPI's current ones; a failed call is not charged.

| Way | What you get | Account and sign-in | Cost | Upkeep | Risk |
| --- | --- | --- | --- | --- | --- |
| The creator center | Your own videos' plays, interactions and followers | Your own account | Free | None | Your own account only |
| The open platform | The authorising user's own profile, videos, articles, live room and the like; no search among the scopes | A developer account, an app, the user's consent | As the platform's documents say | Follows the platform's scope changes | Nothing of anyone else's |
| By hand on the site | What the pages show: titles, plays, likes, comments, the popular list | A browser | Free, but it is hand work | None | Too slow once there is much |
| Your own scraper | Whatever the web endpoints return | The web endpoints want a wbi signature, and the session and IP are yours to manage | A developer's time, and proxies | Repairs when the signature or the endpoints change | Somewhat faster gets -352, faster still HTTP 412 |
| A data API (DataXAPI) | Video search and details, comments and replies, uploaders and their videos, popular videos and hot searches, in one shape | A key; no platform account of yours | Per call, $0.0020 | None on your side | No account of yours, so none is at risk |

## Which way?

To review your own account: the creator center. For an app that uploaders sign in to: the open platform. A few dozen videos now and then: by hand on the site. Other people's videos, comments and uploaders in bulk or on a schedule, or fed to a spreadsheet, BI or an AI: a data API, with no accounts to keep and no code to change after signatures and risk controls.

## What does an API get, at what price?

Three pages of search, then 2 pages of comments under the first 30 videos, are 63 calls, $0.126 in all. 100 uploaders checked weekly come to about 400 calls a month, $0.80.

| You want | Endpoint | Price |
| --- | --- | --- |
| Videos for a keyword, newest or most played first | `bilibili.videos.search` | $0.0020 a page |
| A video's plays, likes, coins, favourites and danmaku | `bilibili.videos.get` | $0.0020 a video |
| A video's comments and replies | `bilibili.videos.comments.list`, `bilibili.comments.replies.list` | $0.0020 a page |
| An uploader and all their videos | `bilibili.users.get`, `bilibili.users.videos.list` | $0.0020 for about 30 videos |
| The popular list and hot searches | `bilibili.videos.trending`, `bilibili.trends.list` | $0.0020 a call |

## What does a real call look like?

Below is the request of `bilibili.videos.search` and a response recorded for real, with the day it was recorded under it. Each video's ID is in `id`, and its plays, likes, favourites and comments in `metrics`; for the next page pass `page.next_cursor` back as `cursor`. The code reads the key from the environment variable `DATAXAPI_API_KEY`; with your own key it runs as it is.

[Bilibili video search](https://dataxapi.com/apis/bilibili/videos/search/), $0.0020 / a call

cURL

```bash
curl -G "https://api.dataxapi.com/v1/bilibili/videos/search" \
  --data-urlencode "query=机械键盘" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"
```

Python

```python
# pip install dataxapi
from dataxapi import DataXAPI

dx = DataXAPI()  # reads DATAXAPI_API_KEY
result = dx.bilibili.videos.search(query="机械键盘")
print(result["data"]["items"])
```

TypeScript

```typescript
// npm i @dataxapi/sdk
import { DataXAPI } from "@dataxapi/sdk";

const dx = new DataXAPI(); // reads DATAXAPI_API_KEY
const result = await dx.bilibili.videos.search({ query: "机械键盘" });
console.log(result.data.items);
```

CLI

```bash
dataxapi call bilibili.videos.search 'query=机械键盘'
```

Recorded response: From a response recorded 2026-10-12 18:47 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.

```jsonc
{
  "code": "ok",
  "request_id": "dee21d14-3682-420a-acad-8806b2d59dfe",
  "data": {
    "items": [
      {
        "id": "BV1M05Rhoe4r",
        "url": "https://www.bilibili.com/video/BV1M05Rhoe4r",
        "type": "video",
        "title": "实测一个月机械键盘，结论有点意外",
        "text": null,
        "published_at": "2026-09-30T08:55:00.000Z",
        "author": {
          "id": "585724901",
          "name": "阿杰爱折腾",
          "avatar_url": "https://i0.hdslb.com/bfs/face/17a7658e63c84808ef09bb48.jpg"
        },
        "metrics": {
          "likes": 237,
          "comments": 64,
          "favorites": 169,
          "views": 35706
        },
        "hashtags": [
          "户外生活",
          "好物分享",
          // … 8 more
        ]
      },
      // … 19 more
    ]
  },
  "page": {
    "next_cursor": "c1.72NAeDsxx6zMLTUXCjX2T5Su39puxExBbLOvdWBm",
    "cursor_expires_at": "2026-10-12T19:47:48.000Z",
    "has_more": true,
    "returned": 20
  },
  "warnings": [],
  "meta": {
    "capability": "bilibili.videos.search",
    "result_status": "complete",
    "fetched_at": "2026-10-12T18:47:48.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {
      "lang": "capability",
      "author.username": "platform",
      "author.verified": "capability",
      "author.followers": "capability",
      "metrics.shares": "capability",
      "metrics.reposts": "platform",
      "images": "platform",
      "mentions": "capability",
      "is_pinned": "capability",
      "post_id": "platform",
      "parent_id": "platform",
      "root_id": "platform"
    },
    "billing": {
      "amount": "0.002",
      "currency": "USD",
      "balance_after": "9.998"
    }
  }
}
```

## Does Bilibili have an official API?

Yes. Bilibili's open platform lets uploaders and developers manage the authorising user's own content: its scopes are that user's own profile, videos, articles, live room, shop and the like, and none is search. To read other people's public videos and comments, use a data API.

## What are a BV number and a mid?

A video is named by its BV number (12 characters starting with BV1), or its link or b23.tv short link pasted as it is; an uploader by the user number (mid), the digits after space.bilibili.com/.

## Is the data current?

Calls by ID, keyword or account are fetched at call time, and every response carries `meta.fetched_at`, the time the data was read.

## What to watch

Collect only what is public. Copying by hand, a plugin and a scraper all sign in with your own Bilibili account, and going fast or taking much gets it limited, at worst banned; a data API uses no account of yours. Being able to read something is not a right to republish it: keep to the law and the author's rights, and take more care where personal information is in it.

## Endpoints

- [Bilibili video search](https://dataxapi.com/apis/bilibili/videos/search/) ($0.0020 / a call): Get a page of Bilibili videos for search terms, by relevance, newest or most played: title, uploader, views, likes, saves, comments, length.
- [Bilibili video detail](https://dataxapi.com/apis/bilibili/videos/get/) ($0.0020 / a call): Get one Bilibili video by BV number or link: title, description, uploader, views, likes, coins, saves, danmaku count, length, tags, section, IP location, and the cid that subtitles and danmaku are asked for by.
- [Bilibili video comments](https://dataxapi.com/apis/bilibili/videos/comments/list/) ($0.0020 / a call): Get a page of comments on a Bilibili video by BV number, top or newest first: text, commenter and their level, likes, reply count, time posted.
- [Bilibili comment replies](https://dataxapi.com/apis/bilibili/comments/replies/list/) ($0.0020 / a call): Get a page of replies to a Bilibili comment, by the comment's ID and its video's BV number: text, replier, likes, what it answers, time posted.
- [Bilibili user profile](https://dataxapi.com/apis/bilibili/users/get/) ($0.0020 / a call): Get a Bilibili user's profile by user number: name, bio, avatar, verification and what it says, follower and following counts, number of videos, likes received in all, account level, live room link.
- [Bilibili user videos](https://dataxapi.com/apis/bilibili/users/videos/list/) ($0.0020 / a call): Get a page of the videos a Bilibili user uploaded, newest first: title, description, views, comments, danmaku count, length, time published.
- [Bilibili popular videos](https://dataxapi.com/apis/bilibili/videos/trending/) ($0.0020 / a call): Get a page of Bilibili's popular videos: title, description, uploader, views, likes, coins, saves, danmaku count, length, section, IP location, why it is recommended.
- [Bilibili hot searches](https://dataxapi.com/apis/bilibili/trends/list/) ($0.0020 / a call): Get Bilibili's current hot search terms, up to 50, with rank, heat and the words the list shows for each.

## How-to guides

- [Bilibili API in Python: videos and comments (2026)](https://dataxapi.com/guides/bilibili-api-python/)

## Sources

What this page says of other services is from their own pages and documents, read on 2026-11-20.

- [Bilibili creator center](https://member.bilibili.com/platform/home)
- [Bilibili open platform: scope list](https://member.bilibili.com/arcopen/user/config/scopetype)
- yutto issue 876: -352 and 412

## More about Bilibili

- [Bilibili API](https://dataxapi.com/apis/bilibili/)

---

Catalog revision 720fc3ea8dadb865. [HTML version](https://dataxapi.com/compare/how-to-collect-bilibili-data/)
