Bilibili Scraper (Videos, Search, Popular) avatar

Bilibili Scraper (Videos, Search, Popular)

Pricing

from $1.80 / 1,000 videos

Go to Apify Store
Bilibili Scraper (Videos, Search, Popular)

Bilibili Scraper (Videos, Search, Popular)

Scrape Bilibili (哔哩哔哩) videos by keyword, video URL or the popular list: title, uploader, category, views, likes, coins, favorites, danmaku, comments, duration, tags. No login.

Pricing

from $1.80 / 1,000 videos

Rating

0.0

(0)

Developer

Murat Uzun

Murat Uzun

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

an hour ago

Last modified

Features

Limited permissions

Share

Bilibili Scraper: what it is

Bilibili Scraper extracts video data from Bilibili (哔哩哔哩), China's largest video platform. Search by keywords (Chinese or English), get the currently popular videos (热门), or look up specific video URLs / BV ids. Each video comes with title, uploader, category, views, likes, coins, favorites, danmaku, comments, shares, duration, publish date, tags and cover image. No login, no browser. $3 per 1,000 videos.

Pay only for the videos you keep: excludeKeywords (e.g. 激活, 广告, giveaway), minViews and a publish-date window drop the noise before a row is saved, and dropped videos are never charged. On a real python tutorial search (28 Nov 2026) views ran from 322 to 871,586 per video; minViews: 10000 keeps only the videos people actually watched.

Use it for trend research on the Chinese market, influencer discovery, competitor and brand monitoring, or building datasets of Bilibili content.

Bilibili Scraper: data fields

FieldTypeDescription
bvid, aid, urlstring / number / stringVideo id (BV…), numeric id and link
title, descriptionstringTitle (search highlights removed) and description
authorName, authorMidstring / numberUploader name and user id
categorystringBilibili category, e.g. 计算机技术 (computer tech) or 手机游戏 (mobile games)
durationSecondsnumberLength in seconds
publishedAtstringPublish time (ISO 8601)
views, likes, favorites, danmaku, repliesnumberEngagement counts
coins, sharesnumberCoins given and shares (popular and video lookups; search results don't include them)
tagsarrayTags (search results)
coverUrlstringCover image
source, keywordstringWhere the row came from (popular, search, video) and the keyword
scrapedAtstringWhen the row was scraped

Bilibili Scraper: how to use

  1. Enter Search keywords, several separated by ; (e.g. python tutorial; 原神; lofi), and/or Video URLs.
  2. Tick Fetch popular videos to add the current popular list. With no input at all, the Actor returns the popular videos.
  3. Set Max videos (per keyword, default 30).
  4. Run it and download the data as JSON, CSV, Excel or HTML, or read it through the API.

Results are deduplicated by video id across all sources.

Bilibili Scraper filters: pay only for the videos you keep

FilterWhat it dropsCharged?
excludeKeywordsVideos whose title, description, tags or uploader name contain a term. Case-insensitive; Latin terms match whole words (py does not drop python), Chinese terms match anywhere (激活 drops 安装激活教程).No
minViewsVideos with fewer views than the number you set.No
publishedAfter / publishedBeforeVideos published outside the window (YYYY-MM-DD, UTC, both days included). Search sends the window to Bilibili, so it pages through matching videos only.No

Filtered videos don't count towards maxVideos: the Actor keeps paging (up to 50 pages, about 1,000 results per keyword, which is Bilibili's own search cap) until it has maxVideos videos that pass. The OUTPUT record shows how many were dropped and why:

{ "videosReturned": 30, "errorCode": null, "zeroResultReason": null,
"filteredOut": { "excludedKeyword": 4, "belowMinViews": 17, "outsideDateRange": 0 } }
{
"searchKeywords": "python tutorial",
"excludeKeywords": ["激活", "破解", "giveaway"],
"minViews": 10000,
"publishedAfter": "2026-01-01",
"maxVideos": 30
}

Bilibili Scraper example input

{
"searchKeywords": "python tutorial; 原神",
"videoUrls": ["https://www.bilibili.com/video/BV1rpWjevEip"],
"popular": true,
"maxVideos": 40
}

Bilibili Scraper example output

{
"bvid": "BV1rpWjevEip",
"url": "https://www.bilibili.com/video/BV1rpWjevEip",
"title": "【全748集】目前B站最全最细的Python零基础全套教程…",
"authorName": "Python官方课程",
"authorMid": 3546597933714079,
"category": "计算机技术",
"durationSeconds": 143894,
"publishedAt": "2024-08-22T14:59:18.000Z",
"views": 20310794,
"likes": 555201,
"coins": 398299,
"favorites": 855835,
"danmaku": 131115,
"replies": 353946,
"shares": 101021,
"coverUrl": "https://i2.hdslb.com/bfs/archive/a979056b1a32012cdd00d48fbc3732d253e30620.jpg",
"source": "video",
"scrapedAt": "2026-09-28T11:40:00.000Z"
}

Bilibili Scraper code examples

JavaScript (apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('webdatatools/bilibili-scraper').call({
"searchKeywords": "python tutorial; 原神",
"videoUrls": [
"https://www.bilibili.com/video/BV1rpWjevEip"
],
"popular": true,
"maxVideos": 40
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python (apify-client):

import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("webdatatools/bilibili-scraper").call(run_input={
"searchKeywords": "python tutorial; 原神",
"videoUrls": [
"https://www.bilibili.com/video/BV1rpWjevEip"
],
"popular": True,
"maxVideos": 40
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
for item in items:
print(item)

Apify CLI:

$apify call webdatatools/bilibili-scraper --input '{"searchKeywords":"python tutorial; 原神","videoUrls":["https://www.bilibili.com/video/BV1rpWjevEip"],"popular":true,"maxVideos":40}'

Bilibili Scraper input parameters

ParameterTypeDefaultWhat it does
searchKeywordsstringpython tutorialKeywords to search, separated by ;. Leave all inputs empty to get the currently popular videos.
keywordsarray[]The same keywords as a list (merged with searchKeywords).
videoUrlsarray[]Bilibili video URLs (https://www.bilibili.com/video/BV...) or BV ids, one per line.
popularbooleanfalseAlso fetch the currently popular videos (热门). Used automatically when nothing else is given.
maxVideosinteger30Maximum videos per keyword (and for popular), 1 to 500.
excludeKeywordsarray[]Skip videos whose title, description, tags or uploader contain any of these terms. Not charged.
minViewsintegernoneSkip videos with fewer views. Not charged.
publishedAfterstringnoneOnly videos published on or after this day (YYYY-MM-DD, UTC).
publishedBeforestringnoneOnly videos published on or before this day (YYYY-MM-DD, UTC).
proxyModestringautoauto: direct first, Residential proxy on block. always: Residential for all requests. never: direct only.

Bilibili Scraper pricing

Each run also pays the platform start event: $0.00005 per run (apify-actor-start).

Pay per result: $0.003 per video ($3 per 1,000), with volume discounts on paid Apify plans. Keywords or videos that fail are listed in the ERRORS record and cost nothing. Videos dropped by excludeKeywords, minViews or the date window cost nothing either. Set Maximum cost per run to cap spend.

How much does a run cost? 30 videos for one keyword cost 30 × $0.003 = $0.09 plus the $0.00005 start event. With filters you pay for the 30 videos that pass, not for the ones the filters dropped.

Bilibili Scraper results and errors

The OUTPUT record of every run has videosReturned, errorCode and zeroResultReason (null when videos were saved).

errorCodeRun statusMeaningWhat to do
INVALID_INPUTSucceeded, no chargeThe input is outside the schema (for example a date not in YYYY-MM-DD, or publishedAfter later than publishedBefore).Fix the input shown in the status message.
NO_RESULTSSucceededBilibili has no video for the keyword, or the video ids don't exist.Try another keyword or check the BV id.
NO_VIDEOS_MATCH_FILTERSSucceededVideos were found, but every one was dropped by your filters (not charged).Loosen minViews, the date window or excludeKeywords; see filteredOut.
CHARGE_LIMITSucceededThe run's maximum cost allows no result.Raise Maximum cost per run.
TIMEOUTSucceededThe run timeout came before any video was saved.Raise the run timeout.
SOURCE_FAILEDFailedBilibili blocked or didn't answer every request, so nothing could be read.Retry later or use proxyMode: always. Details in ERRORS.

Bilibili Scraper proxy settings

The Actor calls Bilibili's public web API directly. If Bilibili blocks a request (HTTP 412), it waits and retries, then switches to Apify Residential proxy automatically (proxyMode: auto). Use never to stay direct, or always to use Residential from the start.

Bilibili Scraper limitations

  • Bilibili's public API returns the stats and tags shown on the video page. Comments and danmaku are counted, not expanded into rows, unless the output schema says otherwise.
  • Keywords are matched by Bilibili's own Chinese-text index. Brand names in Latin letters may return fewer videos; the Actor does not translate them.
  • A blocked request (HTTP 412) is retried and then moved to Residential proxy. Failed keywords and videos are listed in ERRORS and are not charged.

Bilibili Scraper vs. alternatives

Public list prices checked on 25 November 2026 (Store pages, READMEs and Store tier data; prices change, check the Store before buying):

ActorPrice per video or itemNotes
webdatatools/bilibili-scraper (this Actor)$3 per 1,000 on the list price; Store tiers $1.80 to $3 per 1,000 on 25 Nov 2026Full video stats, tags and category per row; no platform-usage charge.
zhorex/bilibili-scraper$0.02 per item scraped, same for a video row (its README: "charged like a video")Same unit, higher per-row price; also sells danmaku and comment modes.
blueskyscraper/bilibili-scraper$3 per 1,000 full videos on the Free tier; Store tiers $2.25 to $3 per 1,000 on 25 Nov 2026Lower price on the paid tiers; check the fields it returns.
lofomachines/bilibili-scraper$4.50 per result on the Free tier; Store tiers $2 to $4.50 per 1,000Charges platform usage on top of the per-result price.
atomus/bilibili-scraper$10 per video on the Free tier; Store tiers $8 to $10Higher per-video price on every tier.

Filters, from each Actor's public input schema on 28 November 2026: all four alternatives offer a publish-date window, and none of them has an exclude-keywords or minimum-views input. The others also sell comments, danmaku, transcripts or creator profiles, which this Actor does not.

Choose this Actor for a single run that returns the full stats, tags and category of each video at the lowest per-video price among the Actors above that charge per video. Blueskyscraper is cheaper on its paid tiers; compare the fields before choosing.

Bilibili Scraper with AI agents and MCP

The Actor is pay-per-event with limited permissions, so AI agents can call it through Apify's MCP server (mcp.apify.com), for example with {"searchKeywords": "AI 绘画", "maxVideos": 20}. It also accepts keywords, keyword, urls and url.

Bilibili Scraper FAQ

Is scraping Bilibili legal? The Actor reads only public video data that Bilibili shows to logged-out visitors. Don't use the data in ways that break Bilibili's terms or privacy law.

Can I get comments or danmaku text? Not yet: the Actor returns counts, not the comments themselves.

Am I charged for videos my filters drop? No. A dropped video is never saved to the dataset, so it is never charged. OUTPUT.filteredOut counts them.

Why is coins empty for search results? Bilibili's search API doesn't return coins or shares. Pass the video URLs to get them.

Part of the webdatatools web-intelligence suite — every Actor is pay-per-event, reads public data without a login, and returns one clean row per entity:

Browse the whole suite at webdatatools, or call ten of these Actors straight from Claude, Cursor or Cline with the webdatatools MCP server.

Website & domain intelligence

Content for AI, LLMs and RAG

Search, video and social

Leads, jobs and company data

Developer, app and research data

Bilibili Scraper support

Bug reports and feature requests: open an issue on the Actor's Issues tab in the Apify Console. The run log and the ERRORS record show the cause of most failed lookups.

If the Actor saved you time, please leave a short review on its Apify Store page — it helps other buyers find it.