# Bilibili Scraper – B站 Videos, Creators, Rankings & Comments (`tubetext/bilibili-scraper`) Actor

Get Bilibili (哔哩哔哩) data from keywords, video links, creator (UP主) links, the popular board or top-100 ranking. Returns video stats, tags, creator followers and likes; optional comments and danmaku. No login. $3 per 1,000 results; failures are free. · by TubeText

- **URL**: https://apify.com/tubetext/bilibili-scraper.md
- **Developed by:** [TubeText Labs](https://apify.com/tubetext) (community)
- **Categories:** Social media, Videos
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.20 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bilibili Scraper – B站 Videos, UP主, Rankings & Comments

> **TubeText** · Social, apps & trends · Pay per result. No login. Ready for AI agents. [All tools](https://apify.com/tubetext)

### Quick start (no coding)

![Bilibili Scraper quick start: click Try for free, paste your input, click Start, export to Excel](https://raw.githubusercontent.com/LMSlay/tubetext-assets/main/bilibili-scraper-quickstart.gif)

1. Click **Try for free** at the top of this page. A free Apify account is enough – it includes monthly credit.
2. In **Search videos by keyword**, paste Chinese or English keywords, one per line (like `瑜伽` or `minecraft`).
3. Click **Start**. Usually done in 10–30 seconds.
4. When it says **Succeeded**, open the **Output** tab and click **Export** → **Excel** (or CSV). One row per video: views, likes, coins, favorites, danmaku, comments, tags and the creator.

**Cost:** $0.003 per result – 100 videos ≈ $0.30. Comments add $0.0005 each.

**Common mistakes**

- Want what's trending instead of a search → turn on **Popular board (热门)** or **Site-wide ranking (排行榜)**.
- Want creators' followers → paste `space.bilibili.com/…` links in **Video or creator links**, or use **Search creators (UP主) by keyword**.
- b23.tv share links work – paste them as they are.
- Want all of a creator's videos → paste their `space.bilibili.com/…` link and set **Uploads per creator link**.
- Want the bullet comments (弹幕) → set **Danmaku (弹幕) per video** ($0.0005 each).

**Questions or problems?** [Open an issue](https://apify.com/tubetext/bilibili-scraper/issues) (we read every one). **Need a custom version?** Ask in an issue or [email us](mailto:tubettext@gmail.com) – we build it as a private Actor on Apify.

### Use from Claude, Cursor or any MCP client

Add `https://mcp.apify.com?tools=tubetext/bilibili-scraper` as a remote MCP server and sign in to Apify (Claude: **Settings → Connectors → Add custom connector**). Claude Code:

```bash
claude mcp add --transport http tubetext "https://mcp.apify.com?tools=tubetext/bilibili-scraper"
```

Then ask, for example: *"Search Bilibili for '机械键盘' and list the top 20 videos with views and uploader."* or *"Get today's Bilibili top-100 ranking with views and likes."*

🆓 **Free to try:** Apify's free plan includes $5 of usage every month, no credit card needed – enough for about 1,600 Bilibili results with this tool.

**What you get** – real output from a test run, shortened. One row per video:

| Title | Creator | Views | Likes | Danmaku |
|---|---|---|---|---|
| 2026.01.12 【Breathe and Flow】试试这个战士2式挑战… | 我叫阿搬 | 50,835 | 949 | 8 |
| 10分钟伸展燃烧有氧运动！适合冬季懒人舒展身体和取暖燃脂升温！【周六野】 | 周六野Zoey | 1,996,622 | 35,617 | 7,747 |
| 10分钟美腿拉伸运动，变直变长，改善腿型！【周六野Zoey】 | 周六野Zoey | 4,034,960 | 91,422 | 21,454 |

Scrape **Bilibili (哔哩哔哩, B站)**, China's biggest video community for young audiences, without logging in. Search videos by keyword, pull the **Popular board** and the **top-100 ranking**, get full **video stats** (views, likes, coins, favorites, shares, danmaku, comments, tags) and **creator (UP主) profiles** (followers, total likes, video count, verification). Built for China market research, brand and trend monitoring, KOL/creator discovery, and AI datasets. **$3 per 1,000 results.**

### What you can scrape

- 🔍 **Keyword search** – Chinese or English keywords, up to 1,000 videos each. Sort by relevance, newest, most viewed, most favorited or most danmaku, and filter by video length.
- 🔥 **Popular board (热门)** and **site-wide ranking (排行榜, top 100)** – what is trending on Bilibili right now, with full stats.
- 🎬 **Video links** – full stats and tags for any `bilibili.com/video/BV…` link.
- 👤 **Creators (UP主)** – by profile link (`space.bilibili.com/<id>`), numeric ID or keyword search: followers, following, likes received, videos, level, verified title.
- 📼 **A creator's uploads** – set *Uploads per creator link* (up to 1,000) and every `space.bilibili.com/<id>` link also lists that creator's own videos as Bilibili lists them (recent first), with views, danmaku, comments, duration, publish date, cover and an `isCollab` flag for co-created videos ($0.003 per video).
- 💬 **Top comments (optional)** – comment text, likes, replies and time. Commenter names are not collected.
- 🎞️ **Danmaku (弹幕) text (optional)** – up to 3,000 bullet comments per video with `text`, `timeInVideo`, `sentAt` and `mode` in `danmakuItems` (newest kept, sorted by video time). Sender IDs are not collected.

### Input example

```json
{
  "keywords": ["瑜伽", "露营"],
  "sort": "most_viewed",
  "maxResultsPerKeyword": 100,
  "urls": ["https://space.bilibili.com/946974"],
  "includeRanking": true
}
```

### Output example

Real output (Oct 2026). A video from the keyword search `瑜伽`:

```json
{
  "input": "瑜伽",
  "status": "ok",
  "type": "video",
  "rank": 1,
  "bvid": "BV1kqrvBuEve",
  "url": "https://www.bilibili.com/video/BV1kqrvBuEve",
  "title": "2026.01.12 【Breathe and Flow】试试这个战士2式挑战瑜伽课程",
  "author": "我叫阿搬",
  "authorUrl": "https://space.bilibili.com/3493124231924007",
  "views": 50754,
  "likes": 949,
  "danmaku": 8,
  "comments": 50,
  "favorites": 1773,
  "durationSeconds": 1678,
  "publishedAt": "2026-01-12T14:18:16Z",
  "category": "健身",
  "tags": ["我叫阿搬", "拉伸放松", "普拉提"],
  "queryTotalResults": 1000
}
```

A creator from a profile link:

```json
{
  "input": "https://space.bilibili.com/946974",
  "status": "ok",
  "type": "creator",
  "mid": 946974,
  "url": "https://space.bilibili.com/946974",
  "name": "影视飓风",
  "followers": 18601927,
  "likesReceived": 128433142,
  "videos": 936,
  "level": 6,
  "verified": true,
  "verifiedDescription": "2025百大UP主、2023年度最高人气奖UP主、课堂优质讲师"
}
```

Ranking and Popular rows and video-link rows also include `coins`, `shares` and `description`; video-link rows add `tags`. `status` is `ok`, `skipped` (video or creator not found or removed – free), `no_results` or `error` (free). In Excel/CSV export, choose the **Videos** or **Creators (UP主)** view for clean columns.

### Pricing

Pay per event:

- **$3.00 per 1,000 results** – one video or creator row (cheaper on higher Apify plans: down to $2.20).
- **$0.50 per 1,000 comments or danmaku** – only when you turn them on (*Top comments per video*, *Danmaku (弹幕) per video*).
- Failed, unavailable and duplicate items are free.

Example: 10 keywords × 100 videos = 1,000 results ≈ **$3.00**.

### Tips and limits

- **Up to 1,000 videos per keyword** (Bilibili's own limit: 50 pages of 20). Pages can overlap a little, so a request for 50 may return 45–50 unique videos.
- **Comments**: visitors who are not logged in see at most 3 top comments per video, so expect up to 3. You only pay for comments delivered.
- **Transcripts**: every row has a plain `url`. To turn the videos' speech into Chinese text, pass this run's dataset to our [Bilibili Video Transcript](https://apify.com/tubetext/bilibili-video-transcript) Actor – with optional English summaries.
- **Monitoring**: schedule a daily run with `includeRanking` or your keywords sorted by `newest`, and compare runs to spot rising videos and creators.
- **Integrations**: call it from the API, n8n, Make or Zapier, or from AI agents through Apify's MCP server.

### 中文说明

**B站（哔哩哔哩）数据爬虫**：按关键词搜索视频（每个关键词最多 1,000 条，可按播放量、最新、收藏、弹幕排序，可筛选时长），抓取热门榜和全站排行榜前 100，获取视频播放、点赞、投币、收藏、分享、弹幕、评论数和标签，可选抓取弹幕内容（每个视频最多 3,000 条），以及 UP主的粉丝数、全部投稿列表（每个 UP主最多 1,000 条）、获赞数、投稿数和认证信息。支持 b23.tv 短链接。无需登录，每 1,000 条结果 $3。

### Ready-made examples

- [Bilibili Popular Videos (热门)](https://apify.com/tubetext/bilibili-scraper/examples/bilibili-popular-videos)
- [Bilibili Top 100 Ranking (排行榜)](https://apify.com/tubetext/bilibili-scraper/examples/bilibili-ranking-top-100)
- [Bilibili Video Search](https://apify.com/tubetext/bilibili-scraper/examples/bilibili-video-search)
- [Bilibili Creator (UP主) Stats](https://apify.com/tubetext/bilibili-scraper/examples/bilibili-up-creator-stats)

### TubeText Labs tools

**TubeText Labs** builds 29 pay-per-result Apify Actors for video, social and e-commerce data – no login, JSON/CSV/Excel output, and ready for ChatGPT and Claude (Apify MCP), n8n, Make and Zapier. All tools: [apify.com/tubetext](https://apify.com/tubetext)

**Transcripts**

- [YouTube Transcript Scraper](https://apify.com/tubetext/youtube-transcript-fast) – videos, Shorts, playlists and whole channels to text; Whisper AI when there are no captions
- [TikTok Transcript Scraper](https://apify.com/tubetext/tiktok-transcript) – TikTok captions plus Whisper AI, SRT and timestamps
- [Instagram Reels Transcript](https://apify.com/tubetext/instagram-reels-transcript) – reel links or @usernames to text with Whisper AI
- [Podcast & Video Transcript](https://apify.com/tubetext/any-video-podcast-transcript) – podcast RSS / Apple Podcasts, X, Facebook, Loom, Twitch and audio files to text
- [Facebook Video Transcript](https://apify.com/tubetext/facebook-video-transcript) – public Facebook videos and Reels to text with Whisper AI
- [X (Twitter) Video Transcript](https://apify.com/tubetext/twitter-x-video-transcript) – X/Twitter video posts to text with Whisper AI
- [Bilibili Video Transcript](https://apify.com/tubetext/bilibili-video-transcript) – Bilibili (B站) videos to text with Whisper AI, plus optional English summaries
- [Podcast Transcript](https://apify.com/tubetext/podcast-transcript) – podcast RSS feeds and Apple Podcasts episodes to text with Whisper AI

**Video & ad analysis**

- [Video Breakdown AI](https://apify.com/tubetext/video-breakdown-ai) – hook analysis, shot list, cut pacing, products shown and script of any TikTok, Reel or YouTube video
- [Video Ad Analyzer](https://apify.com/tubetext/video-ad-analyzer) – competitors' YouTube video ads by brand or domain (Google Ads Transparency), torn down by AI
- [Meta Ad Library Scraper](https://apify.com/tubetext/meta-ad-library-videos) – Facebook and Instagram ads by brand or keyword: video URLs, images, ad copy, CTA and landing page

**Social, apps & trends**

- [YouTube Channel Analytics](https://apify.com/tubetext/youtube-channel-analytics) – subscribers, recent video performance, Social Blade grade, ranks and estimated earnings
- [Bilibili Scraper](https://apify.com/tubetext/bilibili-scraper) *(this tool)* – Bilibili (B站) keyword search, popular board, top-100 ranking, video stats, danmaku text and creator (UP主) followers – no login
- [China Trending Topics](https://apify.com/tubetext/china-trending-topics) – Douyin, Weibo, Baidu, Toutiao and Bilibili hot-search boards in one run, in English – plus an optional AI briefing on why topics trend
- [WeChat Article Scraper](https://apify.com/tubetext/wechat-articles-scraper) – WeChat 公众号 articles by keyword or link: full text, English titles and optional English summaries
- [Google Play Reviews + AI Insights](https://apify.com/tubetext/google-play-reviews-ai) – Android app reviews by star rating, country and language, plus an AI report of complaints and praise
- [Steam Reviews Scraper + AI Insights](https://apify.com/tubetext/steam-reviews-scraper) – Steam game reviews with hours played and votes, review score and current players, plus an AI report of top complaints, praise and feature requests
- [Social Blade Scraper](https://apify.com/tubetext/socialblade-scraper) – Social Blade stats for YouTube, TikTok, Instagram and Twitch creators – grade, ranks, 2-week growth, daily history, earnings estimates and top-100 lists
- [Spotify Play Count Scraper](https://apify.com/tubetext/spotify-play-count-scraper) – play counts for every track of an album, artist or playlist (incl. Top 50 charts), plus monthly listeners, followers, world rank and top cities

**E-commerce & travel**

- [TikTok Shop Product Scraper](https://apify.com/tubetext/tiktok-shop-product-scraper) – US TikTok Shop prices, items sold, stock per SKU and shop stats
- [AliExpress Search Scraper](https://apify.com/tubetext/aliexpress-search-scraper) – AliExpress search results by keyword: price, items sold, rating, shipping, badges
- [Google Hotels Scraper](https://apify.com/tubetext/google-hotels-scraper) – hotel prices for any destination and dates, per booking site and as a 90-day price calendar
- [Taobao & Tmall Product Scraper](https://apify.com/tubetext/taobao-tmall-scraper) – Taobao/Tmall products by Chinese or English keyword, category or URL: CNY prices, shops and seller scores
- [Alibaba & Yiwu Supplier Finder by Image](https://apify.com/tubetext/alibaba-yiwu-image-search) – product photo in, similar Alibaba.com and Yiwu wholesale listings out: price, MOQ, supplier, country and rating
- [Amazon Product Search Scraper](https://apify.com/tubetext/amazon-product-search-scraper) – Amazon search results, Best Sellers lists and product pages: price, rating, reviews, monthly sales signal, badges and specs
- [Google Flights Scraper](https://apify.com/tubetext/google-flights-scraper) – flight prices for any route or multi-city trip, a cheapest-day calendar, price insights and booking options per site
- [Agoda & Booking.com Hotel Reviews + AI](https://apify.com/tubetext/agoda-reviews-scraper) – Agoda hotel reviews plus verified Booking.com reviews shown on Agoda, hotel scores and sub-scores, and an AI report of complaints, praise and action items
- [Gas Prices Scraper (US & Canada)](https://apify.com/tubetext/gas-prices-scraper) – live gas station prices by ZIP, city or coordinates – regular, premium, diesel, E85 – with an area summary of the cheapest stations
- [Idealo Price Scraper](https://apify.com/tubetext/idealo-price-scraper) – every shop offer for a product on idealo – price, shipping, delivery, shop rating – in Germany, Austria, France, Italy, Spain and the UK, with a summary per market

**Questions or problems?** [Open an issue](https://apify.com/tubetext/bilibili-scraper/issues) (we read every one). **Need a custom version?** Ask in an issue or [email us](mailto:tubettext@gmail.com) – we build it as a private Actor on Apify.

Found it useful? A short review on this page helps others find it.

Built by **TubeText Labs** · Pay per result. No login. Ready for AI agents.

### FAQ

**Do I need a Bilibili account or cookies?** No. The Actor only reads public pages and public endpoints, without logging in.

**Can I search in English?** Yes, but most Bilibili content is in Chinese, so Chinese keywords return far more relevant videos.

**Does it get danmaku (bullet comments) text or video files?** Danmaku text yes – set *Danmaku (弹幕) per video* (up to 3,000, $0.50 per 1,000). Videos are not downloaded.

**Is this legal?** The Actor only collects publicly visible data without logging in, and does not collect commenter names or IDs. You are responsible for how you use the data (copyright, privacy and Bilibili's terms).

**Can I cap what a run costs?** Yes – set *Maximum cost per run* in the run options. The run stops cleanly when the next item would go over it: you are never charged more, and you get a clear "stopped at your limit" status message.

# Actor input Schema

## `keywords` (type: `array`):

One search per line, in Chinese or English (瑜伽, 原神, iPhone 17). Each keyword returns up to 1,000 videos.

## `sort` (type: `string`):

Order of keyword search results.

## `duration` (type: `string`):

Only return videos of this length (keyword search).

## `maxResultsPerKeyword` (type: `integer`):

Bilibili's search returns up to 1,000 videos per keyword (50 pages of 20).

## `urls` (type: `array`):

Video links (bilibili.com/video/BV…, b23.tv links are not supported – paste the full link) for full stats and tags, or creator (UP主) links (space.bilibili.com/<id>) or numeric IDs for follower, like and video counts.

## `maxUploadsPerCreator` (type: `integer`):

For creator links (space.bilibili.com/<id>): also list up to this many of the creator's videos as Bilibili lists them on the creator page (recent uploads first, sorted by date within each page): views, danmaku, comments, duration, date. Co-created videos are marked isCollab. Each video is one result. 0 = creator row only.

## `creatorKeywords` (type: `array`):

Find creators by name or topic. Returns name, followers, video count, level and verification.

## `maxCreatorsPerKeyword` (type: `integer`):

Up to 200 creators per keyword.

## `includePopular` (type: `boolean`):

Videos on Bilibili's Popular page right now, with Bilibili's recommendation reason.

## `maxPopular` (type: `integer`):

How many videos to take from the Popular board.

## `includeRanking` (type: `boolean`):

Bilibili's top 100 videos of the last days, with full stats (views, likes, coins, favorites, shares).

## `commentsPerVideo` (type: `integer`):

Adds the top comments to each video (text, likes, replies, time; commenter names are not collected). Bilibili shows visitors who are not logged in at most 3 top comments per video, so expect up to 3. Charged only per comment delivered.

## `danmakuPerVideo` (type: `integer`):

Adds up to this many danmaku (bullet comments) per video: text, time in the video and when it was sent (newest kept, sorted by video time). Sender IDs are not collected. Each danmaku is billed like a comment ($0.0005); 0 = off.

## `maxConcurrency` (type: `integer`):

How many requests run at the same time.

## Actor input object example

```json
{
  "keywords": [
    "瑜伽"
  ],
  "sort": "relevance",
  "duration": "any",
  "maxResultsPerKeyword": 50,
  "urls": [],
  "maxUploadsPerCreator": 0,
  "creatorKeywords": [],
  "maxCreatorsPerKeyword": 20,
  "includePopular": false,
  "maxPopular": 100,
  "includeRanking": false,
  "commentsPerVideo": 0,
  "danmakuPerVideo": 0,
  "maxConcurrency": 4
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "瑜伽"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tubetext/bilibili-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "keywords": ["瑜伽"] }

# Run the Actor and wait for it to finish
run = client.actor("tubetext/bilibili-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "瑜伽"
  ]
}' |
apify call tubetext/bilibili-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tubetext/bilibili-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/6zuaRa5DJqOmU5fai/builds/IvNCEfXATV3IOJECw/openapi.json
