# \[DEPRECATED] Bilibili Scraper - Video Metadata Extractor (`dltik/bilibili-scraper`) Actor

Extrayez les métadonnées de vidéos Bilibili : titre, durée, vues, likes, formats, uploader. Supporte vidéos simples, playlists et batch d'URLs. Aucun téléchargement — données structurées uniquement. Cookies optionnels pour contenu 1080p+.

- **URL**: https://apify.com/dltik/bilibili-scraper.md
- **Developed by:** [Walid](https://apify.com/dltik) (community)
- **Categories:** Developer tools, Automation, Videos
- **Stats:** 11 total users, 6 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 video scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Bilibili Scraper — Video Metadata Extractor (Views, Tags, Playlists)

> Extract **Bilibili video metadata** in bulk: title, duration, views, likes, formats available, uploader, tags, comments count. Supports single videos, playlists, channels, and batch URL input (up to 1,000). Optional cookies for 1080p+ formats. Powered by `yt-dlp` — the most robust video extractor. **$0.001 per video** ($1 per 1,000).

⭐ **Bookmark this Bilibili Scraper** — Apify ranks actors by bookmarks, so it directly helps the visibility of this scraper on the Apify Store.

### What is the Bilibili Scraper?

The **Bilibili Scraper** is an Apify actor that pulls metadata from any [Bilibili](https://www.bilibili.com/) video, playlist, or channel — China's largest community-driven video platform with 300M+ monthly active users. Drop in a list of URLs (videos, playlists, user pages) and get back clean structured JSON: title, duration, view count, likes, comment count, uploader, upload date, tags, available format count + best format quality.

Powered by `yt-dlp`, the most-maintained video extractor — handles Bilibili's varying URL formats (`BV...`, `av...`, `bilibili.com/video/...`, `space.bilibili.com/...`) automatically.

### Use cases

- **Chinese-content research** — analyze Bilibili top creators in tech, anime, gaming, food categories.
- **Cross-platform creator analytics** — combine Bilibili with YouTube data for Asia + Western view of the same creator.
- **Brand monitoring in China** — track which Bilibili creators mention your brand, their reach.
- **Content trend forecasting** — Bilibili trends often predict TikTok/YouTube trends 6-12 months later in Western markets.
- **Influencer marketing in APAC** — find rising Bilibili creators by view velocity.
- **Multi-language video analytics** — Bilibili content + auto-translation pipelines.

### Input

```json
{
  "urls": [
    "https://www.bilibili.com/video/BV1xx411c7XE",
    "https://www.bilibili.com/video/BV1yy411c7YE"
  ],
  "maxResults": 100,
  "extractFlat": false,
  "cookiesString": "(optional Netscape cookies for 1080p+ formats)"
}
```

`extractFlat: true` enables fast playlist mode (returns playlist items without fetching every video's full metadata).

### Output

```json
{
  "url": "https://www.bilibili.com/video/BV1xx411c7XE",
  "id": "BV1xx411c7XE",
  "title": "Example video title",
  "description": "Description body...",
  "duration": 342,
  "upload_date": "2026-01-15",
  "uploader": "Example Channel",
  "uploader_id": "12345678",
  "uploader_url": "https://space.bilibili.com/12345678",
  "view_count": 1500000,
  "like_count": 45000,
  "comment_count": 3200,
  "thumbnail": "https://i0.hdslb.com/...",
  "tags": ["tech", "tutorial"],
  "formats_count": 8,
  "best_format": "mp4/1080p"
}
```

### Pricing

**PAY\_PER\_EVENT — $0.001 per video metadata fetched** (= $1 per 1,000). Failed fetches not charged. Batch up to 1,000 URLs per run with 5 parallel extractions.

### FAQ — Bilibili API alternatives

**Bilibili official API alternative?** Bilibili's official API is undocumented in English and rate-limited. This scraper bypasses with `yt-dlp`, which has the most up-to-date Bilibili extractor.

**Why are some videos in 720p only?** Bilibili gates 1080p+ behind login. Pass a `cookiesString` (Netscape format) to unlock higher resolutions in the metadata.

**Playlist support?** Yes — playlist URLs auto-expand to constituent videos. Set `extractFlat: true` for fast playlist enumeration without fetching every video's full record.

**Does it download files?** No — metadata only. For download, use yt-dlp directly (which supports Bilibili).

**How fast for bulk?** ~3-5 videos per second per actor instance with 5 parallel extractions. For 10K videos, run 4-8 concurrent actor runs.

***

⭐ **Found this Bilibili Scraper useful? Bookmark it** — Apify ranks actors by bookmarks, so it's the strongest single signal for Store visibility.

#### Related actors

- [NicoNico Scraper](https://apify.com/dltik/niconico-scraper) — Japanese equivalent video platform
- [Rumble Scraper](https://apify.com/dltik/rumble-scraper) — alternative video platform with dislikes
- [Kick Scraper](https://apify.com/dltik/kick-scraper) — streaming platform metadata
- [YouTube Transcript Scraper](https://apify.com/dltik/youtube-transcript-scraper) — bulk YouTube transcripts
- [Dailymotion Scraper](https://apify.com/dltik/dailymotion-scraper) — European video platform metadata

License: MIT · Author: [dltik](https://apify.com/dltik)

# Actor input Schema

## `url` (type: `string`):

URL d'une vidéo, playlist ou chaîne Bilibili (ex: https://www.bilibili.com/video/BV1xx411c7XE)

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

Liste d'URLs Bilibili pour traitement batch

## `cookiesString` (type: `string`):

Cookies Netscape pour accès contenu 1080p+ (SESSDATA, bili\_jct). Format: 'domain\tTRUE\t/\tFALSE\t0\tname\tvalue'

## `extractFlat` (type: `boolean`):

Pour les playlists: extrait uniquement les métadonnées de base sans visiter chaque vidéo (plus rapide)

## `maxResults` (type: `integer`):

Nombre maximum de vidéos à retourner (1-1000)

## Actor input object example

```json
{
  "url": "https://www.bilibili.com/video/BV1GJ411x7h7",
  "extractFlat": false,
  "maxResults": 50
}
```

# Actor output Schema

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

Métadonnées structurées de chaque vidéo Bilibili : titre, durée, vues, likes, formats disponibles, uploader.

# 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 = {
    "url": "https://www.bilibili.com/video/BV1GJ411x7h7"
};

// Run the Actor and wait for it to finish
const run = await client.actor("dltik/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 = { "url": "https://www.bilibili.com/video/BV1GJ411x7h7" }

# Run the Actor and wait for it to finish
run = client.actor("dltik/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 '{
  "url": "https://www.bilibili.com/video/BV1GJ411x7h7"
}' |
apify call dltik/bilibili-scraper --silent --output-dataset

```

## MCP server setup

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