SocialToAIStart freeConsole

Does Bilibili have an API?

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.

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 returnsPrice keyCredits
SearchFind videos by keyword: text, author, likes, comment count, views and publish time.bilibili.search2
TrendingWhat is trending now: title, rank and heat.bilibili.trending2
Trending · type=videosThe videos trending now.bilibili.trending:videos2
DetailOne video by ID or link: text, author, likes, comment count, views and publish time.bilibili.detail2
CommentsThe comments under one video: text, likes, reply count and time.bilibili.comments2
Comments · reply_ofThe comments under one video: text, likes, reply count and time.bilibili.comments:replies2
User ProfileOne account: name, bio, followers, following and post count.bilibili.user_profile2
User PostsThe recent videos of one account.bilibili.user_posts2
One call: Search
curl https://api.socialtoai.com/v1/search \  -H "Authorization: Bearer $SOCIALTOAI_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.

Sources

Last updated: