# Bilibili Transcript Scraper (`automly/bilibili-transcript-scraper`) Actor

Get the transcript of Bilibili (哔哩哔哩) videos from video links or a creator's page: what is said, as text, timed segments and SRT/VTT subtitles, with the spoken language, plus title, author, views, likes and coins. Every part of multi-part videos. Pay only for videos with speech.

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

## Pricing

from $2.00 / 1,000 transcripts

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 Transcript Scraper

### What is Bilibili Transcript Scraper?

**Bilibili Transcript Scraper** turns **Bilibili (哔哩哔哩) videos into text**. Paste video links or a creator's page link, click **Start**, and get one row per video with **everything that is said in it**: the full transcript in simplified Chinese with punctuation, the transcript in timed parts, ready-made **SRT and VTT subtitles** and the spoken language, next to the video's title, author, length, views, likes, coins, favorites and comments. Download it as Excel, CSV or JSON, or schedule it to transcribe a creator's new videos every day.

- 🗣️ **Full transcripts:** every word spoken (or sung) in the video, as one text and in timed parts
- 🎬 **Subtitles included:** SRT and WebVTT files for every transcript, ready for video editors and players
- 📚 **Multi-part videos:** one part by its link (`?p=2`), or every part (P1, P2, ...) of a series or course
- 👤 **Whole creators or single videos:** the newest videos of a creator, or any video by its link, BV/av id or `b23.tv` share link
- 🎵 **Music-only videos are free:** a video with no speech is saved and marked, and you are not charged for it
- 🔓 **No login:** no Bilibili account, cookies or keys needed

### What can Bilibili Transcript Scraper do?

- Transcribe the **newest videos of many creators** in one run, up to the number you choose per creator
- Transcribe **lectures, courses and series** part by part
- Find out **what creators say**, not just what they write in the title and description
- Get **timed transcripts and subtitle files** to find the moment something is said, or to subtitle the video
- Export to Excel, CSV, JSON, HTML or XML, or send the results to Google Sheets, Make, Zapier and more

### What data can you get from Bilibili videos?

| | | |
|---|---|---|
| 🗣️ Transcript | ⏱️ Timed transcript parts | 🎬 SRT and VTT subtitles |
| 🌍 Spoken language | 📚 Part number and part title | 📝 Title and description |
| ⏱️ Length in seconds | 👀 Views, 👍 likes, 🪙 coins, ⭐ favorites | 💬 Comments, 🔁 shares, 💭 danmaku count |
| 👤 Author name, UID, page link | 🖼️ Cover | 📅 Posted at |

### How to get the transcript of Bilibili videos

1. [Create a free Apify account](https://console.apify.com/sign-up) (no credit card needed).
2. Open **Bilibili Transcript Scraper**.
3. Paste one or more **video links or creator links**, one per line.
4. Choose how many **videos per creator** you want, and whether to transcribe **all parts** of multi-part videos.
5. Click **Start**, then download the results as Excel, CSV, JSON, HTML or XML.

### How much does it cost to transcribe Bilibili videos?

You pay per video with speech; each part of a multi-part video counts as one video. The transcript price includes the first minute of each video; a longer video also pays an **extra minute** for every started minute past the first. Higher Apify plans pay less:

| Apify plan | Per 1,000 transcripts | Per 1,000 extra minutes |
|---|---|---|
| Free | $3.00 | $2.00 |
| Starter (Bronze) | $2.70 | $1.80 |
| Scale (Silver) | $2.40 | $1.60 |
| Business (Gold) and higher | $2.00 | $1.40 |

So a 10-minute video is 1 transcript and 9 extra minutes. Platform usage is included in these prices, so you pay nothing else for the run. There is no start fee.

Example: 1,000 one-minute videos cost $2.70 on Starter, $2.40 on Scale and $2.00 on Business and higher.

Never charged:

- videos with no speech (music only or silence),
- videos longer than your **Longest video to transcribe** (at most 180 minutes),
- links that do not exist and videos whose sound could not be downloaded or transcribed,
- extra minutes of any video that a Free plan run cut to its first minute, and videos the run reached after its free minute was used.

Every Apify account gets **$5 of free usage each month**.

**On the Apify Free plan**, transcripts made from the audio use a lighter, slower method, so expect lower accuracy (more wrong words, most of all in songs and noisy videos), and a run transcribes up to 1 minute of audio: a longer video gets its first minute, and videos past that minute are saved as not transcribed and are not charged. Keep the default 1 GB memory: with less, a Free plan run transcribes no audio. Paid Apify plans get full-accuracy transcripts with no such limit.

### ⬇️ Input

Each line can be a video link (`https://www.bilibili.com/video/BV1LpD3YsETa`), one part of a multi-part video (`...?p=2`), a creator link (`https://space.bilibili.com/389511152`), a `b23.tv` share link, or a bare BV or av id. Mix them freely.

| Setting | What it does |
|---|---|
| Bilibili video or creator links | What to transcribe, one per line |
| Videos per creator | The most videos to transcribe from each creator, newest first (default 10, up to 100) |
| All parts of multi-part videos | Transcribe every part of a multi-part video instead of one part |
| Longest video to transcribe (minutes) | Longer videos are saved without a transcript and not charged (default 60) |

Example:

```json
{
  "urls": [
    "https://www.bilibili.com/video/BV1LpD3YsETa",
    "https://space.bilibili.com/389511152"
  ],
  "videosPerCreator": 10,
  "allParts": false,
  "maxDurationMinutes": 60
}
```

A single link in `videoUrl` works too, as in other Bilibili transcript tools.

### ⬆️ Output

You get one row per video (one per part for multi-part videos). View them as a table in Apify Console or download them as Excel, CSV, JSON, HTML or XML.

```json
{
  "id": "BV1LpD3YsETa",
  "aid": "113433492066506",
  "url": "https://www.bilibili.com/video/BV1LpD3YsETa",
  "title": "【教学】b站视频 手机怎么分集分p ?",
  "publishedAt": "2024-11-06T11:59:02Z",
  "durationSeconds": 106,
  "views": 107778,
  "likes": 1881,
  "coins": 238,
  "favorites": 2132,
  "shares": 347,
  "comments": 5582,
  "danmakuCount": 16,
  "authorName": "爱听歌の人机",
  "authorId": "389511152",
  "authorUrl": "https://space.bilibili.com/389511152",
  "part": 1,
  "partTitle": "100粉解锁此功能 这是去年视频直接看顶置评论说明吧",
  "partCount": 2,
  "transcriptStatus": "transcribed",
  "transcriptSource": "speech",
  "transcriptLanguage": "zh",
  "transcript": "今天教大家在手机客户端上怎么做分级。有些人在稿件管理这边是找不到添加分级的，那么该怎么办呢？首先，先点我的。……",
  "transcriptSegments": [
    {"start": 0.15, "end": 8.64, "text": "今天教大家在手机客户端上怎么做分级。有些人在稿件管理这边是找不到添加分级的，那么该怎么办呢？"},
    {"start": 11.97, "end": 13.53, "text": "首先，先点我的。"}
  ],
  "srt": "1\n00:00:00,150 --> 00:00:03,472\n今天教大家在手机客户端上怎么做分级。\n...",
  "vtt": "WEBVTT\n\n00:00:00.150 --> 00:00:03.472\n今天教大家在手机客户端上怎么做分级。\n...",
  "input": "https://www.bilibili.com/video/BV1LpD3YsETa",
  "scrapedAt": "2026-11-01T13:54:59Z"
}
```

`transcriptStatus` tells you what happened with each video:

| Status | Meaning | Charged |
|---|---|---|
| `transcribed` | Speech (or sung words) was found; `transcript` has it | Yes |
| `no_speech` | Instrumental music, sounds or silence only; `transcript` is empty | No |
| `too_long` | Longer than **Longest video to transcribe**; raise it to transcribe the video | No |
| `audio_unavailable` | The video's sound could not be read this time; run it again later | No |

Each run also saves a short report: how many videos had speech, and any link that does not exist.

### How can I use Bilibili transcripts?

- **Content research:** read what top Bilibili creators in your niche say, video by video
- **Learning and lectures:** turn courses and long talks into searchable notes
- **Market research in China:** follow how brands, games, products and trends are talked about
- **Repurposing and translation:** turn videos into articles, scripts or subtitles in another language
- **Search and analysis:** load transcripts into spreadsheets, databases or search tools to compare creators and topics

### Use it from your code

Run the actor from your own code with the [Apify API](https://docs.apify.com/api/v2) or the Python and JavaScript clients:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("automly/bilibili-transcript-scraper").call(run_input={
    "urls": ["https://space.bilibili.com/389511152"],
    "videosPerCreator": 10,
})
for video in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(video["url"], video["transcriptLanguage"], video["transcript"])
```

### Use with assistants and agents (MCP)

Connect any MCP-compatible assistant or agent to the Apify MCP server at https://mcp.apify.com (sign in with your Apify account), and it can find this actor, fill in the input and read the results by itself. Ask in plain words, for example *"Get the transcripts of the last 10 videos of this Bilibili creator"*, and the agent runs `automly/bilibili-transcript-scraper` with an input like `{"urls": ["https://space.bilibili.com/..."], "videosPerCreator": 10}`. Agent runs cost the same as runs you start yourself.

### ❓FAQ

#### How accurate are the transcripts?

Clear Mandarin comes out close to word for word, with punctuation, in simplified characters. Accuracy drops with loud background music, several people talking at once, game sound, strong dialects and heavy accents. Words sung in a song are transcribed like speech.

#### Which languages are supported?

The spoken language is detected for each video, and the transcript is in that language (it is not translated). Mandarin comes out best; English, Cantonese, Japanese, Korean and other common languages work too.

#### Is the transcript the same as the danmaku or the description?

No. The description is the text the creator wrote under the video, and danmaku are viewers' comments over the video. The transcript is what is said in the video.

#### How are multi-part videos handled?

A link to one part (`?p=2`) gives that part. A link without a part gives the first part, and the run's report says how many parts the video has. Turn on **All parts of multi-part videos** to get one row per part.

#### How long can a video be?

Up to the **Longest video to transcribe** you set (60 minutes by default, up to 180). Longer videos are saved without a transcript and you are not charged for them.

#### What happens with music-only videos?

Videos with only instrumental music, sound effects or silence are saved with `transcriptStatus` set to `no_speech` and an empty transcript, and you are not charged for them.

#### How long does it take?

A few seconds per video, and several videos are transcribed at the same time. Long videos take longer.

#### What happens with a link that does not exist?

It is skipped and listed in the run's report as not found. The run still finishes successfully and you are not charged for it.

#### Do I need a Bilibili account?

No. You don't need a Bilibili account, cookies or keys.

#### Can I connect Bilibili Transcript Scraper to other tools?

Yes. Start runs and download results with the Apify API or the Python and JavaScript clients, send results to Make, Zapier, n8n, Google Sheets or Slack with Apify integrations and webhooks, or let agents run it through the Apify MCP server at [mcp.apify.com](https://mcp.apify.com).

#### Is it legal to transcribe Bilibili videos?

This tool only processes videos that people chose to show publicly. It does not collect private data such as email addresses or phone numbers. Videos and their transcripts can still contain personal data, which may be protected by laws such as GDPR and China's PIPL, and videos are protected by copyright, so use the transcripts for a legitimate reason such as research, and ask a lawyer if you are unsure. You can read more in [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

Bilibili Transcript Scraper is an independent tool. It is not affiliated with, endorsed by or sponsored by Bilibili.

#### Something isn't working. What should I do?

Open the **Issues** tab and tell us the link and what you expected. We usually reply within a day.

### Scrape more Bilibili data

| Actor | What you get |
|---|---|
| [Bilibili Scraper](https://apify.com/automly/bilibili-scraper) | Video search, video details, creators, comments with replies, danmaku and trending lists |

### ⭐ Your feedback

Ideas, missing fields or problems: open the **Issues** tab and we'll take a look. If Bilibili Transcript Scraper saved you time, a short review on the **Reviews** tab helps other people find it.

# Actor input Schema

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

Bilibili video links or creator links, one per line, e.g. https://www.bilibili.com/video/BV1LpD3YsETa, https://www.bilibili.com/video/BV1LpD3YsETa?p=2 (one part of a multi-part video), https://space.bilibili.com/389511152 or a b23.tv share link. Bare BV or av ids work too. A video link gives that video's transcript; a creator link gives the transcripts of the creator's newest videos.

## `videosPerCreator` (type: `integer`):

How many of each creator's newest videos to transcribe, e.g. 10. Not used for video links.

## `allParts` (type: `boolean`):

Transcribe every part (P1, P2, ...) of a multi-part video. When off, a link gives its own part (?p=2), or the first part.

## `maxDurationMinutes` (type: `integer`):

Videos (or parts) longer than this are saved without a transcript and not charged, e.g. 60. Raise it up to 180 (3 hours) for long streams and lectures.

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

Leave the default.

## Actor input object example

```json
{
  "urls": [
    "https://www.bilibili.com/video/BV1LpD3YsETa"
  ],
  "videosPerCreator": 10,
  "allParts": false,
  "maxDurationMinutes": 60,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `details` (type: `string`):

No description

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

No description

## `report` (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 = {
    "urls": [
        "https://www.bilibili.com/video/BV1LpD3YsETa"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/bilibili-transcript-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 = {
    "urls": ["https://www.bilibili.com/video/BV1LpD3YsETa"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automly/bilibili-transcript-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 '{
  "urls": [
    "https://www.bilibili.com/video/BV1LpD3YsETa"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automly/bilibili-transcript-scraper --silent --output-dataset

```

## MCP server setup

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