Bilibili MCP server and data API for AI agents
Real-time public Bilibili data for your AI: videos, comments and dynamics. Pay per use.
Available data
- Video detail
- User uploads
- Comment replies
- User dynamics
- Anime listings
What you can do with it
Swipe to see more columns →
| Task | Sources | Rough cost |
|---|---|---|
| See how a product or brand is discussed on Bilibili | Search by type (videos) | $0.003 per page of 20 |
| Find the most-played videos | Search | $0.003 per page of 20 |
| Get a video's plays, likes, coins and favourites | Video info | $0.003 per call |
| Read comments for questions and complaints | Video comments | $0.003 per page of 20 |
| See what viewers said at each second of a video | Video bullet comments | $0.003 per call |
| Follow what's trending on the site | Hot searches, Popular videos | $0.003 per call |
| Find uploaders | Search by type (users) | $0.003 per call |
Worked example: searching Switch 2
We asked an AI tool to search Bilibili videos for "Switch 2", pick an unboxing video, get its full stats, then read its top comments and its danmaku (bullet comments). Four calls in total, cost $0.012.
Search results (the 5 most-played of the 20 videos on page 1)
Swipe to see more columns →
| Video title (translated, excerpt) | Plays | Danmaku | Length | Published |
|---|---|---|---|---|
| Everything you want to know about Switch 2 | 2,384,264 | 16,500 | 1:17:29 | 2025-07-26 |
| First unboxing and teardown online! Switch 2 is here! (4-minute early cut) | 902,424 | 1,532 | 3:48 | 2025-06-05 |
| Nintendo should ban these: how bad are the Chinese-made Switch controllers on Pinduoduo? | 538,552 | 510 | 5:36 | 2023-04-27 |
| Switch 2 graphics upgrade for Pokémon Scarlet/Violet and Legends Z-A... | 127,825 | 99 | 4:34 | 2025-04-07 |
| Nasty Switch 2 bug: careful with your Wi-Fi name!... | 115,090 | 150 | 4:57 | 2025-06-08 |
What the AI found
- The most-played result is a video of 1 hour 17 minutes: 2.38 million plays and 16,500 danmaku. That is 2.6 times the plays of the 4-minute unboxing and more than 10 times the danmaku. Bilibili viewers watch long videos and comment while they watch.
- Page 1 also includes a 2023 video about cheap Chinese-made Switch controllers on Pinduoduo, ranked third with 539,000 plays. Budget accessories and local alternatives keep drawing views.
- Full stats for the unboxing: 902,000 plays, 30,368 likes, 9,167 coins, 6,440 favourites and 2,633 comments. Of the top 20 comments, 4 pick at hardware and design (plain colours; thick bezels and no OLED screen; how long the magnets last; a chip from 2021) and 3 are about price and where to buy (bought for ¥2,900; HK$3,750 is about ¥3,432; heading to the Manchester midnight launch). The comment with the most replies (396) has nothing to do with the product, so filter before you analyse.
- Danmaku are timed to the second. This video returned 1,200 danmaku, and the busiest 20 seconds were 1:40–2:00 (197). 34 danmaku complain about the thick black bezels, 27 of them between 1:30 and 2:10.
Real response
One record each from Video info, Video comments and Video bullet comments, collected on 6 November 2026 (excerpt; uploader, commenter and sender details removed):
Video info:
{
"bvid": "BV1THTjzZE2a",
"aid": 114624959616198,
"title": "全网首发开箱+拆机!Switch 2 来了!【4分钟抢鲜版】",
"pubdate": 1749052800,
"duration": 228,
"stat": {
"view": 902424,
"danmaku": 1532,
"reply": 2633,
"favorite": 6440,
"coin": 9167,
"share": 6677,
"like": 30368
}
}
Video comments:
{
"rpid": 263657460497,
"oid": 114624959616198,
"ctime": 1749056656,
"like": 41,
"rcount": 24,
"content": { "message": "虽然但是,我感觉框还是有点大,为啥不能直接来oled屏?" }
}
Video bullet comments (one entry of Bilibili's raw XML):
<d p="101.26500,5,25,16776960,1749121642,0,……,1862526346686330368,10">这。。大黑边框太魔幻了吧。。。</d>
coin is the number of coins and favorite the number of favourites; rcount is the number of replies to a comment. In a danmaku's p, the first value is the second of the video it appears at and the fifth is when it was sent (Unix seconds).
Prompts to copy
Search Bilibili for "coffee machine review" (咖啡机 测评). List the top 20 videos by plays and tell me which brands and price ranges people compare most.
Read the top 200 comments on this video. Group them into questions, complaints and praise, with one original quote for each translated into English.
Pull the danmaku for this video, count them by second, and tell me which parts viewers talk about most and what they say.
Every Monday at 9:00 Beijing time, search Bilibili for new videos about our brand and two competitors and save them. Tell me the price before each run.
Limits
- Public content only. Private messages and anything behind a login are not collected.
- Plays, likes, coins, favourites and comments are the numbers at the moment of the request.
- The sort option of Search by type has no effect for now: results come in relevance order, and page 1 can include old videos (this run had one from 2023). To sort by plays, use Search with order set to click. Sorted that way, videos that match the keyword only in their tags also show up, so filter by title afterwards.
- Comments are top-level only, 20 per page; use Comment replies for the replies under a comment. Comments in this run did not include IP locations.
- Danmaku come back as Bilibili's raw XML, and one call returns part of them (in this run: 1,532 shown on the video, 1,200 returned).
Bilibili sources and prices
Live prices as of 2026-11-30. "~100 results" is the estimated cost of fetching 100 results.
| Source | Price | ~100 results |
|---|---|---|
| Search | ||
| Search all Mixed search results for a keyword, from the app. procli_bilibili_q | $0.003/call | — |
| Search Search results for a keyword across videos, users and more. procli_bilibili_i | $0.003/call | $0.015 |
| Search by type Search results limited to one type, such as videos, users or anime. procli_bilibili_r | $0.003/call | $0.015 |
| Posts, videos and details | ||
| Anime tab Content shown on the anime (bangumi) tab of the app. procli_bilibili_b | $0.003/call | — |
| Film and TV tab Content shown on the film and TV tab of the app. procli_bilibili_d | $0.003/call | — |
| Home feed Videos recommended on the app's home page. procli_bilibili_j | $0.003/call | — |
| Video info Basic info and stats for one video. procli_bilibili_ab | $0.003/call | — |
| Video parts The list of parts in a multi-part video; used before other video calls. procli_bilibili_af | $0.003/call | — |
| Video playback info Playback info for one video, such as quality options and stream links. procli_bilibili_ag | $0.003/call | — |
| Video subtitles Subtitles of one video, useful for reading what is said. procli_bilibili_ai | $0.003/call | — |
| Video details Full details of one video: title, uploader, tags and stats. procli_bilibili_ae | $0.003/call | $0.009 |
| Comments and replies | ||
| Comment replies Replies under one comment, to read a full discussion thread. procli_bilibili_g | $0.003/call | — |
| Comment reply details Replies under one comment, from the app. procli_bilibili_p | $0.003/call | — |
| Video comments Comments on one video, for reading viewer feedback. procli_bilibili_ac | $0.003/call | $0.015 |
| Users and accounts | ||
| Post details Full content and stats of one user post (dynamic). procli_bilibili_h | $0.003/call | — |
| Videos in a user's collection Videos inside one of a user's collections or series. procli_bilibili_s | $0.003/call | — |
| Look up user ID Finds a user's numeric ID; used before other user lookups. procli_bilibili_u | $0.003/call | — |
| Trending and rankings | ||
| Popular videos Videos currently on the site's overall popular list. procli_bilibili_f | $0.003/call | — |
| Hot searches Current trending search terms on the site. procli_bilibili_k | $0.003/call | — |
| Popular feed Videos on the app's popular feed right now. procli_bilibili_o | $0.003/call | — |
| Live streams | ||
| Streamers in a live category Streamers currently live in a given live category. procli_bilibili_m | $0.003/call | — |
| Helper tools | ||
| Live categories Full list of live-stream categories; used to pick a category for other calls. procli_bilibili_a | $0.003/call | — |
| Convert BV ID to AV ID Converts a video's BV ID to its AV ID; used before other calls. procli_bilibili_c | $0.003/call | — |
19 more sources require an ID first or serve as backups; your AI uses them as needed. All are listed in the Dashboard.
How to use it
- Create an account at prolevelmax.com. New users get $2: $1 for verifying your email and $1 for your first data (once per person). No card required.
- Connect your AI. Generate your setup message in Get started in the console and send it to your AI. You can also add the MCP server
https://prolevelmax.com/mcpor call the REST API. - Request data. Your AI selects a source, quotes the price and runs it only after you confirm. Results are returned as structured JSON that the AI can format as a table or report.
Call it
Claude Code:
claude mcp add --scope user --transport http prolevelmax https://prolevelmax.com/mcp
Cursor and VS Code: use the one-click install link, sign in and approve. No API key needed.
MCP with an API key (any tool that supports MCP):
{ "mcpServers": { "prolevelmax": {
"url": "https://prolevelmax.com/mcp",
"headers": { "Authorization": "Bearer sk_procli_..." } } } }
REST API:
curl https://prolevelmax.com/v1/run \
-H "Authorization: Bearer sk_procli_..." \
-H "Content-Type: application/json" \
-d '{"scraper":"procli_bilibili_r","input":{"keyword":"Switch 2","search_type":"video"}}'
It returns one page of results, the charge and your balance. For the next page, send back page.next from the previous result as cursor. To sort by plays, call procli_bilibili_i with keyword, order (click), page and page_size. For one video's stats, call procli_bilibili_ab with the video link. For comments, call procli_bilibili_ac with bv_id or av_id; for the next page, send back next as next_offset. For danmaku, call procli_bilibili_ad with the video's cid, which Video info returns.
FAQ
Is the Bilibili data real-time?
Yes. Every call fetches public data from Bilibili in real time, not from a stored dataset.
Do I need a Bilibili account or an official Bilibili API key?
No. You only need a ProLevelMax account. One balance and one connection cover all 157 platforms.
How much does Bilibili data cost?
You pay per use with no monthly fee: from $0.003 per request. Your AI quotes the price before it runs anything, and you are never charged more than the quote.
Which AI tools are supported?
Any AI tool that supports MCP or Skills, including Claude, ChatGPT, Cursor, Codex and Claude Code. Developers can also call the REST API.
Can I get the data without an AI?
Yes. Click Collect on a source under Data sources in the Dashboard and enter the parameters. Results download as CSV, Excel or JSON.
What Bilibili data is available?
Public videos, comments and dynamics. Only publicly visible content is collected; private messages and data behind a login are not.
Can I use Bilibili data in ChatGPT?
Yes. Connect ProLevelMax to ChatGPT, Claude, Cursor or another tool that supports MCP, then ask in English or Chinese. The AI picks the source, quotes the price and runs it after you agree.
Do I need a Bilibili account or a Chinese phone number?
No. You only need a ProLevelMax account. Ask in English and the AI can translate and summarise the results for you.
Can I get danmaku (bullet comments)?
Yes. Use Video bullet comments with the video's cid (Video info returns it), $0.003 per call. It returns Bilibili's raw XML, and each danmaku carries the second it appears at and when it was sent.
What are BV and AV IDs?
The BV ID is the code in a video link, such as BV1THTjzZE2a; the AV ID (aid) is the numeric ID. Video comments accepts either; Video info takes the video link.
What do coins and favourites mean?
Bilibili viewers show support with likes, coins and favourites, and giving coins costs the viewer their own coins. They come back as like, coin and favorite.
Am I charged if a run fails?
Failed runs are not charged. If a charge looks wrong, report it from the run in your history.