YouTube Transcript API - Instant Transcripts & Timestamps avatar

YouTube Transcript API - Instant Transcripts & Timestamps

Pricing

$0.80 / 1,000 per video transcript returneds

Go to Apify Store
YouTube Transcript API - Instant Transcripts & Timestamps

YouTube Transcript API - Instant Transcripts & Timestamps

Get any YouTube video's transcript in one HTTP request: plain text, timestamped segments, language, auto-generated flag and video metadata, straight back in the response. Works from code, n8n, Make, Zapier and AI agents (MCP). Charged only when a transcript is returned.

Pricing

$0.80 / 1,000 per video transcript returneds

Rating

0.0

(0)

Developer

Top Api

Top Api

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

4 days ago

Last modified

Features

Limited permissionsMulti-tenantServer interface

Share

🎬 YouTube Transcript API - Instant Transcripts & Timestamps

YouTube Transcript API returns the transcript of any YouTube video in one HTTP request: send a video link, get the transcript back in the response. No run to start, no dataset to fetch, no polling. It is an Apify Server Actor, so it also works as a tool for AI agents (MCP) and as a single HTTP Request step in n8n, Make or Zapier.

Each answer carries the transcript as plain text and as timestamped segments, the caption language and whether it is auto-generated, every other caption language the video offers, and the video's title, channel, duration, views, likes and publish date. You pay only when a transcript comes back. A video without captions answers 404 and costs nothing.

✨ What you get

  • 📝 Full transcript as plain text, plus timestamped segments (start, duration, end, text)
  • 🌍 Any caption language: pick your preferred languages in order, fall back to whatever exists
  • 🤖 Auto-generated (ASR) or human captions, flagged on every answer; YouTube's rolling ASR redraws are removed, so no line appears twice
  • 🎞️ SRT and WebVTT subtitle files on request
  • 📊 Video metadata: title, channel name / id / URL, duration, views, likes, publish and upload date, category, keywords, description, thumbnail
  • 🗂️ Every caption language the video offers (availableLanguages)
  • ⚡ Real-time: answered directly over HTTP, about 1-2 s for a typical video
  • 🧠 MCP endpoint for AI agents (Claude, ChatGPT, Cursor and any MCP client): tool get_transcript
  • 🔑 No YouTube API key, no login, no cookies

🚀 How to call it

Every request needs your Apify API token (Console > Settings > API & Integrations) in the Authorization header.

GET

curl "https://topapi--youtube-transcript-api.apify.actor/transcript?video=https://www.youtube.com/watch?v=dQw4w9WgXcQ" \
-H "Authorization: Bearer <YOUR_APIFY_TOKEN>"

POST

curl -X POST "https://topapi--youtube-transcript-api.apify.actor/transcript" \
-H "Authorization: Bearer <YOUR_APIFY_TOKEN>" -H "Content-Type: application/json" \
-d '{"video": "dQw4w9WgXcQ", "languages": ["es", "en"], "includeSrt": true}'

Python

import requests
r = requests.get(
"https://topapi--youtube-transcript-api.apify.actor/transcript",
params={"video": "https://youtu.be/dQw4w9WgXcQ", "languages": "en"},
headers={"Authorization": "Bearer <YOUR_APIFY_TOKEN>"},
timeout=120,
)
data = r.json()
if r.status_code == 200:
print(data["items"][0]["transcript"][:500])
else:
print(r.status_code, data["error"]["type"], data["error"]["message"])

JavaScript

const res = await fetch(
'https://topapi--youtube-transcript-api.apify.actor/transcript?video=dQw4w9WgXcQ',
{ headers: { Authorization: `Bearer ${process.env.APIFY_TOKEN}` } },
);
const data = await res.json();
console.log(res.status, data.items?.[0]?.wordCount);

n8n, Make, Zapier

Add an HTTP Request step: method GET, URL https://topapi--youtube-transcript-api.apify.actor/transcript, query parameter video = the video link, header Authorization = Bearer <YOUR_APIFY_TOKEN>. The transcript is items[0].transcript in the response.

AI agents (MCP)

MCP server URL: https://topapi--youtube-transcript-api.apify.actor/mcp (Streamable HTTP, header Authorization: Bearer <YOUR_APIFY_TOKEN>). It exposes one tool, get_transcript, with the same parameters as the HTTP endpoint. You can also add the actor through Apify's own MCP server, mcp.apify.com.

⚙️ Parameters

ParameterTypeDefaultWhat it does
videostringrequiredYouTube video URL (watch, youtu.be, /shorts/, /live/, /embed/, m. and music. hosts) or the 11-character video id. Also accepted as url, videoUrl, videoId, id, v.
languageslistenPreferred caption languages in order, as language codes (en, es, pt-BR). Comma-separated in a query string.
fallbackToAnyLanguagebooleantrueWhen none of your languages exists, return the first caption track the video has. false answers 404 instead.
preferAutoGeneratedbooleanfalsePrefer the auto-generated (ASR) track over a human-made one in the same language.
includeSegmentsbooleantrueTimestamped segments.
includeSrtbooleanfalseThe transcript as an SRT subtitle file.
includeVttbooleanfalseThe transcript as a WebVTT subtitle file.
includeVideoMetadatabooleantruePublish date, upload date, category and like count (one extra lookup; false is a little faster).

GET / lists the endpoints and parameters; .actor/openapi.json (the Server tab in Console) describes them in OpenAPI 3.

📦 Response

{
"ok": true,
"count": 1,
"items": [{
"videoId": "dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"channelName": "Rick Astley",
"durationSeconds": 213,
"transcriptStatus": "ok",
"language": "English",
"languageCode": "en",
"isAutoGenerated": false,
"transcript": "[♪♪♪] ♪ We're no strangers to love ♪ ...",
"segmentCount": 61,
"wordCount": 487,
"segments": [{ "start": 1.36, "duration": 1.68, "end": 3.04, "text": "[♪♪♪]" }],
"availableLanguages": [
{ "languageCode": "en", "languageName": "English", "kind": "manual" },
{ "languageCode": "en", "languageName": "English (auto-generated)", "kind": "asr" }
]
}],
"meta": { "charged": { "transcript-scraped": 1 }, "ms": 1080 }
}
FieldFilled (14-video test corpus, 13 with captions)
videoId, videoUrl, title, channelName, channelId, channelUrl, durationSeconds, viewCount, thumbnailUrl100%
transcript, segments, segmentCount, wordCount, language, languageCode, isAutoGenerated, availableLanguages100%
publishedAt, uploadedAt, category, likeCount, description100%
keywordswhen the uploader set them
srt, vttwhen asked for

🧾 Status codes (and what is charged)

HTTPerror.typeMeaningCharged
200Transcript returnedYes, once
400invalid-input, translation-unavailableNot a YouTube video, a bad parameter, or translateTo (see limits)No
404no-captionsThe video publishes no captionsNo
404no-transcript-in-requested-languageCaptions exist, not in your languages, and fallbackToAnyLanguage is false. error.video.availableLanguages lists what existsNo
404video-unavailablePrivate, deleted or region-locked videoNo
429too-many-requestsMore than 8 of your requests in flight at once; wait for one to finishNo
503blocked, unreachable, transcript-fetch-failedYouTube refused or did not answer in time; retryNo

A 404 answer still carries error.video (title, channel, available languages), free.

💰 Pricing

$0.0008 per transcript returned ($0.80 per 1,000), pay per event. Nothing is charged for 400, 404, 429 or 503 answers, and there is no start fee. Apify's free plan works too.

🗃️ Batch runs (input interface)

You can also start the actor as a normal run with a list of videos, playlists, channels or search terms. Each video becomes one dataset row (charged per row, like any batch scraper). Use that for thousands of videos at once; use the HTTP endpoint for one video at a time.

⏱️ Speed (measured on Apify, 2026-11-18)

  • A typical video (500-3,000 words): 1.1-1.9 s
  • A 9,840-word transcript (a 1 h lecture): 3-6.6 s
  • First request after a quiet spell: add a few seconds while the server starts
  • 8 requests in parallel: all answered, 0.9-5.8 s each

⚠️ Limits

  • Machine translation (translateTo) is not available. YouTube refuses translated caption files to signed-out clients (HTTP 429 on every exit we tried, 2026-11-18). Ask for an original caption language with languages; a request with translateTo answers 400 and is not charged.
  • Videos without captions have no transcript to return (404, free). This actor does not do speech-to-text.
  • One video per request. For many videos at once, use a batch run.

❓ FAQ

Do I need a YouTube API key?

No. The actor reads YouTube's own caption files, signed out. You only need your Apify token.

What does one request cost?

$0.0008 when a transcript is returned. Errors and videos without captions are free.

How fast is it?

About 1-2 s for a typical video once the server is warm (measured on Apify). The first request after a quiet spell takes a few seconds longer.

Can I get the transcript in a specific language?

Yes: languages=es,en tries Spanish first, then English. With fallbackToAnyLanguage=false you get a 404 instead of a different language.

Can it translate a transcript?

Not at the moment: YouTube refuses machine-translated caption files to signed-out clients. The request answers 400 and is free.

Does it work for YouTube Shorts and live replays?

Yes, /shorts/ and /live/ links work when the video publishes captions.

Are auto-generated captions included?

Yes. isAutoGenerated tells you which kind you got, and preferAutoGenerated picks the ASR track when both exist.

How do I use it from an AI agent?

Point any MCP client at https://topapi--youtube-transcript-api.apify.actor/mcp with your Apify token, or add the actor through mcp.apify.com. The tool is get_transcript.

How do I use it in n8n or Make?

One HTTP Request step, GET, with video as a query parameter and your token in the Authorization header.

Can I process a whole playlist or channel?

Yes, with a batch run (the input interface): give playlist or channel links and get one dataset row per video.

What happens if YouTube blocks a request?

You get a 503 and are not charged. Retrying usually works: the actor already retries on fresh residential exits.

Your feedback

Found a video that should work and does not? Open an issue on the actor page with the video link.