TTechAPI
Apify

YouTube transcripts for AI, search and research

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.

Open on Apify

What you get

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.

Who 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.

How to use it

  1. Open the Actor on Apify and sign in (a free Apify account works).
  2. Paste YouTube links, one per line: videos, Shorts, channels, @handles or playlists.
  3. Optional: set videos per channel or playlist, and a language.
  4. Click Start, then download JSON, CSV or Excel, or send the rows to n8n, Make or Zapier.

Call it from code

cURL
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"}'

Get your token in Apify Console > Settings > API & Integrations. In n8n, Make or Zapier, use the Apify app and pick this Actor.

Input

FieldTypeWhat it does
linksarray of stringsRequiredVideos, 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.
maxVideosinteger, 1-10,000Videos to read from each channel (newest first) or playlist. Default 50. Video links are always read.
languagestringA caption language such as en, es, de or pt-BR. Empty: each video's own default captions.
Example input
{
  "links": [
    "https://www.youtube.com/@TED"
  ],
  "maxVideos": 200,
  "language": "es"
}

Output

One row per video:

FieldWhat it is
textThe whole transcript as one text
segmentsTimed captions: {start, end, text}, times in seconds
language, languageNameThe captions' language (en, English)
isAutoGeneratedtrue for YouTube's automatic captions
availableLanguagesEvery caption language the video has
videoId, url, titleThe video
channelId, channelTitleIts channel
lengthSecondsThe video's length
sourceThe link the row came from
Example output
{
  "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 it with AI agents

Through Apify the Actor is one tool, ttechx/youtube-transcript-scraper. Pick your assistant:

Run this, then type /mcp in Claude Code and sign in to Apify.

Terminal
claude mcp add --transport http ttech-transcript "https://mcp.apify.com/?tools=ttechx/youtube-transcript-scraper"

No browser sign-in? Add --header "Authorization: Bearer YOUR_APIFY_TOKEN".

Brief for any LLM

Endpoints, inputs, outputs, examples and MCP setup in one Markdown text. Paste it into ChatGPT, Claude or Gemini and ask for the code you need. Also at /youtube-transcript-scraper.md.

Good to know

  • 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.

FAQ

Why is a video missing from my results?

It has no captions, or none in the language you asked for, or it is private or deleted. Each one is listed with its reason, free.

Can it translate captions?

No. You get the languages a video really has, listed in availableLanguages.

Is there a REST endpoint instead of an Actor?

Yes: the YouTube Data API has GET /get_transcript for one video at a time.