SocialToAIStart freeConsole

Bilibili API

Videos, comments, accounts, trends.

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-05.

6 of 6actions available
From 2 creditsper call
Same formatas every other call

Last tested: Last updated:

POST/v1/search200 OK2 credits
platform: "bilibili" · query: "机械键盘"
@…·
likes 237comments 64shares nullcollects 169views 35,706
Always null here:author.usernameauthor.verifiedauthor.followersmetrics.shares+3
pageNext pagecursor
billingThis call2 credits
Sample data1 of the 20 items recorded

6 actions.
One response format.

Open a row to see its request. Its full parameters and response fields are on its own page.

ActionsCredits per call
SearchFind videos by keyword: text, author, likes, comment count, views and publish time./v1/search2 credits≈ $0.0067
You send
platformquery+1 optional
Bilibili Search API: All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/search \  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \  -H "Idempotency-Key: $(uuidgen)" \  -H "Content-Type: application/json" \  -d '{    "platform": "bilibili",    "query": "机械键盘"  }'
POST /v1/searchYour key goes in the Authorization header
TrendingWhat is trending now: title, rank and heat./v1/trending2 credits≈ $0.0067
You send
platform+1 optional
type=videosthe trending videos board2 credits
Bilibili Trending API: All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/trending \  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \  -H "Idempotency-Key: $(uuidgen)" \  -H "Content-Type: application/json" \  -d '{    "platform": "bilibili"  }'
POST /v1/trendingYour key goes in the Authorization header
DetailOne video by ID or link: text, author, likes, comment count, views and publish time./v1/detail2 credits≈ $0.0067
You send
platformid or url
Bilibili Detail API: All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/detail \  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \  -H "Idempotency-Key: $(uuidgen)" \  -H "Content-Type: application/json" \  -d '{    "platform": "bilibili",    "id": "BV1ECeJ65EZS"  }'
POST /v1/detailYour key goes in the Authorization header
CommentsThe comments under one video: text, likes, reply count and time./v1/comments2 credits≈ $0.0067
You send
platformid
reply_ofthe replies under one comment2 credits
Bilibili Comments API: All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/comments \  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \  -H "Idempotency-Key: $(uuidgen)" \  -H "Content-Type: application/json" \  -d '{    "platform": "bilibili",    "id": "BV1ECeJ65EZS"  }'
POST /v1/commentsYour key goes in the Authorization header
User ProfileOne account: name, bio, followers, following and post count./v1/user_profile2 credits≈ $0.0067
You send
platformid
Bilibili User Profile API: All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/user_profile \  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \  -H "Idempotency-Key: $(uuidgen)" \  -H "Content-Type: application/json" \  -d '{    "platform": "bilibili",    "id": "8047632"  }'
POST /v1/user_profileYour key goes in the Authorization header
User PostsThe recent videos of one account./v1/user_posts2 credits≈ $0.0067
You send
platformid
Bilibili User Posts API: All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/user_posts \  -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \  -H "Idempotency-Key: $(uuidgen)" \  -H "Content-Type: application/json" \  -d '{    "platform": "bilibili",    "id": "8047632"  }'
POST /v1/user_postsYour key goes in the Authorization header

Compared with Douyin: Bilibili videos do not give images.

What a whole job costs.

The jobHow it adds upCreditsAbout
Search 1,000 results on Bilibiliusually 20 a page, 50 pages100 creditsabout $0.33
Read 1,000 Bilibili commentsusually 20 a page, 50 pages100 creditsabout $0.33
Backfill one Bilibili account: a list of 200 videos and 20 in full7 list pages + 20 full reads54 creditsabout $0.18
Watch 1 Bilibili account daily, at most a month10 credits × 31 days310 creditsabout $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.

Or skip the parameters.
Just ask.

Connect SocialToAI once over MCP. Your AI picks the calls, and you see what each one cost.

You ask01

Which is bigger on Bilibili this week: home coffee or matcha?

Your AI calls
  • search“home coffee”2 credits
  • search“matcha”2 credits
Total4 credits
You ask02

Read the comments on this Bilibili video and tell me what people complain about.

Your AI calls
  • detailthe video you pasted2 credits
  • commentsfirst 3 pages6 credits
Total8 credits
You ask03

What is trending on Bilibili right now?

Your AI calls
  • trendingthe current board2 credits
Total2 credits

Bilibili MCP Server

Same shape on every platform.
Learn it once.

A Bilibili video and a TikTok video come back with the same field names. What a platform cannot give comes back as null.

Bilibilidetail · 2 credits
{  "platform": "bilibili",  "id": "…",  "ref": "…",  "approx": [],  "type": "content",  "url": "https://example.com/…",  "format": "video",  "title": "…",  "text": "…",  "published_at": "2026-10-09T09:00:00.000Z",  "author": {    "id": "…",    "username": null,    "name": "…",    "verified": true,    "followers": 18634892  },  "metrics": {    "likes": 140338,    "comments": 2707,    "shares": 4696,    "collects": 20492,    "views": 2166787,    "reposts": null  },  "images": null,  "hashtags": null,  "is_pinned": null}
Null on Bilibili:author.usernamemetrics.repostsimageshashtagsis_pinned
TikTokdetail · 2 credits
{  "platform": "tiktok",  "id": "…",  "ref": "…",  "approx": [],  "type": "content",  "url": "https://example.com/…",  "format": "video",  "title": null,  "text": "…",  "published_at": "2026-10-08T13:12:22.000Z",  "author": {    "id": "…",    "username": "…",    "name": "…",    "verified": null,    "followers": 2060936  },  "metrics": {    "likes": 67877,    "comments": 524,    "shares": 2472,    "collects": 5331,    "views": 449259,    "reposts": null  },  "images": null,  "hashtags": [],  "is_pinned": null}
Null on TikTok:titleauthor.verifiedmetrics.repostsimagesis_pinned
Sample dataThe fields are always there; only the values differ.

7 tools read Bilibili.

All tools

Does Bilibili have an 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, 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

Bilibili official API: access, prices and limits

The same calls work on 17 more.

All platforms and prices

Your AI is one URL away
from all of social media.

100 credits on sign-up, no card needed