Bilibili API
Scrape Bilibili (哔哩哔哩, B站): search videos by keyword, get video details, public comments with commenter user ID, avatar and level, danmaku (弹幕), subtitles and UP主 creator stats with recent uploads. No login or cookies needed. Export to JSON, CSV or Excel.
Bilibili API in one table
| Official public API for people outside China | No. This tool collects the publicly visible data instead. |
|---|---|
| What you send | A keyword, a link or an ID, depending on the request type |
| What you get back | JSON rows with English field names; 16 request types |
| Login, cookies, Chinese phone number | None needed |
| Output formats | JSON, CSV, Excel, or the Apify API |
| Price | $0.00736 per result on the Bronze tier, no subscription |
| Last verified with a real run | 2026-11-09 |
16 kinds of Bilibili request
Bilibili (bilibili.com, 哔哩哔哩, often called B站) is a Chinese video-sharing platform with user-uploaded videos on topics such as gaming, anime, technology, education and lifestyle. Its best-known feature is danmaku (弹幕): viewer comments that scroll across the video at the moment they refer to. Video creators on Bilibili are called UP主.
- Search videos by keyword
- Video details
- Video comments
- Video danmaku (on-screen comments)
- Video subtitles (transcript, timed sentences)
- Creator profile + recent videos
- Creator dynamics (posts, newest first)
- Replies under a comment (full thread)
- Popular videos feed (no input needed)
- Trending search words (no input needed)
- Creator's public favourite folders (videos)
- Live room status (title, viewers, live or not)
- Home recommended videos (no input needed)
- Cinema tab: films, documentaries, TV (no input needed)
- Bangumi tab: anime recommendations (no input needed)
- Single dynamic (post) by ID or link
A real run, 22 fields per record
Run on 2026-10-26 with input {"mode": "search", "maxResults": 10, "keyword": "原神"}. Personal fields of ordinary users are masked here.
| title | authorName | description | likes | comments | views |
|---|---|---|---|---|---|
| 当我和好姐妹一人只能控制半边身体?! | 大橙橙橙子 | 不要小瞧我和歌歌的羁绊啊! | 18567 | 425 | 261177 |
| 在滑冰开始前先来摇摆吧 | Nagomi_ANI | Credits: Models: miHoYo/Stormz67 Scene: miHoYo/Tawan/Fest... | 5920 | 99 | 25165 |
All 22 fields in one record
typevideobvidBV1BZn86qEA5aid117490172561259urlhttps://www.bilibili.com/video/BV1BZn86qEA5title当我和好姐妹一人只能控制半边身体?!description不要小瞧我和歌歌的羁绊啊!authorName大橙橙橙子authorId1691347authorUrlhttps://space.bilibili.com/1691347authorAvatarhttps://i1.hdslb.com/bfs/face/edaf4abc2c6f93f3eb758a07d87...coverUrlhttps://i0.hdslb.com/bfs/archive/4dfcbb7883228f5c2905baae...durationSeconds977publishedAt2026-10-24T00:00:00Zviews261177likes18567coinsfavorites3298sharescomments425danmaku639category单机游戏tags
Call the Bilibili API
Every run is one HTTP call: send the input as JSON, get the rows back. The same works from Make, Zapier or n8n.
Pay per result
Bronze tier prices from the tool's listing; higher Apify tiers pay less. Free Apify users get two trial runs with their own input.
Full price table and worked examples
The Actor uses pay-per-event pricing: a small start fee per run plus a fee per item returned. Subtitles have their own, higher fee per video. Prices are in USD and depend on your Apify plan tier.
| Event | What it covers | Bronze | Silver | Gold, Platinum, Diamond |
|---|---|---|---|---|
| Run start | charged once per run, when the first request succeeds | $0.00005 | $0.00005 | $0.00005 |
| Result | one video, comment, reply, danmaku, creator video, dynamic, trending word, live room, show (season) | $0.00736 | $0.00664 | $0.006 |
| Profile | one creator profile | $0.0092 | $0.0083 | $0.0075 |
| Subtitle | one video's subtitles (full transcript and timed sentences) | $0.01 | $0.009022 | $0.008152 |
Worked examples:
- 100 search results on Bronze cost about $0.74 ($0.00005 start + 100 × $0.00736). On Gold and higher they cost about $0.61 ($0.00005 + 100 × $0.006).
- A full reply thread of 200 replies on Gold and higher costs about $1.20 ($0.00005 start + 200 × $0.006); one creator's last 24 dynamics about $0.14; the 50-word trending board about $0.30.
- Subtitles for 10 videos that have them cost about $0.10 on Bronze ($0.00005 start + 10 × $0.01).
On the free Apify plan you get 2 free trial runs of this Actor with your own input, up to 10 results each, and nothing is charged; after that, runs return a stored sample dataset (a real result of the prefilled input). Use any paid Apify plan for full runs.
The run-start fee is charged once, when the first request succeeds, even if that request returns nothing. It is not charged when the run fails from the start or rejects the IDs (for example, when every ID is invalid or not found, or the input is wrong), or when the spending limit cannot cover it. Items are charged only when they are actually returned. Replies (with includeReplies, or in mode replies) are billed like comments. Set a maximum cost per run in the run options and the Actor stops when it is reached.
Bilibili API questions
Do I need a Bilibili account or cookies?
No. No login, cookies or proxies are needed.
Is it legal to scrape Bilibili?
The Actor only returns publicly visible information, including the public profile of users who appear in the results (user ID, avatar, gender, level, verification and bio, as published on the platform). Private messages, logins and anything not publicly visible are never collected. Bios are returned as published, including any business contact info the creator put there. You are responsible for using the data in line with applicable laws and Bilibili's terms.
How fresh is the data?
You get what the source returns at the time of your run. To track changes over time, schedule regular runs.
Why are some fields empty?
Some data is not available in every mode, or the platform does not provide it for every account or comment. See "Fields that are often empty" above.
How many results can I get?
Up to 5,000 items per run with `maxResults` on a paid plan. Danmaku are limited to 1,200 per video.
Can I schedule runs or use the API?
Yes. Like any Apify Actor it can be started via API, scheduled, and connected to webhooks and integrations.