SocialToAIStart freeConsole

Does Bilibili have an API? (2026)

Not for public content: Bilibili's open platform returns only the videos and stats of users who authorise your app. SocialToAI reads its publicly visible videos, comments, accounts and trends without a Bilibili developer account: 8 interfaces from 2 credits a call (≈ $0.004–$0.0067), and failed calls are free. Official facts checked 2026-10-17.

The short answer

Not for public content: Bilibili's open platform returns only the videos and stats of users who authorise your app.

WayWhat it gives and who can use itPrice
Official APINot for public content: Bilibili's open platform returns only the videos and stats of users who authorise your app.See Bilibili's developer documentation, checked 2026-10-17
Third-party hosted API (this site)Anyone with a key: no Bilibili account, no developer review.From 2 credits a call (≈$0.0067); failed calls free.

What the official API allows

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 own developer documentation, checked 2026-10-17. What a platform allows changes; its own pages are the authority.

Reading Bilibili's public data with SocialToAI

SocialToAI is an API and MCP server for publicly visible content and account information. You need no Bilibili account and no app review: one SocialToAI key, or signing in from Claude, ChatGPT, Claude Code, Cursor and Codex. Each call costs a fixed number of credits, and a failed call costs nothing.

InterfaceWhat it returnsCredits
Bilibili Search APIFind videos by keyword: text, author, likes, comment count, views and publish time.2
Bilibili Trending APIWhat is trending now: title, rank and heat.2
Bilibili Detail APIOne video by ID or link: text, author, likes, comment count, views and publish time.2
Bilibili Comments APIThe comments under one video: text, likes, reply count and time.2
Bilibili User Profile APIOne account: name, bio, followers, following and post count.2
Bilibili User Posts APIThe recent videos of one account.2
Bilibili Trending API · type=videosThe videos trending now.2
Bilibili Comments API · reply_ofThe comments under one video: text, likes, reply count and time.2
One call: Search
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": "机械键盘"  }'
  • No Bilibili account, cookie or developer approval on your side.
  • What comes back is what the platform shows publicly; commenters are anonymised.
  • Every platform answers in the same response format, so the same code reads Bilibili and the others.
  • Prepaid credits from 2 credits a call; 100 free credits on sign-up, no card.

Reading Bilibili without the official API

There are three ways in, and they differ in what you have to hand over and keep running. These are kinds of tool, not products.

WayWhat you needWhat to watch for
Write your own scraperCode, proxies, and often your own Bilibili login or cookiesRequests made in your account's name can get it limited or banned; pages and signatures change, so the code needs upkeep.
Run an open-source MCP server or script locallyInstall it, then sign in with your account or paste its cookiesIt reads as your account, and stops when the platform changes or your computer is off.
Call a hosted API (SocialToAI)One SocialToAI key, or one MCP address and sign-inNo account of yours is used; you pay from 2 credits a call and nothing for a failed one; keeping up with Bilibili is our job.

FAQ

Can I read Bilibili without a developer account?

Yes. SocialToAI reads its publicly visible videos, comments, accounts and trends for you: 8 interfaces from 2 credits a call (≈$0.0067), and failed calls are free. You need one SocialToAI key, or sign-in from your AI client.

Will reading Bilibili this way get my account banned?

No account of yours is involved: you never sign in to Bilibili, hand over a cookie or install anything, so nothing is read in your account's name.

How much does reading Bilibili cost here?

From 2 credits a call: $0.0067 at the first pack, $6.67 for a thousand such calls. A failed call costs nothing, and every answer states what it charged. 100 free credits on sign-up, no card.

Can Claude and ChatGPT read Bilibili?

Yes: add SocialToAI's MCP address in Claude or ChatGPT, sign in and press Allow, then ask in plain words. Each answer states the credits it used.

Read next

Sources

Last updated: