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

5 days 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.

New in 0.3, growth tracking: give the run a trackStoreName (e.g. python-weekly) and schedule it. From the second run on, every video row also carries viewsChange, likesChange, coinsChange, favoritesChange, danmakuChange, repliesChange, sharesChange and viewsPerHour since the previous run. You see which videos are taking off without diffing two exports yourself.

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
firstTracked, previousScrapedAt, hoursSincePreviousboolean / string / numberGrowth tracking only (trackStoreName): true on the first run that sees the video, else when the previous run saw it
viewsChange, likesChange, coinsChange, favoritesChange, danmakuChange, repliesChange, sharesChangenumberGrowth tracking only: change of each count since the previous run (null on the first run or when a count is missing)
viewsPerHournumberGrowth tracking only: viewsChange divided by the hours between the two runs (null under a minute apart)

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 growth tracking: views and likes gained since the last run

Set trackStoreName and run the same input on a schedule (daily, hourly). The Actor keeps the last counts of every video it delivered in a named key-value store with that name. The next run adds to each row how much the video grew since then. Every video is still returned and charged as usual ($0.003 per video); tracking itself costs nothing extra. Runs with different names never mix.

{
"popular": true,
"maxVideos": 100,
"trackStoreName": "popular-hourly"
}

A real row from the second of two runs 67 seconds apart (popular list, 29 Nov 2026):

{
"bvid": "BV1Zh1KzLEj4",
"title": "【独家】牧神记 第111集 神船",
"views": 741322,
"likes": 15783,
"firstTracked": false,
"previousScrapedAt": "2026-11-29T08:19:07.069Z",
"hoursSincePrevious": 0.02,
"viewsChange": 1660,
"likesChange": 20,
"coinsChange": 13,
"favoritesChange": 3,
"danmakuChange": 1,
"repliesChange": 1,
"sharesChange": 1,
"viewsPerHour": 89030.6
}
  • Works for keywords, popular and video URLs. A video found by search in one run and by URL in the next is compared correctly, because all three Bilibili endpoints return the same live counts.
  • Videos dropped by your filters are not recorded, so they show firstTracked: true when they pass later.
  • The OUTPUT record shows tracking: { storeName, rows, comparedWithPreviousRun, firstTracked, ledgerVideos }. The store keeps the latest 20,000 videos; the oldest are dropped first.
  • The dataset has a Growth since previous run view with the change columns.

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).
trackStoreNamestringnoneGrowth tracking: name of the store that keeps counts between runs. Later runs with the same name add viewsChange, likesChange and the other change fields. Letters, digits, hyphens.
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, publishedAfter later than publishedBefore, or a trackStoreName with spaces).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

The 10 most-used Bilibili video Actors in the Apify Store by 30-day users, with public list prices and input schemas checked on 29 November 2026. Prices change; check the Store before buying.

ActorPrice per video row (per 1,000)Exclude keywords + minimum viewsPer-video growth since the previous run
webdatatools/bilibili-scraper (this Actor)$3 Free tier, $1.80 to $2.40 on paid tiersYes, dropped videos are not chargedYes (trackStoreName)
zhorex/bilibili-scraper$20 per item scrapedNo (has a delta mode)No (delta mode returns new videos only)
lofomachines/bilibili-scraper$4.50 Free, $2 to $3.50 paid, plus Apify platform usageNoNo
blueskyscraper/bilibili-scraper$3 Free / $2.25 paid with full stats; $1.50 / $1.125 for a basic search rowNoNo (monitoring returns new rows only)
atomus/bilibili-scraper$10 Free, $8 on Gold and upNoNo
openclawai/tiktok-douyin-bilibili-scraper$2.50 per Bilibili video, $5 from 1 Dec 2026NoNo
blueskyscraper/bilibili-search-scraper$1.50 Free / $1.125 paid per search row; $3 / $2.25 with full statsNoNo (monitoring returns new rows only)
sian.agency/bilibili-video-scraperSearch row $12 Free, $2 to $4 paid; plus $0.014 to $0.14 per run startNoNo
automation-lab/bilibili-scraper$0.08 Free, $0.02 to $0.07 paid, plus $0.005 per runNoNo
socialdatax/socialdatax-bilibili-data-api$2.99NoNo
zen-studio/bilibili-video-scraper$5.99 Free, $4.99 to $5.49 paid, plus $0.005 per runNoNo

This Actor is not the cheapest: automation-lab charges far less per video, and blueskyscraper's basic search rows cost less than ours. Most alternatives offer a publish-date window like ours. None of the 10 has exclude-keywords or minimum-views inputs, and none adds per-video view or like growth since the previous run: zhorex and both blueskyscraper Actors can return only new videos on a schedule, which is a different job (existing videos that keep growing are not reported). Outside this list (all with 3 or fewer users in 30 days, 29 Nov 2026): topapi/bilibili-scraper has excludeKeywords and minViews filters but no growth tracking (its monitor mode returns only new rows); insights_data/bilibili-scraper-videos-comments-danmaku-creator-uploads (trackChanges) and nexgenwatch/bilibili-trends-watch (engagement_changed deltas on popular, ranking and search lists) do report growth since an earlier run. Many alternatives also sell comments, danmaku, transcripts or creator profiles; this Actor does not.

Choose this Actor when you want to see which videos are gaining views right now, or when you want filtered keyword results: the noise is dropped before a row is saved, so you pay only for the videos you keep. For the lowest price per raw video row, compare automation-lab first.

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.

How do I track a video's views over time? Put the video URLs (or a keyword, or popular) in a scheduled run with a trackStoreName. Each run adds viewsChange, likesChange and viewsPerHour since the previous run. Tracking adds no charge.

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.