# YouTube Video Transcript Scraper (`scrapearchitect/youtube-video-transcript-scraper`) Actor

📝 YouTube Video Transcript Scraper – Instantly extract multilingual transcripts from any YouTube video in multiple formats (📄 VTT, 🧾 JSON, 📜 TTML, and more)! Perfect for language learners, content creators, researchers, and devs! 🌍🎥💬

- **URL**: https://apify.com/scrapearchitect/youtube-video-transcript-scraper.md
- **Developed by:** [Scrape Architect](https://apify.com/scrapearchitect) (community)
- **Categories:** Videos, Social media, Other
- **Stats:** 42 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

## 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

***

## 🎬 YouTube Video Transcript Scraper 📜

### 🎥 Overview

Want to **scrape transcripts** from YouTube videos? This is your go-to tool!

The **YouTube Video Transcript Scraper** 📝 allows you to easily extract **transcripts** from YouTube videos in various **languages**. Whether you're working with educational content, interviews, or music videos, this actor lets you pull the transcript data in **minutes**. Perfect for research, analysis, or archiving video content!

⚡ Get transcriptions in multiple languages and formats, and streamline your workflow!

***

### 🧩 Key Features

🌍 **Global Language Support**\
✔️ Scrapes transcripts in **multiple languages** (Afrikaans, Bengali, Dutch, Finnish, French, etc.)\
✔️ Available in **json3**, **srv1**, **ttml**, and **vtt** formats

🔗 **Easy Video Input**\
✔️ Accepts **YouTube video URLs** for easy scraping\
✔️ Simply provide a **video URL** and let it do the rest!

📝 **Accurate Transcript Data**\
✔️ Pull **complete transcript** with timing and translations\
✔️ Transcripts for **multiple languages** available per video

📂 **Flexible Output**\
✔️ Quick access to video data such as **title**, **thumbnail**, and **transcript** links\
✔️ Download in the format you need – **json3**, **srv1**, **ttml**, or **vtt**

***

### ⚙️ Input Configuration

Just feed in your video URL and get the transcript! Here’s how you can configure the input:

```json
{
  "video_urls": [
    {
      "url": "https://www.youtube.com/watch?v=2VLqZtded_0",
      "method": "GET"
    }
  ]
}
```

📌 **Fields Explained**

| Field        | Description                    |
|--------------|--------------------------------|
| `video_urls` | 📹 List of YouTube video URLs  |
| `method`     | 🔄 HTTP method (usually `GET`) |

***

### 📤 Output Example

You’ll receive detailed transcript data with all the languages available:

```json
[
  {
    "original_url": "https://www.youtube.com/watch?v=2VLqZtded_0",
    "title": "Maher Zain & Harris J - Qalbi Fil Madinah | Official Music Video | قلبي في المدينة",
    "thumbnail": "https://i.ytimg.com/vi_webp/2VLqZtded_0/maxresdefault.webp",
    "Transcript": {
      "Afrikaans": {
        "json3": {
          "ext": "json3",
          "url": "https://www.youtube.com/api/timedtext?v=2VLqZtded_0&ei=_1r6Z_jzH7zWy_sP3MaQkA0&lang=af&fmt=json3",
          "language": "Afrikaans"
        },
        ...
      },
      "Bengali": {
        "json3": {
          "ext": "json3",
          "url": "https://www.youtube.com/api/timedtext?v=2VLqZtded_0&ei=_1r6Z_jzH7zWy_sP3MaQkA0&lang=bn&fmt=json3",
          "language": "Bengali"
        },
        ...
      },
      ...
    }
  }
]
```

🧾 Each record includes:

- 🎬 `original_url`: YouTube video URL
- 📷 `thumbnail`: Video thumbnail
- 📝 `Transcript`: Links to transcripts in **multiple formats** and languages

***

### 🧪 How It Works

1️⃣ Input YouTube video URL\
2️⃣ Select the preferred formats (json3, srv1, ttml, vtt)\
3️⃣ Get your transcript data in **seconds**\
4️⃣ Download and enjoy!

***

### 🛠️ Use Cases

💻 **Researchers** – Quickly extract subtitles or transcripts for analysis\
🎓 **Educators** – Archive or share educational video transcripts\
🗣️ **Language Learners** – Download transcriptions to improve language skills\
🔍 **Content Creators** – Scrape and repurpose video transcripts for blogs, captions, and more!

***

### 🔐 Privacy & Security

🔒 Powered by Apify’s secure platform\
🌍 Proxy-friendly (residential recommended)\
⚙️ No need for YouTube API keys or tokens – just a URL!

***

### 🧩 Related Tools

🔗 [YouTube Video Scraper](https://apify.com/scrapearchitect/youtube-video-scraper) – Extract video data and metadata\
🔗 [YouTube Playlist Scraper](https://apify.com/scrapearchitect/youtube-playlist-scraper) – Scrape entire playlists for videos and transcripts

***

### ✉️ Need Help? Custom Version?

Want to scrape additional data or need a custom solution?

📧 Email me at <scrapearchitect@gmail.com> for tailored solutions.

***

### 🎬 Try It Now!

Start scraping **YouTube video transcripts** today with ease! 📜📹

***

# Actor input Schema

## `video_urls` (type: `array`):

Enter one or more YouTube video URLs (for long videos, shorts, or YouTube Kids).

## Actor input object example

```json
{
  "video_urls": [
    {
      "url": "https://www.youtube.com/watch?v=2VLqZtded_0"
    },
    {
      "url": "https://www.youtube.com/watch?v=kUMe1FH4CHE"
    },
    {
      "url": "https://www.youtubekids.com/watch?v=k85mRPqvMbE"
    },
    {
      "url": "https://www.youtube.com/shorts/zPxQjuFoUBc"
    }
  ]
}
```

# 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 = {
    "video_urls": [
        {
            "url": "https://www.youtube.com/watch?v=2VLqZtded_0"
        },
        {
            "url": "https://www.youtube.com/watch?v=kUMe1FH4CHE"
        },
        {
            "url": "https://www.youtubekids.com/watch?v=k85mRPqvMbE"
        },
        {
            "url": "https://www.youtube.com/shorts/zPxQjuFoUBc"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapearchitect/youtube-video-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 = { "video_urls": [
        { "url": "https://www.youtube.com/watch?v=2VLqZtded_0" },
        { "url": "https://www.youtube.com/watch?v=kUMe1FH4CHE" },
        { "url": "https://www.youtubekids.com/watch?v=k85mRPqvMbE" },
        { "url": "https://www.youtube.com/shorts/zPxQjuFoUBc" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scrapearchitect/youtube-video-transcript-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "video_urls": [
    {
      "url": "https://www.youtube.com/watch?v=2VLqZtded_0"
    },
    {
      "url": "https://www.youtube.com/watch?v=kUMe1FH4CHE"
    },
    {
      "url": "https://www.youtubekids.com/watch?v=k85mRPqvMbE"
    },
    {
      "url": "https://www.youtube.com/shorts/zPxQjuFoUBc"
    }
  ]
}' |
apify call scrapearchitect/youtube-video-transcript-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapearchitect/youtube-video-transcript-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/uZC9H3QaUPYVTQajN/builds/tbLhVz9eUYMeQQBzn/openapi.json
