# YouTube Transcript Scraper & API: Video Subtitles to Text (`plainrows/youtube-transcript-scraper`) Actor

YouTube transcript scraper, API and MCP tool: get the transcript of any video or Short as clean text plus timestamped lines, from manual or auto subtitles, in any language, with optional translation. Paste links or IDs. Pay per transcript, plus a small start fee per run.

- **URL**: https://apify.com/plainrows/youtube-transcript-scraper.md
- **Developed by:** [PlainRows](https://apify.com/plainrows) (community)
- **Categories:** Videos, AI, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.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/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 Transcript Scraper & API: Video Subtitles to Text

A **YouTube transcript scraper** for scripts, automations and AI agents: give it **video links or IDs**, get **one row per video** with the **full transcript as clean text**, its **word count, language and duration**, and the **timestamped subtitle lines**. Manual subtitles or YouTube's automatic captions, **in any language**, with optional **automatic translation** (e.g. a Spanish video in English).

It calls a commercial data API instead of scraping YouTube from datacenter IPs: **no YouTube API key, no proxies, no blocked requests on your side**. Up to ten videos are read at a time, about 10 seconds each. **Videos without a transcript are free.**

### Typical uses

- **AI and RAG**: feed video transcripts to an LLM for summaries, Q\&A, notes or embeddings.
- **Content repurposing**: turn videos into blog posts, newsletters, social posts or quotes with a time link.
- **Research**: analyse what creators, competitors or experts say across many videos (keywords, mentions, topics).
- **Captions and translation**: get the timestamped lines in the original language or translated.
- **Exports**: send the rows to Google Sheets, Notion, BigQuery, Slack, n8n, Make or Zapier.

### What you get for each video

| Field | Description |
|---|---|
| `videoId`, `videoUrl`, `title` | The video, its link and its title |
| `text` | The whole transcript as one clean text (lines joined, line breaks removed) |
| `wordCount`, `segmentCount`, `durationSeconds` | Words, subtitle lines, end time of the last line in seconds |
| `language`, `translatedTo` | Language of the subtitles read; language of the translation when `translateTo` is set |
| `segments` | Timestamped lines: `start`, `end` (seconds) and `text` (turn off with `includeTimestamps: false`) |
| `found`, `notFoundReason`, `note` | `true` for a billed transcript; free rows say why (`no-transcript`, `no-speech`, `provider-no-answer`) and what to try |
| `input`, `observedAt` | The video as you gave it, and when it was read |

Text is returned as YouTube serves it: automatic captions have no punctuation fixes, and music videos may contain `[Music]` or `♪` marks. A video whose subtitles hold only such marks, with no spoken words, gets a free `no-speech` row.

### Input

```json
{
  "videos": ["https://www.youtube.com/watch?v=jNQXAC9IVRw", "dQw4w9WgXcQ"],
  "language": "en",
  "translateTo": "",
  "includeTimestamps": true
}
```

- **videos** (required): up to 500 per run, one per line: `youtube.com/watch?v=…`, `youtu.be/…`, `/shorts/…`, `/live/…` links or 11-character IDs. Duplicates are removed; channel and playlist links are not accepted.
- **language** (default `en`): the language of the subtitles to read, as a YouTube code (`en`, `es`, `de`, `fr`, `ja`, `ko`, `pt-BR`, `zh-Hans`...). Use the language spoken in the videos: there is no automatic detection, and a video without subtitles in that language returns a free row.
- **translateTo** (optional): a language code to get YouTube's automatic translation of the transcript, at the same price.
- **includeTimestamps** (default `true`): adds the `segments` list.

### Pricing

Pay per event, no subscription:

- **Transcript**: $0.007 per video transcript returned.
- **Actor start**: $0.002 per run.

So 100 transcripts cost $0.702. Videos without subtitles in the language asked, videos that do not exist or are private, requests YouTube does not answer, invalid links and duplicates get a free row (or are listed in the run summary) and are not charged: you pay only the $0.002 start fee for a run with no transcript. The run never spends more than the maximum cost you set.

**Free Apify plan:** each run reads the first 3 videos, 5 runs a day, so you can check the output. A paid Apify plan removes this limit.

### Good to know

- Pick the right `language`: a German video asked in `en` has no English subtitles unless its creator added them. Ask it in `de`, and add `"translateTo": "en"` to read it in English.
- If many videos in a row have no transcript, the run stops starting new ones (free rows for the rest) so a wrong language does not burn your budget; fix the language and run them again.
- Long videos cost the same: a 4-hour course returned its whole transcript (2,935 lines, about 50,000 words) in one row, for one transcript fee.
- Shorts and live replays work when YouTube has captions for them. Videos with captions turned off have no transcript.

### What this is not

- Not an official YouTube API, and not affiliated with or endorsed by YouTube or Google.
- Not speech-to-text: it reads the subtitles YouTube already has (manual or automatic). A video without any captions returns a free row.
- Not a video downloader, and no comments: for comments use [YouTube Comments Scraper](https://apify.com/plainrows/youtube-comments-scraper); to find videos by keyword use [YouTube Search Scraper](https://apify.com/plainrows/youtube-search-scraper) first.

### Run summary

Each run stores a summary in the key-value store (`OUTPUT`): videos submitted and read, transcripts billed, videos with no transcript, requests YouTube did not answer, duplicates and invalid values (with the reason, e.g. `NOT_A_VIDEO_LINK`), and anything skipped because of the free-plan or budget limit.

### Use it from code, automations or AI agents

**API (one call, results returned directly):**

```bash
curl -X POST "https://api.apify.com/v2/acts/plainrows~youtube-transcript-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"videos": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"]}'
```

**n8n, Make, Zapier:** use the Apify integration, pick `plainrows/youtube-transcript-scraper` and send each transcript to your LLM step, Notion or Google Sheets.

**AI agents (MCP tool):** add `https://mcp.apify.com?tools=plainrows/youtube-transcript-scraper` to Claude, Cursor or any MCP client, then ask "Get the transcript of https://youtu.be/jNQXAC9IVRw and summarize it".

### FAQ

**How do I get the transcript of a YouTube video?**
Paste its link or ID and run: you get the full text plus timestamped lines, ready for an LLM, Excel, Google Sheets or JSON.

**Does it work with auto-generated captions?**
Yes. Manual subtitles are read when they exist, else YouTube's automatic captions.

**Can I get a transcript in another language?**
Yes: set `language` to the spoken language and `translateTo` to the language you want.

**Do I pay for videos without a transcript?**
No. They get a free `found: false` row with the reason.

**Do I need a YouTube API key?**
No. No API key, no quota, no Google account.

### For AI agents

- **Use when:** you need the transcript (subtitles as text, with timestamps) of one or more YouTube videos or Shorts, in the original language or translated.
- **Do not use for:** finding videos by keyword (use plainrows/youtube-search-scraper), comments (use plainrows/youtube-comments-scraper), speech-to-text of videos without captions.
- **Input JSON (minimal):** `{"videos": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"]}`; for a non-English video add `"language": "es"` (spoken language) and optionally `"translateTo": "en"`.
- **Output fields:** `input`, `found`, `notFoundReason`, `note`, `videoId`, `videoUrl`, `title`, `language`, `translatedTo`, `text`, `wordCount`, `segmentCount`, `durationSeconds`, `segments`, `observedAt`, `schemaVersion`
- **Price per result:** $0.007 per `transcript-result`, plus $0.002 per run; videos without a transcript are free
- **Median run time:** 19 s for 3 videos, a 4-hour video included (measured before publication)
- **Success rate (30 days):** no public run in the last 30 days

### More PlainRows tools

Same pay-per-result pricing, same clean JSON, built to chain together in n8n, Make, Zapier or AI agents.

- **SEO and keywords:** [Keyword Search Volume, CPC & Difficulty](https://apify.com/plainrows/keyword-search-volume) · [Keyword Planner Alternative (Bulk Search Volume & CPC)](https://apify.com/plainrows/keyword-planner-alternative) · [Google Keyword Planner API (Google Ads Search Volume & CPC)](https://apify.com/plainrows/google-keyword-planner-api) · [Google Autocomplete & People Also Ask](https://apify.com/plainrows/google-autocomplete-questions) · [Google Trends Explorer](https://apify.com/plainrows/google-trends-explorer) · [Google Trends Keyword Discovery (Rising & Related)](https://apify.com/plainrows/google-trends-keyword-discovery) · [Website Organic Traffic & Top Keywords](https://apify.com/plainrows/domain-seo-overview) · [Competitor Keywords API (Ranked Keywords)](https://apify.com/plainrows/competitor-keywords-api) · [Bulk Website Traffic Checker](https://apify.com/plainrows/website-traffic-checker) · [PPC Competitor Keywords (SpyFu Alternative)](https://apify.com/plainrows/ppc-competitor-keywords) · [Bulk Domain Authority Checker](https://apify.com/plainrows/domain-authority-checker) · [Backlink Checker](https://apify.com/plainrows/backlink-checker) · [Backlink API (Referring Domains & Backlinks Data)](https://apify.com/plainrows/backlink-api) · [Broken Link Checker](https://apify.com/plainrows/broken-link-checker) · [SEO Audit API (On-Page SEO Checker)](https://apify.com/plainrows/seo-audit-api) · [AI Search Visibility Tracker (ChatGPT, Gemini, AI Mode)](https://apify.com/plainrows/ai-search-brand-visibility) · [AI Overview Tracker (Google AI Overview Citations)](https://apify.com/plainrows/ai-overview-tracker) · [Perplexity Search API (Answers & Citations)](https://apify.com/plainrows/perplexity-search-api) · [ChatGPT Search Scraper (Answers & Citations)](https://apify.com/plainrows/chatgpt-search-scraper) · [Google AI Mode API (Answers & Citations)](https://apify.com/plainrows/google-ai-mode-api) · [Gemini Search Scraper (Answers & Citations)](https://apify.com/plainrows/gemini-search-scraper) · [AI Citations Finder (LLM Mentions in ChatGPT & AI Overviews)](https://apify.com/plainrows/ai-citations-finder) · [Keyword Rank Checker (Google SERP Position)](https://apify.com/plainrows/keyword-rank-checker) · [Google Search API (SERP Scraper & Web Results)](https://apify.com/plainrows/google-search-api)
- **Leads and companies:** [Google Maps Scraper](https://apify.com/plainrows/google-maps-businesses) · [Google Maps Email Extractor](https://apify.com/plainrows/google-maps-email-extractor) · [Google Maps Businesses Without Website](https://apify.com/plainrows/google-maps-no-website-leads) · [Yellow Pages Australia Scraper](https://apify.com/plainrows/yellowpages-au-scraper) · [Website Technology Checker](https://apify.com/plainrows/website-tech-stack) · [Website Email Extractor](https://apify.com/plainrows/website-email-extractor) · [Contact Details Scraper (Emails, Phones, Socials)](https://apify.com/plainrows/contact-details-scraper) · [ATS Jobs Scraper (Workday, Greenhouse, Lever, Ashby)](https://apify.com/plainrows/ats-job-postings) · [Workday Jobs Scraper](https://apify.com/plainrows/workday-jobs-scraper) · [Greenhouse Jobs Scraper](https://apify.com/plainrows/greenhouse-jobs-scraper) · [Lever Jobs Scraper](https://apify.com/plainrows/lever-jobs-scraper) · [Ashby Jobs Scraper](https://apify.com/plainrows/ashby-jobs-scraper) · [Google Jobs Scraper](https://apify.com/plainrows/google-jobs-scraper) · [Reed.co.uk Jobs Scraper (UK)](https://apify.com/plainrows/reed-jobs-scraper) · [jobs.ch & jobup.ch Jobs Scraper (Switzerland)](https://apify.com/plainrows/jobs-ch-scraper) · [Arbeitsagentur Jobs Scraper (Germany)](https://apify.com/plainrows/arbeitsagentur-jobs-scraper) · [Gupy Jobs Scraper (Brazil)](https://apify.com/plainrows/gupy-jobs-scraper) · [Catho Jobs Scraper (Brazil)](https://apify.com/plainrows/catho-jobs-scraper) · [Vagas.com.br Jobs Scraper (Brazil)](https://apify.com/plainrows/vagas-jobs-scraper) · [Jobs.cz Scraper (Czech Republic)](https://apify.com/plainrows/jobs-cz-scraper) · [Remote Jobs Scraper (Himalayas, RemoteOK, Jobicy)](https://apify.com/plainrows/remote-jobs-aggregator) · [Google Ads Scraper (Transparency Center)](https://apify.com/plainrows/google-ads-transparency) · [Company Registry Lookup (SIRENE, LEI, Brreg)](https://apify.com/plainrows/company-registry-lookup) · [Public Tenders Search (EU TED & UK)](https://apify.com/plainrows/public-tenders-search)
- **E-commerce and travel:** [Amazon Product Search Scraper](https://apify.com/plainrows/amazon-product-search) · [Amazon Keyword Research (Search Volume & Reverse ASIN)](https://apify.com/plainrows/amazon-keyword-research) · [Google Shopping Prices Scraper](https://apify.com/plainrows/google-shopping-prices) · [Google Hotels Prices Scraper](https://apify.com/plainrows/google-hotels-prices) · [Google Hotels Scraper](https://apify.com/plainrows/google-hotels-scraper) · [Tripadvisor Reviews Scraper](https://apify.com/plainrows/tripadvisor-reviews) · [Trustpilot Reviews Scraper](https://apify.com/plainrows/trustpilot-reviews)
- **Marketplaces and classifieds:** [Property Finder Scraper (UAE)](https://apify.com/plainrows/propertyfinder-scraper) · [Redfin Scraper (US Homes for Sale)](https://apify.com/plainrows/redfin-scraper) · [Otomoto Scraper (Polish Car Listings)](https://apify.com/plainrows/otomoto-scraper) · [Otodom Scraper (Poland Property)](https://apify.com/plainrows/otodom-scraper) · [Imovirtual Scraper (Portugal Property)](https://apify.com/plainrows/imovirtual-scraper) · [Standvirtual Scraper (Portugal Cars)](https://apify.com/plainrows/standvirtual-scraper) · [Immoweb Scraper (Belgium Property)](https://apify.com/plainrows/immoweb-scraper) · [Blocket Scraper (Sweden)](https://apify.com/plainrows/blocket-scraper) · [FINN.no Scraper (Norway)](https://apify.com/plainrows/finn-scraper) · [coches.net Scraper (Spain Cars)](https://apify.com/plainrows/coches-net-scraper) · [2dehands Scraper (Belgium)](https://apify.com/plainrows/2dehands-scraper) · [Storia Scraper (Romania Property)](https://apify.com/plainrows/storia-scraper) · [Autovit Scraper (Romania Cars)](https://apify.com/plainrows/autovit-scraper) · [FINN.no Car Scraper (Norway Cars)](https://apify.com/plainrows/finn-cars-scraper) · [DBA Scraper (Denmark)](https://apify.com/plainrows/dba-scraper) · [Tori.fi Scraper (Finland)](https://apify.com/plainrows/tori-scraper)
- **Content and media:** [Google News Scraper](https://apify.com/plainrows/google-news-scraper) · [YouTube Search Scraper](https://apify.com/plainrows/youtube-search-scraper) · [YouTube Search API (JSON)](https://apify.com/plainrows/youtube-search-api) · [YouTube Comments Scraper](https://apify.com/plainrows/youtube-comments-scraper) · [Google Images Scraper](https://apify.com/plainrows/google-images-scraper) · [Website Screenshot API](https://apify.com/plainrows/website-screenshot) · [PDF to Markdown Converter (PDF to Text for AI & RAG)](https://apify.com/plainrows/pdf-to-markdown) · [Google Maps Reviews Scraper](https://apify.com/plainrows/google-maps-reviews) · [Google Reviews Scraper](https://apify.com/plainrows/google-reviews-scraper) · [App Store & Google Play Reviews Scraper](https://apify.com/plainrows/app-reviews-scraper) · [App Store & Google Play App Details Scraper](https://apify.com/plainrows/app-details-scraper) · [Google Play Reviews Scraper](https://apify.com/plainrows/google-play-reviews-scraper) · [App Store Reviews Scraper](https://apify.com/plainrows/app-store-reviews-scraper)

### Support

Missing a field or found a bug? Open an issue on this page. Issues are read and answered.

# Actor input Schema

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

One per line: a YouTube video link (youtube.com/watch?v=…, youtu.be/…, /shorts/…, /live/…) or an 11-character video ID, e.g. https://www.youtube.com/watch?v=jNQXAC9IVRw or jNQXAC9IVRw. The url and videoId columns of PlainRows YouTube Search Scraper work as they are. Channel and playlist links are not accepted. Up to 500 videos per run.

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

Language of the subtitles to read, as a YouTube language code, e.g. "en", "es", "de", "ja", "pt-BR". Use the language spoken in the videos: a video without subtitles in this language returns a free row (nothing charged). Manual subtitles first, else YouTube's automatic captions.

## `translateTo` (type: `string`):

Language code to get YouTube's automatic translation of the transcript, e.g. "en" to read a Spanish video in English. Same price. Leave empty for the original.

## `includeTimestamps` (type: `boolean`):

Adds a "segments" list (start and end time in seconds, text) to each transcript, for captions, chapters or quotes with a time link. Turn off to get the plain text only.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "language": "en",
  "includeTimestamps": true
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "videos": [
        "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    ],
    "language": "en"
};

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

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

```

## MCP server setup

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