# Bilibili TV Scraper (Global) (`myagizm/bilibili-tv-scraper`) Actor

Login-less Bilibili TV / Bilibili Intl (bilibili.tv) metadata (EN/TH/VI/ID/MS): video search, video detail, series and episode detail. Limitations documented in README. No login or media downloads.

- **URL**: https://apify.com/myagizm/bilibili-tv-scraper.md
- **Developed by:** [MYM](https://apify.com/myagizm) (community)
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 result items

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?

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 TV Scraper (Global)

Login-less data from Bilibili TV / Bilibili Intl (bilibili.tv) via a private scraping backend — this Actor is a thin bridge and contains no scraping code.

### Modes

| Mode | Input | Output |
|---|---|---|
| `search` | `keyword`, `pages` (≤10) | mixed video + series rows: title, url, cover, view text, duration text, uploader |
| `video_detail` | `videos` (play URL / aid) | title, description, cover, duration, published, view text, like count, uploader with follower/video counts |
| `series_detail` | `series` (media URL / season id), `episodes` | series row (title, total episodes, type, views) plus one row per episode when `episodes=true` |

### Options

- `locale`: `en` (default), `th`, `vi`, `id`, `ms` — selects title/description language; unsupported values fall back to English.
- `episodes`: set false to get only the series row without episode rows.

### Known limitations (measured, 2026-09-20)

- All three modes work login-less from our network — no proxy needed.
- View counts on search/detail rows come back as display strings (e.g. "1.2M") where the API provides no number; like counts are numeric.
- Search pages mix videos and series in one result.
- No login, no media files, no subtitle download.

### Input

See the Input tab — the schema mirrors the backend contract 1:1. Invalid input fails the run immediately, before any scraping.

### Output

One dataset item per video / series / episode. Run notes (per-input errors and the limits above) are printed to the run log and stored in the `STATS` value, not billed as items.

# Actor input Schema

## `mode` (type: `string`):

search: videos and series by keyword. video\_detail: full metadata per video. series\_detail: series metadata plus its episode list.

## `keyword` (type: `string`):

Keyword for search mode (English or any supported language). Required when mode=search.

## `videos` (type: `array`):

Bilibili TV video references for video\_detail: bilibili.tv play URLs or numeric aids.

## `series` (type: `array`):

Bilibili TV series references for series\_detail: bilibili.tv media/detail URLs or season ids.

## `episodes` (type: `boolean`):

series\_detail only: also emit one row per episode.

## `locale` (type: `string`):

Response language for titles and descriptions. Unsupported values fall back to English.

## `pages` (type: `integer`):

Pages to fetch for search (~20 results per page).

## Actor input object example

```json
{
  "mode": "search",
  "videos": [],
  "series": [],
  "episodes": true,
  "locale": "en",
  "pages": 1
}
```

# Actor output Schema

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

All scraped items as structured JSON.

# 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 = {
    "videos": [],
    "series": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("myagizm/bilibili-tv-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 = {
    "videos": [],
    "series": [],
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,myagizm/bilibili-tv-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/6XudPz2J4Zxajtg9v/builds/IIHRsM4uhevdP3lcD/openapi.json
