Bilibili Scraper - Video Search, Stats, Danmaku & Trending avatar

Bilibili Scraper - Video Search, Stats, Danmaku & Trending

Pricing

from $1.60 / 1,000 videos

Go to Apify Store
Bilibili Scraper - Video Search, Stats, Danmaku & Trending

Bilibili Scraper - Video Search, Stats, Danmaku & Trending

Bilibili (B站) videos by keyword, URL or trending: views, likes, coins, favourites, comment count, tags, upload date, creator followers and danmaku. $2 per 1,000 videos. Monitor mode returns only new uploads. For China market research and KOL discovery. No login.

Pricing

from $1.60 / 1,000 videos

Rating

0.0

(0)

Developer

the anh nguyen

the anh nguyen

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Scrape Bilibili (哔哩哔哩, B站), China's largest video community, without a login: search videos by keyword, look up any video by URL, or pull the current trending list (热门). Every row is one video with its title, views, likes, coins, favourites, shares, comments, danmaku count, tags, upload date and creator (UP主), and optionally the creator's follower count and the video's danmaku (弹幕), the bullet comments that scroll over it.

Plain HTTP, no browser: the 20-video example input finishes in about 10 seconds.

Why this one

  • No cookies to paste, no account. The Actor visits Bilibili the way an anonymous browser does and signs its requests the same way the site does.
  • Exact numbers, not "1.2万". Counts are integers (12,000, not 1.2万), durations are seconds, dates are ISO 8601 UTC.
  • Search filters that matter for research: sort by relevance, most views, newest, most danmaku or most favourites, and limit to an upload-date range.
  • Pay for what you get. A video whose details or danmaku could not be loaded is saved without them and not charged for them. Video URLs that do not exist are skipped and not charged.
  • Monitor mode. Schedule a search with Only new videos on, and each run returns (and charges) only videos that earlier runs did not return: a feed of new uploads on a topic.
  • Honest about throttling. Bilibili sometimes answers a busy server with an empty page. The Actor waits and retries those pages as a new visitor, and the run's status message says if a search stopped early.

What you can use it for

  • China market research: what is being watched and discussed about a brand, product, game or topic
  • KOL / UP主 discovery: creators behind the most-viewed videos for a keyword, with follower counts
  • Content and trend tracking: daily trending list, newest uploads for a keyword on a schedule
  • Audience reaction analysis from danmaku (timed comments), for NLP or sentiment work
  • Building Chinese video metadata datasets

Input

FieldTypeDescription
queriesarray of stringsSearch keywords, e.g. 人工智能, 原神, iphone 17.
videoUrlsarray of stringsVideo links (bilibili.com/video/..., m.bilibili.com, b23.tv short links) or bare BV... / av... ids.
trendingbooleanAlso return the current trending list. Default false.
sortstringrelevance, views, newest, danmaku or favorites. Search only. Default relevance.
dateFrom / dateTodateUpload-date range, YYYY-MM-DD, China time. Search only.
maxItemsintegerVideos per query (and for trending), 1 to 1,000. Default 20. Bilibili shows at most 1,000 results per search.
fetchDetailsbooleanExact stats incl. coins and shares, the full tag list, original/repost and part count. One extra request per video. Always on for videoUrls.
includeCreatorStatsbooleanCreator followers, total likes, video count, verification and bio. Free.
maxDanmakuintegerAdd up to this many danmaku per video (0 = off). Turns on details.
onlyNewbooleanMonitor mode: on repeat runs with the same search (query, sort, dates) or trending, return only videos not returned before. Default false.
proxyConfigurationobjectOptional. Runs work without a proxy.

Most-viewed videos on a topic this month

{
"queries": ["人工智能"],
"sort": "views",
"dateFrom": "2026-11-01",
"maxItems": 100,
"fetchDetails": true,
"includeCreatorStats": true
}

Specific videos with their danmaku

{
"videoUrls": ["https://www.bilibili.com/video/BV1jiWi6dEQg", "av170001"],
"maxDanmaku": 500
}
{
"trending": true,
"maxItems": 100
}

New uploads on a topic, every hour

Schedule this input. The first run returns the newest 50; each later run returns only videos uploaded (or newly found) since. A run with nothing new succeeds with an empty dataset and costs nothing in results.

{
"queries": ["机器人"],
"sort": "newest",
"maxItems": 50,
"onlyNew": true
}

Output

One row per video. Example (search with details and creator stats, danmaku shortened):

{
"source": "search",
"query": "原神",
"position": 1,
"bvid": "BV1jiWi6dEQg",
"aid": 117608754190213,
"url": "https://www.bilibili.com/video/BV1jiWi6dEQg",
"title": "《原神》剧情PV-「被赋予的慈爱」",
"description": "神降下它能带来的慈爱,为世间众生解除万千的苦痛。…",
"cover": "https://i1.hdslb.com/bfs/archive/109430d5f063be93576b5d38e529985786683183.jpg",
"durationSeconds": 518,
"publishedAt": "2026-11-14T04:00:00Z",
"category": "手机游戏",
"tags": ["至冬", "安娜丝塔夏", "米哈游", "miHoYo", "原神"],
"views": 527914,
"likes": 77768,
"coins": 20185,
"favorites": 12505,
"shares": 2511,
"comments": 2205,
"danmakuCount": 1277,
"historyRank": 80,
"copyright": "original",
"partCount": 1,
"authorName": "原神",
"authorId": 401742377,
"authorUrl": "https://space.bilibili.com/401742377",
"authorFollowers": 20967639,
"authorLikes": 291023140,
"authorVideoCount": 760,
"authorVerified": "原神官方账号",
"detailsStatus": "ok",
"danmaku": [
{ "time": 62.05, "text": "以乐景衬哀情", "sentAt": "2026-11-14T04:02:53Z", "mode": "top", "color": "#ffffff" }
],
"scrapedAt": "2026-11-17T21:40:00Z"
}

Fields that only some options fill:

  • coins, shares, copyright, partCount: with details on (and on trending rows, which carry coins and shares).
  • author* counts and bio: with creator stats on.
  • danmaku: with maxDanmaku above 0.
  • trendingReason: trending rows, e.g. 百万播放 (a million plays).
  • changeType: "new" on every row in monitor mode.

The dataset has four views: Videos, Engagement, Creators and Danmaku.

Use it from Python

$pip install apify-client pandas

The most-viewed videos on a topic this month, with a creator shortlist:

from apify_client import ApifyClient
import pandas as pd
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("conversational_kermis/bilibili-scraper").call(run_input={
"queries": ["人工智能"],
"sort": "views",
"dateFrom": "2026-11-01",
"maxItems": 100,
"fetchDetails": True,
"includeCreatorStats": True,
})
df = pd.DataFrame(client.dataset(run["defaultDatasetId"]).iterate_items())
print(df[["title", "authorName", "authorFollowers", "views", "likes", "coins"]].head(10))
creators = (
df.groupby(["authorName", "authorUrl", "authorFollowers"])
.agg(videos=("bvid", "count"), total_views=("views", "sum"))
.sort_values("total_views", ascending=False)
)
print(creators.head(20))

Where viewers reacted in a video: every danmaku has its time in the video, so 10-second bins show the peaks.

run = client.actor("conversational_kermis/bilibili-scraper").call(run_input={
"videoUrls": ["https://www.bilibili.com/video/BV1jiWi6dEQg"],
"maxDanmaku": 500,
})
video = next(client.dataset(run["defaultDatasetId"]).iterate_items())
dm = pd.DataFrame(video["danmaku"])
print(dm.groupby((dm.time // 10) * 10).size().sort_values(ascending=False).head(5))

Pricing

Pay per event, no start fee:

EventPriceWhen
video$0.002every video row saved
video-details$0.002every row whose details were loaded (detailsStatus: "ok")
danmaku$0.003every row saved with at least one danmaku (videos with none are not charged)

1,000 search results cost $2; with details $4. Creator stats are free. Set a maximum cost per run in the run options and the Actor stops there.

Limits, plainly

  • Comments and subtitles are not included. Bilibili shows a visitor who is not logged in only the top 3 comments of a video, and no subtitles (none on 20 of 20 trending videos tested on 2026-11-22); this Actor does not log in. The comment count is in every row.
  • A creator's full video list is not included for the same reason. Search for the creator's name, or pass their video URLs.
  • Danmaku can run out partway through a big run. Bilibili stops serving danmaku to a server that asks for many in a row. The Actor then saves the remaining videos without danmaku, does not charge for them, and says so in the status message. A proxy (residential works best) avoids it.
  • Monitor mode remembers videos, not their numbers. A video returned once is not returned again, even if its views grow. Memory is per search (query, sort and dates) or trending, kept in a key-value store named bilibili-scraper-seen in your own account.
  • Search tops out at 1,000 results per query (50 pages), which is Bilibili's own limit. Split a broad topic into narrower queries or date ranges for more.
  • Throttled pages are retried, not skipped. Under load Bilibili answers some search pages with nothing. The Actor waits and retries them as a new anonymous visitor. If a page still comes back empty after six tries, that query stops there and the run says so.

FAQ

Do I need a Bilibili account or cookies? No.

Can I schedule it? Yes. A daily run with sort: "newest" and a one-day dateFrom gives you every new upload for your keywords.

Is this legal? The Actor reads public pages that anyone can open without logging in. You are responsible for how you use the data; check Bilibili's terms and the laws that apply to you, especially for personal data.

Something broke? Open an issue on the Issues tab with the run link and I will look at it.