Bilibili Scraper: Videos, Comments, Danmaku & Creators
Pricing
from $1.00 / 1,000 results
Bilibili Scraper: Videos, Comments, Danmaku & Creators
Scrape Bilibili (哔哩哔哩): video search, video stats, comment threads, danmaku reaction profiles, creator profiles and the popular board. No login, no cookie.
Pricing
from $1.00 / 1,000 results
Rating
0.0
(0)
Developer
MrDoe
Maintained by CommunityActor stats
1
Bookmarked
1
Total users
0
Monthly active users
12 days ago
Last modified
Categories
Share

What does Bilibili Scraper: Videos, Comments, Danmaku & Creators do?
Bilibili Scraper collects data from Bilibili (哔哩哔哩), China's biggest video community, without a login or cookie: video search (with sort, duration and date filters), video details (views, likes, coins, favorites, shares, danmaku and tags), comment threads, danmaku reaction profiles (the scrolling on-video comments Bilibili is known for), creator profiles (followers, likes, verification) and the popular board. Use it for Chinese consumer research, brand monitoring, influencer discovery and language datasets.
Quick start (3 steps)
- Open the Actor on Apify and click Try for free.
- Choose what you want in the input form. The default searches a sample keyword and returns 20 videos. Press Start.
- Download the results as JSON, CSV or Excel, connect them to Google Sheets, or call the Actor as a live API (see below).
Where and how can you use it?
| Use case | Who it is for | How to do it |
|---|---|---|
| Chinese brand and product monitoring | Brands and agencies | Search a brand name (Chinese and English) on a schedule with "new videos only" turned on. |
| Influencer (KOL) discovery and vetting | Marketing teams | Search a niche, then run creator profiles to compare followers and total likes. |
| Consumer sentiment research | Analysts and investors | Collect comments on videos about a product, game or brand. |
| Reaction analysis with danmaku | Researchers and creators | Turn on danmaku profiles to see when the audience reacts, second by second. |
| Trend tracking | Content teams | Schedule the popular board to see what is trending each day. |
| Language and AI datasets | NLP and AI teams | Collect Chinese titles, descriptions and comments in bulk. |
Works with: Google Sheets, Excel, Make, Zapier, n8n, Airtable, Slack, Discord, Telegram, webhooks, Python, JavaScript, cURL and any AI agent that can call an HTTP API.
What data do you get?


| Field | Meaning |
|---|---|
type | video, comment, user or danmaku |
bvid, aid, title, description, url, thumbnailUrl | Video identity and text |
viewCount, likeCount, coinCount, favoriteCount, shareCount, danmakuCount, replyCount | Engagement (coins and shares come from video details and the popular board) |
authorName, authorMid, publishDate, category, tags | Creator and publishing info |
text, likeCount, replyCount, authorName, createdAt | Comment rows |
mid, name, fans, following, videoCount, totalLikes, level, isOfficial | Creator profile rows |
danmakuFetched, danmakuTotal, danmakuUniqueSenders, danmakuPerMinute, danmakuPeakMinute, danmakuSample | Danmaku reaction profile per video |
Example result
{"type": "video","bvid": "BV1xx411c7mD","title": "字幕君交流场所","url": "https://www.bilibili.com/video/BV1xx411c7mD","duration": 2055,"viewCount": 5519937,"likeCount": 276629,"coinCount": 40706,"favoriteCount": 127179,"danmakuCount": 128551,"replyCount": 89295,"authorMid": 2,"publishDate": "2009-06-26T00:00:00+00:00"}
Input parameters

| Parameter | Type | Default | What it does |
|---|---|---|---|
mode | string | search | search, video_detail, video_comments, user_videos, user_profile or popular |
searchQuery | string | - | Keyword in Chinese or English |
searchAliases | array | [] | Extra keywords to merge (for example a brand's Chinese name) |
autoLocalize | boolean | true | Also searches the Chinese name of a common brand or game (Nike also searches 耐克) |
sentimentAnalysis | boolean | false | Adds a sentiment field (positive / neutral / negative and a -1 to 1 score) to videos and comments |
includeReplies | boolean | false | Returns replies under each comment as their own rows (rootRpid, isThreadReply) |
videoUrls | array | [] | Video links or BV ids |
userIds | array | [] | Creator ids (mid) or space.bilibili.com links |
maxResults | integer | 20 | Videos or creators to return (up to 5000) |
sortOrder | string | totalrank | totalrank, click, pubdate, dm, stow or scores |
durationFilter | string | any | any, short, medium, long or verylong |
pubtimeBegin / pubtimeEnd | string | - | Publish date range (UTC) |
includeComments | boolean | false | Also return each video's comments |
maxComments | integer | 20 | Comments per video |
includeDanmaku | boolean | false | Add a danmaku reaction profile per video (up to 200 videos) |
deltaMode | boolean | false | Return only videos not seen by earlier runs with the same key |
deltaStateKey | string | default | Name of the saved state for delta mode |
Input examples
Search videos
{"mode": "search","searchQuery": "人工智能教程","maxResults": 50}
Newest videos about a brand
{"mode": "search","searchQuery": "耐克","sortOrder": "pubdate","maxResults": 30}
Video details
{"mode": "video_detail","videoUrls": ["https://www.bilibili.com/video/BV1xx411c7mD"]}
Comments on a video
{"mode": "video_comments","videoUrls": ["BV1xx411c7mD"],"maxComments": 50}
Creator profiles
{"mode": "user_profile","userIds": ["546195","https://space.bilibili.com/456664753"]}
Trending videos
{"mode": "popular","maxResults": 20}
Use it as a live API (Actor Standby)
Need an answer right now instead of starting a run? This Actor also works as an always-on HTTP endpoint (Apify Actor Standby). Send a request, get JSON back in seconds.
curl -H "Authorization: Bearer $APIFY_TOKEN" \"https://mrdoe--bilibili-scraper-videos-comments-danmaku.apify.actor/?mode=search&searchQuery=人工智能教程&maxResults=10"
import requestsr = requests.get("https://mrdoe--bilibili-scraper-videos-comments-danmaku.apify.actor/",params={"mode": "search", "searchQuery": "人工智能教程", "maxResults": "10"},headers={"Authorization": "Bearer YOUR_APIFY_TOKEN"},timeout=90,)print(r.json()["items"])
const res = await fetch("https://mrdoe--bilibili-scraper-videos-comments-danmaku.apify.actor/?mode=search&searchQuery=人工智能教程&maxResults=10", {headers: { Authorization: `Bearer ${process.env.APIFY_TOKEN}` },});const { count, items } = await res.json();
You can also POST a JSON body with the same fields as the Actor input. The response is { "count": 1, "items": [ ... ] }; if something is wrong with your request you get a clear error message.
| Standby API | Normal run | |
|---|---|---|
| Best for | Apps, bots, chat assistants, quick lookups | Scheduled jobs, bigger exports, datasets |
| Output | JSON in the response | Dataset (JSON, CSV, Excel, XML) |
| Scheduling | Call it whenever you like | Apify Schedules and Tasks |
Ready-made Tasks
Open the Tasks tab, pick a ready-made Task and press Start. Clone any Task to change the input and add a schedule.
Tips for best results
- Chinese keywords return far more videos than English ones - add the Chinese name in
searchAliases. - A single search reaches about 1,000 videos; use
pubtimeBeginandpubtimeEndto go deeper by date range. - Comments and danmaku profiles multiply the rows returned, so keep
maxCommentslow and turn them on only when needed. - Save a Task with
deltaModeon and add a schedule to get only new videos each run. - Use
user_profileon a schedule to track a creator's follower growth.
More features
- Auto Chinese brand search: searching a common Latin brand or game name also searches its Chinese name and merges the results.
- Sentiment scoring: every video and comment can carry
sentiment(polarity,score,method). It uses a built-in word list, so treat it as a quick signal for ranking and trends. - Comment replies: turn on
includeRepliesto get each reply as its own row, linked to its comment byrootRpid.
Known limitations
- Bilibili returns about 1,000 results per search query.
user_videosfinds a creator's videos through search, so it is not a complete upload list.- Some videos have comments closed and return none.
- Danmaku profiles cover the danmaku Bilibili keeps for a video, which can be fewer than its total; the profile says when the pool is capped.
Frequently Asked Questions
Do I need a Bilibili account or cookie?
No. It works without any login or cookie.
What is danmaku (弹幕)?
The scrolling comments shown over Bilibili videos, tied to a specific second. The profile shows when and how strongly viewers reacted.
Can I search in English?
Yes, but Chinese keywords return more videos.
How do I find a creator id?
It is the number in the creator's space link, for example space.bilibili.com/546195.
Can I use this Actor as an API?
Yes. Call the endpoint shown in Use it as a live API with your Apify token and read the JSON in the response.
Can I connect it to Google Sheets, Make, Zapier or n8n?
Yes. Use the Apify integrations for each tool, or call the endpoint from any HTTP module. Scheduled Tasks can push fresh data to your sheet or workflow.
Can I run it on a schedule?
Yes. Create a Task with your input and add a schedule in Apify Console.
Am I charged for failed runs or empty results?
You are charged only for records actually returned.
Support
Questions or a missing field? Open an issue from the Issues tab on this Actor's page.
Legal / Responsible Use
Data is collected from publicly available Bilibili pages for research and analytics. You are responsible for using it in line with applicable law, the platform's terms and data-protection rules, including for personal data in comments and profiles.