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

YouTube Video Transcript Scraper: paste video links or IDs, or a channel, and get each video's transcript from YouTube's captions: full text, timed segments, language, title, channel, date and length. No login. Export to JSON, CSV or Excel.

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

## Pricing

from $0.99 / 1,000 video 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

## YouTube Video Transcript Scraper

### What is YouTube Video Transcript Scraper?

**YouTube Video Transcript Scraper** lets you **get the transcript of any public YouTube video or Short** from YouTube's own captions, as clean text and as timed segments, together with the video's title, channel, publish date and length. Paste video links or IDs, or add a channel to get its latest videos, click **Start**, and download the transcripts as JSON, CSV or Excel.

- 📝 **Full text and timestamps:** the whole transcript as one text, plus every line with its start time and duration
- 🌍 **Any language:** choose the language you want, with an English or original-language fallback
- 🤖 **Creator or automatic captions:** every row says which one you got
- 📺 **Videos, Shorts and channels:** a list of videos, or a channel's latest uploads
- 💸 **Pay only for transcripts:** videos without captions are saved but not charged
- 🔓 **No login:** no YouTube account, cookies or API key needed

### What can YouTube Video Transcript Scraper do?

- Get the **transcript of any public YouTube video** or Short from its link or video ID
- Get transcripts of a **channel's latest videos** (up to 100 per run)
- Tell you whether each transcript was **written by the creator or generated automatically**
- Add the video's **title, channel, publish date, length** and live-stream flag
- Export to Excel, CSV, JSON, HTML or XML, or send the results to Google Sheets, Make, Zapier and more

### What data can you extract from YouTube videos?

| | | |
|---|---|---|
| 📝 Transcript text | ⏱️ Timed segments | 🌍 Transcript language |
| 🤖 Automatic or creator captions | 🎬 Video title | 📺 Channel name, ID and link |
| 📅 Publish date | ⏳ Length | 🔴 Live stream flag |

### How to get a YouTube video transcript

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open **YouTube Video Transcript Scraper**.
3. Paste one or more YouTube video links or IDs, or add a channel.
4. Choose the transcript language (for example `en` or `es`).
5. Click **Start**, and download the transcripts when the run finishes.

### How much does it cost to get YouTube transcripts?

You pay only for the videos that have a transcript:

| Apify plan | Price per 1,000 transcripts |
|---|---|
| Free | $0.99 |
| Bronze | $0.99 |
| Silver | $0.99 |
| Gold, Platinum, Diamond | $0.99 |

Example: 1,000 transcripts cost $0.99, and one transcript costs a tenth of a cent. Each run also costs $0.001 to start.

Videos without captions are saved with their details but no transcript, and are not charged. Every Apify account gets **$5 of free usage each month**, and you can set a maximum cost per run.

### ⬇️ Input

| Setting | What it does |
|---|---|
| **YouTube video links or IDs** | One video per line: `https://www.youtube.com/watch?v=dQw4w9WgXcQ`, `https://youtu.be/dQw4w9WgXcQ`, a Shorts or live link, or the ID alone (`dQw4w9WgXcQ`) |
| **Channels** | Optional: get the transcripts of a channel's latest videos, e.g. `https://www.youtube.com/@TED` |
| **Max videos from channels** | How many of the channels' latest videos to get in total (1-100); the videos you list are always included |
| **Transcript language** | Two-letter code of the transcript you want, e.g. `en`, `es`, `de` |
| **Include timed segments** | Add every line with its start time and duration next to the full text |

Transcripts of two videos and the latest 10 videos of a channel:

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://youtu.be/arj7oStGLkU"
  ],
  "channelUrls": ["https://www.youtube.com/@TED"],
  "maxResults": 10,
  "language": "en"
}
```

A video listed twice is read once. If you used another YouTube video transcript scraper, your saved input works here too: `youtube_url`, `channel_url` and `max_videos` are understood.

### ⬆️ Output

Every video is one row:

```json
{
  "videoId": "dQw4w9WgXcQ",
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "source": "videoUrl",
  "sourceRef": null,
  "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
  "channelName": "Rick Astley",
  "channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
  "channelUrl": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw",
  "publishedAt": "2009-10-24T23:57:33-07:00",
  "durationSeconds": 213,
  "isLive": false,
  "captionStatus": "available",
  "transcriptText": "[♪♪♪] ♪ We're no strangers to love ♪ ♪ You know the rules\nand so do I ♪ ♪ A full commitment's\nwhat I'm thinking of ♪ ...",
  "transcriptLanguage": "en",
  "isAutoGenerated": false,
  "transcriptCharCount": 2089,
  "segmentCount": 61,
  "transcriptSegments": [
    {"start": 1.36, "duration": 1.68, "text": "[♪♪♪]"},
    {"start": 18.64, "duration": 3.24, "text": "♪ We're no strangers to love ♪"}
  ],
  "transcriptSource": "captions",
  "speechStatus": null,
  "transcriptNote": null,
  "fetchedAt": "2026-11-14T15:01:21Z",
  "hasTranscript": true
}
```

The **Transcripts** tab shows the main columns; download the dataset for every field. `captionStatus` says why a video has no transcript: `unavailable` (no captions), `disabled` (captions turned off), `video_unavailable` or `age_restricted`.

### How can I use YouTube transcripts?

- **Content repurposing:** turn videos into blog posts, newsletters, social posts and show notes
- **Research and analysis:** search, quote and analyze what was said across many videos
- **AI and LLM workflows:** feed transcripts to summarizers, chatbots and knowledge bases
- **SEO:** find the keywords and topics the top videos in your niche talk about
- **Accessibility:** get the text of a video for people who prefer reading

### Scrape more YouTube and social media data

| Actor | What it gets |
|---|---|
| [YouTube Transcript Scraper](https://apify.com/automly/youtube-transcript-scraper) | Transcripts of YouTube videos, Shorts, channels and searches, also for videos without captions |
| [YouTube Scraper](https://apify.com/automly/youtube-scraper) | YouTube videos, Shorts and live streams from search, channels, playlists and links |
| [YouTube Video Details Scraper](https://apify.com/automly/youtube-video-details-scraper) | Full details of any YouTube video from its link or ID |
| [YouTube Shorts Scraper](https://apify.com/automly/youtube-shorts-scraper) | Shorts from channels, search terms and Shorts links with views, likes and comments |

### ❓FAQ

#### Which videos have a transcript?

Videos with captions: the creator's own or YouTube's automatic ones, which most spoken videos in common languages have. New uploads, music videos and videos in some languages often have none. Those rows are saved with the video's details, `hasTranscript` false, and are not charged. For transcripts of videos without captions, use [YouTube Transcript Scraper](https://apify.com/automly/youtube-transcript-scraper).

#### What if the video has no transcript in my language?

You get its English captions, or else its original-language ones; `transcriptLanguage` tells you which.

#### Do I need a YouTube account?

No. The scraper reads the same public videos and captions anyone can see without signing in.

#### Can I connect YouTube Video Transcript Scraper to other tools or AI agents?

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 AI assistants and agents run it through the Apify MCP server at [mcp.apify.com](https://mcp.apify.com).

#### Is it legal to scrape YouTube transcripts?

This scraper only collects public data that anyone can see on YouTube without signing in. Transcripts are the creators' content, so respect copyright when you reuse them, 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/)

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

#### Something isn't working?

Open the **Issues** tab with your input and what you expected, or ask for a field you need. We read every one and usually reply within a day.

### ⭐ Your feedback

Have an idea or found a problem? Tell us in the **Issues** tab. If YouTube Video Transcript Scraper saved you time, a short review on the **Reviews** tab helps other people find it.

# Actor input Schema

## `videoUrls` (type: `array`):

Videos to get transcripts for, e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ, https://youtu.be/dQw4w9WgXcQ, a Shorts or live link, or just the 11-character ID dQw4w9WgXcQ. One per line; a video listed twice is read once.

## `channelUrls` (type: `array`):

Get the transcripts of a channel's latest videos, newest first, e.g. https://www.youtube.com/@TED or @TED.

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

How many of the channels' latest videos to get in total, e.g. 10 (1-100). Videos you list above are always included.

## `language` (type: `string`):

Two-letter language code of the transcript you want, e.g. en, es, de. When a video has no captions in this language you get its English captions, or else its original-language ones; transcriptLanguage tells you which.

## `includeSegments` (type: `boolean`):

Add the transcript as timed segments (start, duration, text) next to the full text.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://youtu.be/arj7oStGLkU",
    "K5KVEU3aaeQ"
  ],
  "maxResults": 10,
  "language": "en",
  "includeSegments": true
}
```

# Actor output Schema

## `overview` (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 = {
    "videoUrls": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/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 = { "videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"] }

# Run the Actor and wait for it to finish
run = client.actor("automly/youtube-video-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 '{
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ]
}' |
apify call automly/youtube-video-transcript-scraper --silent --output-dataset

```

## MCP server setup

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