Bilibili Scraper: Videos, Comments, Search & Popular
Pricing
from $2.00 / 1,000 videos
Bilibili Scraper: Videos, Comments, Search & Popular
Bilibili Scraper for videos by keyword, the videos of any user, single videos by link, comments and the popular list. Views, likes, coins, favorites, danmaku and dates. No login, date and views filters, pay only for real rows.
Pricing
from $2.00 / 1,000 videos
Rating
0.0
(0)
Developer
API Samurai
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
19 hours ago
Last modified
Categories
Features
Share
This Bilibili Scraper gets Bilibili videos by keyword, the latest videos of any user, single videos by link, the comments under a video, and the live popular list. Every row comes with a clean title (no HTML), author, date, duration, cover and link, plus views, likes, coins, favorites, shares, comments and danmaku where Bilibili shows them. You pay only for real, unique rows, and IDs are always text.
What you can use it for
- Track a game, brand or topic on Bilibili with keyword search, sorted by relevance, newest, views, favorites or danmaku.
- Follow creators and archive their videos with dates and view counts.
- Check single videos by link for full counts: views, likes, coins, favorites, shares, comments and danmaku.
- Read the comments under videos for sentiment analysis, fan feedback or research.
- Watch what is popular right now with the popular list.
- Build Chinese-language datasets of video titles, descriptions and comments for AI and NLP work.
- Monitor on a schedule with a date filter, and send new rows to Sheets, Slack or a database.
Fair billing
- Only real rows are charged: videos and comments. No demo, mock or placeholder rows, ever. If the data source sends one, it is dropped and counted in the run summary.
- Same price on every Apify plan, free plan included.
- Free Apify plan: 3 live runs a day, each with one data request, so you can try it. Paid plans have no limit.
- Limits, dates and views filters are enforced by the Actor itself. Videos outside your dates or filters are skipped and not charged.
- Duplicates are never charged. A video found by two keywords, or by a keyword and a link, is saved once.
- Empty results, missing users or videos, videos with no comments and failed requests cost nothing.
- When you hit your spending limit, the run stops cleanly.
How to use
- Open the Bilibili Scraper page and click Try for free (you sign in to your Apify account).
- Add Search keywords, Users (numeric IDs or profile links), Video links, or turn on Add the popular videos list.
- Set Max videos per keyword or user, and optionally dates and min views. Turn on Also get comments of the videos found to add comments.
- Click Start. Rows appear in the Output tab while the run works.
- Export the dataset as JSON, CSV or Excel, or check the
SUMMARYrecord in the key-value store.
Input
| Field | What it does |
|---|---|
| Search keywords | Videos matching each keyword, one per line. Chinese keywords work best. |
| Sort search by | Relevance (default), newest, most views, most favorites or most danmaku. |
| Users | Numeric user IDs or profile links: 546195, https://space.bilibili.com/546195. Latest videos first. |
| Video links | https://www.bilibili.com/video/BV1HvkqzAEav or the bare BV... ID. Short b23.tv links are rejected with a log line and no charge. |
| Also get comments of the videos found | Off by default. Adds the comments of videos from keywords, users and video links. |
| Add the popular videos list | Off by default. Adds the current popular list. |
| Max videos per keyword or user | Default 20, exact. |
| Max comments per video | Default 20, exact. |
| Max rows for the whole run | Optional hard cap on all rows. Videos are saved before comments. |
| Posted on or after / on or before | Inclusive, UTC. Relative dates like 7 days work. Videos only. |
| Min views | Skip videos below this number. Videos only. |
{"searchKeywords": ["原神"],"searchSort": "newest","users": ["546195"],"includeComments": true,"maxVideosPerSource": 20,"maxCommentsPerVideo": 20,"postedAfter": "7 days"}
Output
One row per video or comment; type tells them apart. Field names never change between runs. Real output (2 December 2026, shortened):
{"type": "video","id": "BV1HvkqzAEav","aid": "117717554240943","url": "https://www.bilibili.com/video/BV1HvkqzAEav","title": "【原神萌新开荒49】须弥主线第四幕|听我号令,随时准备向教令院开炮!!","description": "直播回放|20年游戏女玩家原神开荒DAY49(2026.12.02)...","createdAt": "2026-12-02T16:38:11.000Z","durationSeconds": 15946,"category": "手机游戏","tags": ["电子榨菜", "原神UP主激励计划", "直播回放", "..."],"cover": "https://i2.hdslb.com/bfs/archive/873a5416277f9d5c9148967c53f2ec81511fb094.jpg","author": { "id": "202798450", "name": "花花梨i" },"views": 149,"likes": 22,"coins": null,"favorites": 4,"shares": null,"comments": 4,"danmaku": 2,"sourceType": "search","sourceInput": "原神","scrapedAt": "2026-12-02T17:00:00.000Z"}
A comment row: { "type": "comment", "id": "325766602816", "videoId": "BV1HvkqzAEav", "url": "https://www.bilibili.com/video/BV1HvkqzAEav", "text": "请选择正确的干员代号: ...", "createdAt": "2026-12-02T03:00:41.000Z", "likes": 4951, "replyCount": 370, "author": { "id": "177117312", "name": "ChrT-NULL-", "level": 6 }, "sourceInput": "BV1HvkqzAEav", "scrapedAt": "..." }.
Times are ISO 8601 UTC. sourceType is search, user, popular or link. Missing values are null, never a fake 0. Where each route has data:
- Video links and the popular list return every count (views, likes, coins, favorites, shares, comments, danmaku). A video by link also has the full description.
- Keyword search has views, likes, favorites, comments and danmaku, and a category and tags, but no coins or shares (
null). - A user's videos have author ID and name, title, link, cover, date, duration, category, views and danmaku. Likes, coins, favorites, shares and comments are
null, and so are the description and tags. Use a video link for full counts.
Each run also writes a SUMMARY record to the key-value store. For every input it lists rows delivered, rows skipped by dates or filters, duplicates, and why it stopped (limit reached, no more results, not found or deleted, temporary error, spending limit, free plan limit or data source unavailable).
Pricing
$2 per 1,000 videos; $5 per 1,000 videos by link; $2 per 1,000 comments; $0.005 per run start
A video fetched by its link costs more because each link needs a data request of its own.
Integrations
- Apify API: start a run and get the rows in one call with
POST https://api.apify.com/v2/acts/apisamurai~bilibili-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>and the input as JSON in the body. - Python and JavaScript clients (
apify-client):client.actor("apisamurai/bilibili-scraper").call(run_input={...}). - Zapier, Make and n8n to send new rows to Google Sheets, Slack, a CRM or a database.
- MCP for AI agents: connect the Apify MCP server to Claude, ChatGPT or another MCP client and the agent can run this Actor as a tool.
- Schedules and webhooks in Apify Console for daily or hourly runs.
More China platform scrapers
- Douyin Scraper: Douyin videos by keyword (up to 1,000 per search), user videos, comments and the hot list.
- Weibo Scraper: Weibo posts by keyword or user, comments and the live hot search list.
- Zhihu Scraper: Zhihu answers and articles by keyword, question or user, comments and the hot list.
FAQ
Do I need a Bilibili account? No. You only need an Apify account. You never enter credentials, cookies or a session.
Which keywords work best? Chinese keywords. English words work but find fewer videos. Pick the sort order that fits: relevance, newest, most views, most favorites or most danmaku.
Which videos and users work?
Public videos and users. Use bilibili.com/video/<BV id> or the bare BV ID, and the numeric user ID from space.bilibili.com/<number>. Old av links and short b23.tv links cannot be read: open them in a browser and copy the full BV address.
What time zone are dates in?
createdAt is UTC. "Posted on or after / before" count whole days in UTC. With dates set, keyword search asks Bilibili for exactly that window.
How far back can I go? A user's videos are read newest first, 20 a page, and stop once they are older than your start date. Keyword search can go back as far as Bilibili returns results, which is limited to about 50 pages of 20.
Do filters work on comments? No. Dates and min views apply to videos. Comments are limited by Max comments per video and Max rows for the whole run.
Why did I get fewer results than I asked for?
Open the SUMMARY record. It says for each input why it stopped: no more results, rows skipped by dates or filters, duplicates, the spending limit or the free plan limit.
What is not charged? Duplicates, rows outside your dates or filters, placeholder rows, empty results, missing users or videos, videos with no comments, rejected links and failed requests.
Is it legal to scrape Bilibili? The Actor collects only public data. You are responsible for how you use it: follow the Bilibili terms and the laws where you live, and take care with personal data (for example under GDPR or China's PIPL). This is not legal advice.