---
title: "Bilibili API · SocialToAI"
canonical: https://socialtoai.app/platforms/bilibili/
updated: 2026-10-17
---

# Bilibili API

The Bilibili API lets you search videos and read video details, comments, account profiles, an account's videos and the trending list, with no Bilibili account or login. Each call costs 2 credits ($0.004 to $0.0067); failed calls are free. Use it over HTTP with an API key, or through MCP from your AI client. Last tested 2026-11-19.

- Page: https://socialtoai.app/platforms/bilibili/
- Last updated: 2026-10-17
- Last tested: 2026-11-19

## Actions

| Action | What it returns | Selected by | Price key | Credits | Parameters and fields |
| --- | --- | --- | --- | --- | --- |
| `search` | Find videos by keyword: text, author, likes, comment count, views and publish time. | — | `bilibili.search` | 2 | [Bilibili Search API](https://socialtoai.app/bilibili-search-api.md) |
| `trending` | What is trending now: title, rank and heat. | — | `bilibili.trending` | 2 | [Bilibili Trending API](https://socialtoai.app/bilibili-trending-api.md) |
| `trending` | the trending videos board | `type=videos` | `bilibili.trending:videos` | 2 | [Bilibili Trending API](https://socialtoai.app/bilibili-trending-api.md) |
| `detail` | One video by ID or link: text, author, likes, comment count, views and publish time. | — | `bilibili.detail` | 2 | [Bilibili Detail API](https://socialtoai.app/bilibili-detail-api.md) |
| `comments` | The comments under one video: text, likes, reply count and time. | — | `bilibili.comments` | 2 | [Bilibili Comments API](https://socialtoai.app/bilibili-comments-api.md) |
| `comments` | the replies under one comment | `reply_of` | `bilibili.comments:replies` | 2 | [Bilibili Comments API](https://socialtoai.app/bilibili-comments-api.md) |
| `user_profile` | One account: name, bio, followers, following and post count. | — | `bilibili.user_profile` | 2 | [Bilibili User Profile API](https://socialtoai.app/bilibili-user-profile-api.md) |
| `user_posts` | The recent videos of one account. | — | `bilibili.user_posts` | 2 | [Bilibili User Posts API](https://socialtoai.app/bilibili-user-posts-api.md) |

Compared with Douyin: Bilibili videos do not give images.

Lighter for your AI: across 8 interfaces measured on the same recorded data, the platform's raw JSON is about 274,162 tokens and SocialToAI's answers about 26,909, 90% fewer (2026-11-06; the method is on the "How we measure" page).

## Example call

```bash
curl https://socialtoai.app/v1/search \
  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "bilibili",
    "query": "机械键盘"
  }'
```

## Fields Bilibili cannot give

These fields are always null on the calls named, and are listed in the response's `unavailable`.

| Field | On |
| --- | --- |
| `author.username` | search, detail, user_posts |
| `author.verified` | search, user_posts |
| `author.followers` | search, user_posts |
| `metrics.shares` | search, user_posts |
| `metrics.reposts` | search, detail, user_posts |
| `images` | search, detail, user_posts |
| `is_pinned` | search, detail, user_posts |
| `id` | trending |
| `url` | trending, comments |
| `metrics.likes` | user_posts |
| `metrics.collects` | user_posts |
| `hashtags` | user_posts |

## What a whole job costs

| The job | How it adds up | Credits | About |
| --- | --- | --- | --- |
| Search 1,000 results on Bilibili | usually 20 a page, 50 pages | 100 credits | about $0.33 |
| Read 1,000 Bilibili comments | usually 20 a page, 50 pages | 100 credits | about $0.33 |
| Backfill one Bilibili account: a list of 200 videos and 20 in full | 7 list pages + 20 full reads | 54 credits | about $0.18 |
| Watch 1 Bilibili account daily, at most a month | 10 credits × 31 days | 310 credits | about $1.03 |

Priced at the $10 pack; larger purchases bring it down. A watch runs only while it is on, and you can pause it at any time. There is no subscription.

## Ask in your AI

- Which is bigger on Bilibili this week: home coffee or matcha? → search, search: 4 credits

- Read the comments on this Bilibili video and tell me what people complain about. → detail, comments × 3: 8 credits

- What is trending on Bilibili right now? → trending: 2 credits

[Bilibili MCP Server](https://socialtoai.app/mcp/bilibili.md)

## Ready-made tools that read Bilibili

- [Brand buzz](https://socialtoai.app/tools/brand-buzz.md): How people feel about it on each platform, what comes up most, and the posts behind it
- [Comment analysis](https://socialtoai.app/tools/comment-insights.md): The topics in their comments and how big each is, plus questions, buying intent and complaints
- [Account snapshot](https://socialtoai.app/tools/account-watch.md): What each one posted lately, and which posts beat its usual numbers
- [Find creators](https://socialtoai.app/tools/find-creators.md): Creators who make that content, with their size, recent posts and how well each fits
- [Creator profile](https://socialtoai.app/tools/creator-card.md): Their accounts on other platforms, the numbers on each, and how sure the match is
- [Bulk link data](https://socialtoai.app/tools/batch-stats.md): One row per link with its numbers as they are now. Links that no longer work are marked
- [Viral finder](https://socialtoai.app/tools/viral-finder.md): Posts that did clearly better than their authors usually do

## Official API

Bilibili's open platform serves organisations, creators and businesses. Its video and data endpoints return the videos and stats of users who authorise the app, and each scope must be applied for.

Source: [Bilibili's developer documentation](https://openhome.bilibili.com/doc/4/a24030b7-6b8f-b36c-32d8-a4aae67fcc35), checked 2026-10-17.

1,000 videos here: about 50 `bilibili.search` calls (typically 20 a page), 100 credits, $0.33 at the first pack. [Estimate your cost](https://socialtoai.app/free-tools/api-cost-estimator.md)

[Bilibili official API: access, prices and limits](https://socialtoai.app/does-bilibili-have-an-api.md)

- [Comments API, every platform](https://socialtoai.app/comments-api.md): Which platforms give comments, how many a page, at what price.
- [How to analyze video comments with AI, and keep the original words](https://socialtoai.app/how-to/analyze-comments-with-quotes.md): what comments say, with original words: the tool or your AI, price per platform, a recorded answer
- [Monitor competitors' accounts every day](https://socialtoai.app/monitors/competitors.md): competitors' accounts, daily: what is new and what beat their usual, from 9 credits an account
- [Bilibili trending today](https://socialtoai.app/trending/bilibili.md): Today's board in one list, refreshed daily.
- [Bilibili MCP server](https://socialtoai.app/mcp/bilibili.md): Let your AI read Bilibili.
