Bilibili Scraper: Videos, Comments, Danmaku & Creators avatar

Bilibili Scraper: Videos, Comments, Danmaku & Creators

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Bilibili Scraper: Videos, Comments, Danmaku & Creators

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

MrDoe

Maintained by Community

Actor stats

1

Bookmarked

1

Total users

0

Monthly active users

12 days ago

Last modified

Categories

Share

Bilibili Scraper: Videos, Comments, Danmaku & Creators - scrape data with Apify

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)

  1. Open the Actor on Apify and click Try for free.
  2. Choose what you want in the input form. The default searches a sample keyword and returns 20 videos. Press Start.
  3. 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 caseWho it is forHow to do it
Chinese brand and product monitoringBrands and agenciesSearch a brand name (Chinese and English) on a schedule with "new videos only" turned on.
Influencer (KOL) discovery and vettingMarketing teamsSearch a niche, then run creator profiles to compare followers and total likes.
Consumer sentiment researchAnalysts and investorsCollect comments on videos about a product, game or brand.
Reaction analysis with danmakuResearchers and creatorsTurn on danmaku profiles to see when the audience reacts, second by second.
Trend trackingContent teamsSchedule the popular board to see what is trending each day.
Language and AI datasetsNLP and AI teamsCollect 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?

Bilibili Scraper: Videos, Comments, Danmaku & Creators data fields

Bilibili Scraper: Videos, Comments, Danmaku & Creators output data

FieldMeaning
typevideo, comment, user or danmaku
bvid, aid, title, description, url, thumbnailUrlVideo identity and text
viewCount, likeCount, coinCount, favoriteCount, shareCount, danmakuCount, replyCountEngagement (coins and shares come from video details and the popular board)
authorName, authorMid, publishDate, category, tagsCreator and publishing info
text, likeCount, replyCount, authorName, createdAtComment rows
mid, name, fans, following, videoCount, totalLikes, level, isOfficialCreator profile rows
danmakuFetched, danmakuTotal, danmakuUniqueSenders, danmakuPerMinute, danmakuPeakMinute, danmakuSampleDanmaku 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

Bilibili Scraper: Videos, Comments, Danmaku & Creators input options

ParameterTypeDefaultWhat it does
modestringsearchsearch, video_detail, video_comments, user_videos, user_profile or popular
searchQuerystring-Keyword in Chinese or English
searchAliasesarray[]Extra keywords to merge (for example a brand's Chinese name)
autoLocalizebooleantrueAlso searches the Chinese name of a common brand or game (Nike also searches 耐克)
sentimentAnalysisbooleanfalseAdds a sentiment field (positive / neutral / negative and a -1 to 1 score) to videos and comments
includeRepliesbooleanfalseReturns replies under each comment as their own rows (rootRpid, isThreadReply)
videoUrlsarray[]Video links or BV ids
userIdsarray[]Creator ids (mid) or space.bilibili.com links
maxResultsinteger20Videos or creators to return (up to 5000)
sortOrderstringtotalranktotalrank, click, pubdate, dm, stow or scores
durationFilterstringanyany, short, medium, long or verylong
pubtimeBegin / pubtimeEndstring-Publish date range (UTC)
includeCommentsbooleanfalseAlso return each video's comments
maxCommentsinteger20Comments per video
includeDanmakubooleanfalseAdd a danmaku reaction profile per video (up to 200 videos)
deltaModebooleanfalseReturn only videos not seen by earlier runs with the same key
deltaStateKeystringdefaultName 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 requests
r = 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 APINormal run
Best forApps, bots, chat assistants, quick lookupsScheduled jobs, bigger exports, datasets
OutputJSON in the responseDataset (JSON, CSV, Excel, XML)
SchedulingCall it whenever you likeApify 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 pubtimeBegin and pubtimeEnd to go deeper by date range.
  • Comments and danmaku profiles multiply the rows returned, so keep maxComments low and turn them on only when needed.
  • Save a Task with deltaMode on and add a schedule to get only new videos each run.
  • Use user_profile on 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 includeReplies to get each reply as its own row, linked to its comment by rootRpid.

Known limitations

  • Bilibili returns about 1,000 results per search query.
  • user_videos finds 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

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?

How the Bilibili Scraper: Videos, Comments, Danmaku & Creators works 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.

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.