# Bilibili Live Scraper — Live Rooms, Viewers & Streamers (`neronbaez/bilibili-live-scraper`) Actor

Scrape Bilibili Live (B站直播): top live rooms per category ranked by viewers, streamer, title, category and covers, plus room details (status, followers, tags). Esports, games, VTubers. No login. Optional English translation.

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

## Pricing

from $1.00 / 1,000 live rooms

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

### What does Bilibili Live Scraper do?

It extracts data from **Bilibili Live (B站直播)**, one of China's biggest live-streaming platforms for **games, esports and VTubers**:

- 📺 **Top live rooms per category, ranked by current viewers**: title, streamer, viewers, sub-category, cover and live keyframe
- 🔎 **Room details**: live/offline status, followers, tags, stream start time and description
- 🇬🇧 **Optional English translation** of titles and categories

No login and no cookies. Schedule it every hour to build a **time series of China's live-streaming market**.

### Use cases

- **Esports & gaming analytics**: which games and tournaments draw the most viewers in China
- **VTuber & streamer discovery** for agencies and brands
- **Market research** on China's live-commerce and entertainment streaming

### Categories

`2` 网游 PC games · `3` 手游 mobile games · `6` 单机游戏 console/single-player · `1` 娱乐 entertainment · `9` 虚拟主播 VTubers · `10` 生活 lifestyle · `11` 知识 knowledge · `13` 赛事 esports · `5` 电台 radio · `14` 聊天室 chat · `15` 互动玩法 interactive · `16` 购物 shopping · or `all`

### Pricing

| Result | Price |
|

### Related Actors

- [Google Maps Scraper](https://apify.com/neronbaez/google-maps-scraper) — Local business leads with emails
- [Instagram & TikTok Scraper](https://apify.com/neronbaez/instagram-tiktok-scraper) — Social media profiles
- [LinkedIn Profile Scraper](https://apify.com/neronbaez/linkedin-profile-scraper) — B2B profiles with emails
- [Facebook Ads Library Scraper](https://apify.com/neronbaez/facebook-ads-library-scraper) — Competitor ad intelligence

\---|

### Related Actors

- [Google Maps Scraper](https://apify.com/neronbaez/google-maps-scraper) — Local business leads with emails
- [Instagram & TikTok Scraper](https://apify.com/neronbaez/instagram-tiktok-scraper) — Social media profiles
- [LinkedIn Profile Scraper](https://apify.com/neronbaez/linkedin-profile-scraper) — B2B profiles with emails
- [Facebook Ads Library Scraper](https://apify.com/neronbaez/facebook-ads-library-scraper) — Competitor ad intelligence

\---|
| Live room | $0.001 |

🆓 **On Apify's Free plan you can try it practically free** (about $0.01 per 1,000 results). The prices above apply to paid plans.

For example, the top 30 rooms of every category (~360 rooms) cost **$0.36**.

### Output examples

**Live room (ranking)**

```json
{
  "type": "liveRoom",
  "roomId": 5236391,
  "url": "https://live.bilibili.com/5236391",
  "title": "[败者组半决赛] 100T vs G2",
  "streamerName": "大东彦",
  "streamerUid": 179877838,
  "streamerUrl": "https://space.bilibili.com/179877838",
  "viewers": 858805,
  "parentCategory": "网游",
  "category": "无畏契约",
  "coverUrl": "https://i0.hdslb.com/bfs/live/new_room_cover/74846eff08948c48c7744d47b97fdf775fc1cc64.jpg",
  "keyframeUrl": "https://i0.hdslb.com/bfs/live-key-frame/keyframe101618100000052363915k9l01.jpg",
  "streamerAvatar": "https://i1.hdslb.com/bfs/face/442b895d10bbce6a5cd5746fc383f27fb06207e0.jpg",
  "verified": true,
  "scrapedAt": "2026-10-16T10:15:19.132854+00:00"
}
```

**Room details**

```json
{
  "type": "liveRoom",
  "roomId": 21452505,
  "url": "https://live.bilibili.com/21452505",
  "title": "冰火盛典 天猫双11Aldol直播盛典",
  "status": "offline",
  "streamerUid": 434334701,
  "streamerUrl": "https://space.bilibili.com/434334701",
  "followers": 1116331,
  "viewers": 0,
  "parentCategory": "虚拟主播",
  "category": "虚拟日常",
  "tags": [
    "七海",
    "海子姐",
    "VirtuaReal"
  ],
  "coverUrl": "https://i0.hdslb.com/bfs/live/new_room_cover/bba1e8302d84dd838708eb60c6fbd6672603e774.jpg",
  "description": "七海Nana7mi ????\n         喜欢戴着鲨鱼头套宅在家里唱歌打游戏。        鼠标：           提升交流能力的方法寻找中   ʕ…",
  "scrapedAt": "2026-10-16T10:15:20.979042+00:00"
}
```

### More China data scrapers

All with English field names, pay-per-result pricing and optional English translation:

- [Bilibili Scraper (all-in-one)](https://apify.com/neronbaez/bilibili-scraper)
- [Bilibili Comments](https://apify.com/neronbaez/bilibili-comments-scraper)
- [Bilibili Danmaku 弹幕](https://apify.com/neronbaez/bilibili-danmaku-scraper)
- [Bilibili Creators UP主](https://apify.com/neronbaez/bilibili-creator-scraper)
- [Bilibili Search](https://apify.com/neronbaez/bilibili-search-scraper)
- [Bilibili Trending](https://apify.com/neronbaez/bilibili-trending-scraper)
- [Bilibili Hot Search 热搜](https://apify.com/neronbaez/bilibili-hot-search-scraper)
- [Weibo Scraper (all-in-one)](https://apify.com/neronbaez/weibo-scraper)
- [Weibo Search](https://apify.com/neronbaez/weibo-search-scraper)
- [Weibo User Posts](https://apify.com/neronbaez/weibo-user-posts-scraper)
- [Weibo Comments](https://apify.com/neronbaez/weibo-comments-scraper)
- [Weibo Hot Search 热搜](https://apify.com/neronbaez/weibo-hot-search-scraper)
- [WeChat Articles 公众号](https://apify.com/neronbaez/wechat-article-scraper)
- [China Trending Topics (6 platforms)](https://apify.com/neronbaez/china-trending-scraper)
- [Douyin Hot Search 抖音热榜](https://apify.com/neronbaez/douyin-hot-search-scraper)
- [Baidu Hot Search](https://apify.com/neronbaez/baidu-hot-search-scraper)
- [Zhihu Hot List](https://apify.com/neronbaez/zhihu-hot-list-scraper)

### Is it legal?

This Actor reads public live-room data shown to every visitor.

### Feedback

Open an issue in the **Issues** tab. Requests usually ship within a few days.

# Actor input Schema

## `categories` (type: `array`):

Category IDs or Chinese names: 2=网游 PC games, 3=手游 mobile games, 6=单机游戏 console, 1=娱乐 entertainment, 9=虚拟主播 VTubers, 10=生活 lifestyle, 11=知识 knowledge, 13=赛事 esports, 5=电台 radio, 14=聊天室 chat, 15=互动玩法 interactive, 16=购物 shopping. Use 'all' for every category.

## `maxRoomsPerCategory` (type: `integer`):

Top rooms, ranked by sort.

## `sortBy` (type: `string`):

Ranking order.

## `roomUrls` (type: `array`):

live.bilibili.com/123 links for full room details (status, followers, tags, description).

## `translateToEnglish` (type: `boolean`):

Adds titleEn, categoryEn, parentCategoryEn. Free.

## `proxyConfiguration` (type: `object`):

Usually not needed.

## Actor input object example

```json
{
  "categories": [
    "2",
    "1"
  ],
  "maxRoomsPerCategory": 30,
  "sortBy": "online",
  "translateToEnglish": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

All scraped items as JSON. Add ?format=csv or ?format=xlsx for other formats.

## `overview` (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 = {
    "categories": [
        "2",
        "1"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("neronbaez/bilibili-live-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 = { "categories": [
        "2",
        "1",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("neronbaez/bilibili-live-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 '{
  "categories": [
    "2",
    "1"
  ]
}' |
apify call neronbaez/bilibili-live-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neronbaez/bilibili-live-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/BMLVyfa9ND6oBW3qV/builds/M9I7rrXrASukmyShH/openapi.json
