Bilibili Scraper: videos, comments, creators (no login) avatar

Bilibili Scraper: videos, comments, creators (no login)

Pricing

Pay per event

Go to Apify Store
Bilibili Scraper: videos, comments, creators (no login)

Bilibili Scraper: videos, comments, creators (no login)

Bilibili videos by keyword or link: plays, likes, comments, favourites, tags, creator. Optional top comments per video and creator profiles with followers and verified title. Plain HTTP, no login, no cookie. Counts as Bilibili reports them. Not affiliated with Bilibili.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Mohammed Samaan

Mohammed Samaan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Give this Actor Bilibili search words, video links, BV ids or creator ids. You get one flat row per video, per creator and, if you ask for them, per top comment, with the numbers Bilibili shows to a logged-out visitor: plays, likes, comment count, bullet-comment count (danmaku), favourites, tags, creator, followers and verified title.

It reads Bilibili's public pages and routes with plain HTTP. No login, no cookie, no proxy, no browser. Not affiliated with Bilibili.

Sample output: Bilibili videos from one real search run

What you get

  • Videos by keyword. searchQueries returns videos in Bilibili's own order (relevance by default; most played, newest, most bullet comments or most favourited on request). Each row has rank and searchQuery.
  • Single videos by link or BV id. videoUrls returns the same row. Link rows also have coins and shares, which search rows do not (they are null there).
  • Creator profiles. creatorIds (a number or a space.bilibili.com link) returns name, bio, followers, following, level, verified title and video count. creatorSearchQueries finds creators by keyword (these rows have no following).
  • Top comments. Set maxCommentsPerVideo above 0 and every delivered video also gets that many top-level comments as separate rows with type: "comment": text, likes, reply count, time, author.
  • Every row says what it is. type is video, comment, creator or error. Missing videos and creators, blocked requests and invalid entries come back as free error rows with a plain message.
  • Text as the creator wrote it. Titles, descriptions and tags are returned in their original language (mostly Chinese). The Actor does not translate anything.

What you get and what you do not

What you get and the limits of the Bilibili scraper

You getYou do not get
Videos by search word (up to 1,000 results per word, 20 a page), by link or by BV idSubtitles, video files or audio
Plays, likes, comment count, bullet-comment count, favourites, tags, category, creator, publish timeA creator's full video list
Coins and shares on rows read from a video linkCoins and shares on search rows (they are null there)
Creator profiles: followers, following, level, verified title, video countAnything behind a login: private data, follower lists, replies under a comment, the pinned comment
Top-level comments, hot or newest, up to 1,000 per videoTranslation: text is returned as the creator wrote it
Error rows (free) that say why an entry could not be readCharges for errors, duplicates or repeated rows

Example

Input (one field is enough):

{
"searchQueries": ["咖啡", "iphone review"],
"maxVideosPerQuery": 20,
"videoUrls": ["https://www.bilibili.com/video/BV1Dbsn6gEPz"],
"creatorIds": ["546195"],
"maxCommentsPerVideo": 0
}

One video row, copied from a real search run (word 咖啡, most played first) on 22 November 2026. Counts change by the minute. Rows read from a video link also fill coins and shares.

{
"type": "video",
"bvid": "BV1HWzZB8E8U",
"aid": 115976918012022,
"url": "https://www.bilibili.com/video/BV1HWzZB8E8U",
"title": "盘点年度播放量突破千亿的神级转场,有你看过的吗?",
"description": "盘点年度播放量突破千亿的神级转场,有你看过的吗?",
"creatorName": "黑糖音乐秀",
"creatorId": 56547276,
"plays": 17570937,
"likes": 70904,
"comments": 97,
"danmaku": 264,
"favorites": 352282,
"coins": null,
"shares": null,
"durationSeconds": 355,
"publishedAt": "2026-01-29T06:37:59.000Z",
"tags": [
"华莱士WA咖啡",
"来华莱士打咖啡",
"神级转场",
"百万转场",
"氛围感",
"火爆全网",
"音乐盘点",
"转场",
"名场面",
"视觉盛宴"
],
"category": "乐评盘点",
"coverUrl": "https://i0.hdslb.com/bfs/archive/ccf15c358bb1b15b2c3c814ed7888bcdbe6682d5.jpg",
"searchQuery": "咖啡",
"rank": 1,
"scrapedAt": "2026-11-22T20:12:54.438Z"
}

One creator row, copied from a real run on 22 November 2026:

{
"type": "creator",
"creatorId": 546195,
"name": "老番茄",
"bio": "新浪微博:_老番茄_",
"followers": 20900446,
"following": 7,
"level": 6,
"verifiedTitle": "2025百大UP主、2025年度商业影响力奖UP主、2022年度联合创作奖UP主",
"videoCount": 686,
"url": "https://space.bilibili.com/546195",
"searchQuery": null,
"rank": null,
"scrapedAt": "2026-11-22T20:30:11.699Z"
}

One comment row, copied from a real run on 22 November 2026:

{
"type": "comment",
"commentId": "290456990672",
"bvid": "BV1HWzZB8E8U",
"aid": 115976918012022,
"text": "不刷抖音时一个都没见过···",
"likes": 54,
"replyCount": 2,
"createdAt": "2026-02-01T14:06:15.000Z",
"authorName": "Wei喂炜",
"authorId": 35844900,
"scrapedAt": "2026-11-22T20:21:18.739Z"
}

Input

FieldWhat it does
searchQueriesSearch words for videos, any language.
sortBytotalrank (default, relevance), click (most played), pubdate (newest), dm (most bullet comments), stow (most favourited).
maxVideosPerQuery1 to 1,000, default 20. Bilibili lists at most 1,000 results (50 pages of 20) for a keyword; repeated videos are delivered once, so a relevance search can give fewer rows (see Limits).
videoUrlsbilibili.com/video/BV... links or bare BV ids. BV ids are case-sensitive: copy them exactly. b23.tv short links and old av links get a free error row.
creatorIdsCreator numbers or space.bilibili.com/<number> links.
creatorSearchQueriesSearch words for creators.
maxCreatorsPerQuery1 to 1,000, default 20.
maxCommentsPerVideo0 (default, no comments) to 1,000 top-level comments per delivered video.
commentSorthot (default) or newest.

Give at least one of searchQueries, videoUrls, creatorIds, creatorSearchQueries. The same video or creator twice in one run is delivered once, however it was found. If a video link and a search both find it, the link row is the one you get (it has coins and shares).

Row types and fields

typeFields
videobvid, aid, url, title, description, creatorName, creatorId, plays, likes, comments, danmaku, favorites, coins, shares, durationSeconds, publishedAt, tags, category, coverUrl, searchQuery, rank, scrapedAt
commentcommentId, bvid, aid, text, likes, replyCount, createdAt, authorName, authorId, scrapedAt
creatorcreatorId, name, bio, followers, following, level, verifiedTitle, videoCount, url, searchQuery, rank, scrapedAt
errorinput, errorKind, message, scrapedAt, and bvid or creatorId when there is one

Every field is described in the dataset schema. A count Bilibili hides is null.

Error rows (always free)

errorKindMeaning
invalid_inputThe entry is not a Bilibili video link, BV id, creator id or creator link
not_foundBilibili does not show this video or creator to a logged-out reader (it does not exist, was removed, or is paid-only), or a video with no comment section
unavailableThe video page answered with an error code the Actor does not know (the message carries the code), or Bilibili answered with a different video or creator than asked for
no_resultsA search word found nothing
blockedBilibili answered with a rate limit or ban (HTTP 412, 429, 401, 403, a ban code, or its HTML error page) on all 3 tries
request_failedNetwork or server error (tried 3 times), or an unknown status, code or redirect from any route (not retried)
comments_closedThe comments of that video are closed

Pricing

Pay per event. Three events, charged for each row delivered:

Apify planvideo rowcreator rowcomment row
Free$0.0020$0.0020$0.0006
Starter (Bronze)$0.0015$0.0015$0.0005
Scale (Silver)$0.0013$0.0013$0.00045
Business (Gold) and higher$0.0011$0.0011$0.0004

That is $1.10 to $2.00 per 1,000 videos or creators, and $0.40 to $0.60 per 1,000 comments. There is no start fee. Error rows, duplicates and rows an earlier attempt of the same run already delivered cost nothing. The live price is always the one on the Pricing tab. Use the run option Max total charge to cap a run: while pay-per-event pricing is active the Actor charges before it writes each row, and stops when the cap is reached, so no uncharged row is delivered.

Use with AI agents and MCP

  • Apify MCP server: add leadharbor/bilibili-scraper as a tool, or let the agent find it with search-actors and run it with call-actor. Minimal input: {"searchQueries": ["iphone review"], "maxVideosPerQuery": 10}. One field is enough.
  • Small answers for a model: leave maxCommentsPerVideo at 0 and read only the fields you need (title, plays, likes, url) with the dataset fields parameter.
  • API: POST https://api.apify.com/v2/acts/leadharbor~bilibili-scraper/run-sync-get-dataset-items with the input as JSON body returns the rows in one call.
  • Stop reasons: if the run stops early (charge cap, run time, Bilibili refusing the address) the run status message and the SUMMARY record in the key-value store say why and how many entries were not read.

Run it from the API, n8n, Make or code

Every way of starting an Actor on Apify works with this one. In n8n and Make, use the Apify module, pick this Actor, paste the input JSON from the Example section, then read the dataset items it returns. From code, use the Apify client:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('leadharbor/bilibili-scraper').call({ searchQueries: ['咖啡'], sortBy: 'click', maxVideosPerQuery: 100 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("leadharbor/bilibili-scraper").call(run_input={"videoUrls": ["BV1Dbsn6gEPz"], "maxCommentsPerVideo": 50})
items = client.dataset(run["defaultDatasetId"]).list_items().items

How it works

  1. A search word: Bilibili's public search route, 20 results a page, up to the number you set (at most 50 pages). Each search request carries the public request signature that Bilibili's own website uses, made from two key names that Bilibili hands out to every visitor on a public page. The Actor reads them once, keeps them in memory for 10 minutes, and never stores them.
  2. A video link or BV id: one request for the public mobile video page and the data it carries (Bilibili first redirects that page to the same video with a language parameter; the Actor follows that redirect, to the same video only, and nothing else).
  3. A creator id: one request for the public creator card.
  4. Comments: one request per 20 top-level comments, from Bilibili's public comment route.
  5. Requests start at least 1.5 seconds apart. Three video links or creators are read at a time, and rows are delivered in input order. A request that is refused, slow or fails is tried up to 3 times with a pause. After 10 reads in a row end in a refusal or an unreadable answer, the run stops and says so.

Requests go from Apify's servers with no proxy. No cookie is stored or sent, there is no login, and only api.bilibili.com and m.bilibili.com are contacted.

Limits

  • No subtitles or transcripts. Bilibili gives none to a logged-out reader.
  • No list of a creator's videos. The route that lists them is refused for logged-out readers. You can find a creator's videos through a search word, or give video links.
  • Search lists at most 1,000 results (50 pages of 20) per keyword, and some repeat. We read all 50 pages for a word on 22 November 2026 and counted different videos: relevance order gave 737 and 726 different videos in 1,000 results for two words (about a quarter were repeats of videos on earlier pages), most-played order gave 1,000 of 1,000, and newest order gave 362 of 362 for a word with only 362 results. Repeats are delivered once and cost nothing, so a relevance search for 1,000 videos returns about 700 to 750 rows; use sortBy click or pubdate for the deepest list without repeats. The same video found in several searches in one run is also delivered once.
  • Search words: the characters ! ' ( ) * are dropped before the word is sent (Bilibili's signature rule), so a(b)c is searched as abc.
  • Comments: top-level comments only (replies under a comment are not returned; replyCount tells how many there are). A comment that the uploader pinned is listed by Bilibili apart from the others and is not returned. Depth: on one video with 244,189 comments, 167 pages in the hot order gave 3,326 different comments with no end reached before our test address was refused (22 November 2026), so the deepest we measured is 3,326; this Actor returns at most 1,000 per video. In the newest order, 80 pages gave 1,504 different comments on the same video with no end reached (we stopped there).
  • Counts are as Bilibili reports them. They change by the minute and Bilibili can hide or round some. Search rows and link rows can also differ in likes: on one video read the same evening a search row showed 70,904 likes and a link row 311,332, while plays, favourites, comments and bullet comments were equal. Use videoUrls when the like count matters.
  • Search rows are thinner than link rows. coins and shares are null on search rows. The search route can cut long descriptions (one in our test was cut at 255 characters), uses a different category label than the video page, and can show a much lower likes number (see above).
  • Old videos. A few search results (old videos) come without a BV id. The Actor computes it from the numeric id (the public conversion between the two).
  • Videos Bilibili does not show to a logged-out reader (removed, or paid-only) give a free not_found row.
  • Bilibili can refuse an address. In our own test from one home address, the comments route answered HTTP 412 after about 170 requests in about 3.5 minutes, and for more than 12 minutes afterwards. Apify's servers use other addresses: from them, 235 of 235 search requests (pages 1 to 50, five sort orders, creator search too) were answered on 22 November 2026, but this README has no long-run numbers. When Bilibili refuses a request you get a free blocked row, and after 10 reads in a row are refused (each read is tried 3 times) the run stops. Run again later.
  • Bilibili can change its pages without notice. Most changes show up as free error rows. If a field comes back empty that should not be, tell us in the Issues tab.
  • Region. Results can depend on the address a request comes from. Our own tests ran from one address in Oman, and we have not compared regions.

Support

Open an issue on the Issues tab and include the run ID. We read every issue and answer there. Bug fixes for the fields listed on this page are free. If Bilibili changes something and the Actor stops returning data, tell us there first.

Data handling and responsible use

The Actor reads only what Bilibili shows to any logged-out visitor. It never asks for, stores or uses a Bilibili login, cookie or session. Nothing is kept by us: results live in your own Apify dataset under your account's retention settings.

Creator names, comments and descriptions are personal data and creative work. You are responsible for how you use them: respect copyright, privacy law (for example GDPR) and Bilibili's terms where they apply to you. Do not use the output to harass anyone or to republish someone's content as your own.

Not affiliated

This Actor is an independent tool. It is not affiliated with, endorsed by or sponsored by Bilibili. "Bilibili" is a trademark of its owner.

FAQ

Do I need a Bilibili account? No. There is no login field, and the Actor never sends a cookie.

Can I get English titles? No. Rows carry the text as the creator wrote it. Translate the title field with your own tool if you need English.

Why is coins null? Bilibili's search route does not give it. Read the video by link (videoUrls) to get coins and shares.

How many videos can I get for one search word? Up to 1,000 results, which is all Bilibili lists for a word. In relevance order about a quarter repeat, so expect about 700 to 750 different videos; in most-played or newest order there are far fewer repeats. Set maxVideosPerQuery to 1000 and read the SUMMARY record to see how many were delivered.

Can I get every comment on a video? No. Top-level comments only, at most 1,000 per video per run.

Is there a TikTok version? Yes: TikTok Transcript Scraper returns stats and the transcript for TikTok videos.