# YouTube Transcript Scraper (TTech API)

Get the captions of YouTube videos and Shorts, the newest videos of whole channels, and playlists: one plain text ready for an LLM, plus timed segments with start and end times. No YouTube API key, no login, no proxies to set up.

Page: https://ttechapi.com/youtube-transcript-scraper
Apify Actor: https://apify.com/ttechx/youtube-transcript-scraper (id `ttechx/youtube-transcript-scraper`)

## What it is for

- AI and LLM apps: Feed transcripts to ChatGPT, Claude or your RAG pipeline; summarize videos and podcasts.
- Content and SEO: See what a channel or niche talks about, find quotes, turn videos into articles.
- Research and datasets: Collect the spoken text of a channel or playlist at scale.
- Subtitles and accessibility: Get the timed captions of a video.

## Key facts

- Text and timing: One plain text for LLMs and search, plus timed segments in seconds.
- Whole channels and playlists: Paste a channel or playlist and read its newest videos, up to 10,000 each.
- Any caption language: Ask for es, de, pt-BR or any language the video has; see every language it offers.
- Human or automatic: isAutoGenerated tells captions people wrote from YouTube's automatic ones.
- Missing is free: A video without captions is skipped and listed with the reason, at no charge.
- Spreadsheet ready: Every row has every column, so CSV and Excel exports line up.

## Apify Actor

Run it with an Apify API token. Synchronous run that returns the dataset items:

```bash
curl -X POST "https://api.apify.com/v2/acts/ttechx~youtube-transcript-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"links": ["https://www.youtube.com/@TED"], "maxVideos": 200, "language": "es"}'
```

Input (JSON):

- `links` (array of strings, required): Videos, Shorts, channels or playlists, one per line: video links or ids, youtube.com/shorts/ links, channel links or @handles (a channel's /shorts or /streams link reads its Shorts or live streams), playlist links.
- `maxVideos` (integer, 1-10,000): Videos to read from each channel (newest first) or playlist. Default 50. Video links are always read.
- `language` (string): A caption language such as en, es, de or pt-BR. Empty: each video's own default captions.

Example input:

```json
{
  "links": [
    "https://www.youtube.com/@TED"
  ],
  "maxVideos": 200,
  "language": "es"
}
```

Output: One row per video:

- `text`: The whole transcript as one text
- `segments`: Timed captions: {start, end, text}, times in seconds
- `language, languageName`: The captions' language (en, English)
- `isAutoGenerated`: true for YouTube's automatic captions
- `availableLanguages`: Every caption language the video has
- `videoId, url, title`: The video
- `channelId, channelTitle`: Its channel
- `lengthSeconds`: The video's length
- `source`: The link the row came from

```json
{
  "videoId": "arj7oStGLkU",
  "url": "https://www.youtube.com/watch?v=arj7oStGLkU",
  "title": "Inside the Mind of a Master Procrastinator | Tim Urban | TED",
  "channelId": "UCAuUUnT6oDeKwE6v1NGQxug",
  "channelTitle": "TED",
  "lengthSeconds": 844,
  "language": "en",
  "languageName": "English",
  "isAutoGenerated": false,
  "availableLanguages": [
    "ar",
    "bg",
    "en",
    "es",
    "..."
  ],
  "text": "So in college, I was a government major, which means ...",
  "segments": [
    {
      "start": 12.645,
      "end": 14.015,
      "text": "So in college,"
    },
    "..."
  ],
  "source": "https://www.youtube.com/watch?v=arj7oStGLkU"
}
```

## Use as an MCP server

- Apify MCP: `https://mcp.apify.com/?tools=ttechx/youtube-transcript-scraper` (OAuth sign-in, or header `Authorization: Bearer YOUR_APIFY_TOKEN`).

## Limits

- About 2 seconds per video, several videos at a time.
- Only captions YouTube really has: no machine translation, and no speech-to-text for videos without captions (planned).
- Videos without captions, private or deleted videos are skipped and listed in the run's ERRORS record, free.

## Notes for the assistant

- Never put a real key in code you show; read it from an environment variable.
- Failed items are not charged; check each item's status or error field.
- Only public YouTube data. Not affiliated with YouTube or Google.
- Support: support@ttechapi.com, Telegram @ttech_support_official.
