YouTube Transcript & Subtitles Scraper + AI Fallback avatar

YouTube Transcript & Subtitles Scraper + AI Fallback

Pricing

from $2.00 / 1,000 transcript from captions

Go to Apify Store
YouTube Transcript & Subtitles Scraper + AI Fallback

YouTube Transcript & Subtitles Scraper + AI Fallback

Get YouTube transcripts and subtitles in bulk. Videos with no captions are transcribed with AI automatically. Returns the spoken language, plain text, timestamped segments and optional video details (title, channel, views). Ready for n8n, Make, LLMs and RAG.

Pricing

from $2.00 / 1,000 transcript from captions

Rating

0.0

(0)

Developer

yTranscript API

yTranscript API

Maintained by Community

Actor stats

0

Bookmarked

8

Total users

1

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Get transcripts of YouTube videos in bulk, including videos that have no captions. Paste video links or IDs and get back clean text plus timestamped segments in the language actually spoken. Optionally add each video's title, channel, views and other details at no extra charge.

Why this scraper

  • Works on videos without captions. When a video has no captions, it's transcribed with AI speech-to-text automatically, in the same run. Most transcript scrapers return nothing for these videos.
  • Correct language. You get the language actually spoken by default, including on YouTube's auto-dubbed videos, which list a dozen or more dubbed caption tracks. Set a language to fetch a specific caption track instead.
  • Reliable. Requests go through the yTranscript API, which handles YouTube's bot detection and IP blocking with multiple fallback routes.
  • Video details included. Turn on one option to get the title, channel, publish date, duration, views, likes, tags, chapters and description in the same row. No second scraper, no extra charge.
  • Failed videos cost nothing. Private, removed, or invalid videos come back as clearly labeled error rows, and you're never charged for them.

Input

FieldDescription
YouTube videosVideo URLs (watch, youtu.be, shorts, embed, live) or 11-character video IDs. Duplicates are removed automatically.
Language (optional)Caption language code such as en or es. Leave empty to get each video's original language. A video with no captions in that language is transcribed with AI in the language actually spoken (charged as AI; see lang).
Include timestamped segmentsAdds a segments array with start time, duration, and text. On by default.
Include video detailsAdds the title, channel, publish date, duration, views, likes, tags, category, chapters, thumbnail and description to each row. Off by default. No extra charge.
Max concurrencyHow many videos to fetch at once, from 1 to 5.

Output

One row per video:

{
"videoId": "L9R64Q2E2lQ",
"url": "https://www.youtube.com/watch?v=L9R64Q2E2lQ",
"status": "success",
"language": "en",
"source": "captions",
"text": "hi there it has been a very very long time since I released the pattern...",
"characterCount": 86900,
"segments": [
{ "start": 2.76, "duration": 4.679, "text": "hi there it has been a very very long" }
]
}

source is captions when the text came from YouTube's captions, or ai-transcription when the video had none and was transcribed with AI.

A row has a notice only when its transcript isn't in the language you chose: the video has no captions in that language and AI transcription couldn't run, so these are the video's default captions, and notice says why.

With Include video details on, each row also has:

{
"title": "Design Patterns Revisited",
"channelName": "Example Channel",
"channelHandle": "@examplechannel",
"channelUrl": "https://www.youtube.com/@examplechannel",
"channelId": "UCxxxxxxxxxxxxxxxxxxxxxx",
"channelSubscribers": 125000,
"publishedAt": "2024-05-01T10:00:00-07:00",
"durationSeconds": 5400,
"viewCount": 482113,
"likeCount": 9120,
"category": "Education",
"tags": ["design patterns", "software"],
"chapters": [{ "start": 0, "title": "Intro" }, { "start": 90, "title": "Why patterns" }],
"thumbnailUrl": "https://i.ytimg.com/vi/L9R64Q2E2lQ/maxresdefault.jpg",
"description": "In this talk..."
}

Subscriber and like counts are rounded the way YouTube shows them. When YouTube limits what it shows for a video, durationSeconds, tags and category can be null; the transcript is not affected.

Failed videos look like this:

{ "videoId": "abc123xyz00", "status": "error", "errorCode": "no_transcript", "error": "No transcript available for this video." }

Error codes: invalid_input, no_transcript (private, removed, age-restricted, or no speech), temporarily_unavailable (YouTube was blocking us; the actor already retried for several minutes, so run the video again later), fetch_failed.

Pricing

You pay per successful transcript:

  • Transcript from captions: a flat price per video, shown on the Pricing tab
  • AI transcription (videos without captions): a price per minute of audio, rounded up to the next minute, shown on the Pricing tab. A 10-minute video is charged 10 minutes.

Video details are included in the price of the transcript. Failed and invalid videos are free. If you set a maximum cost for a run, the scraper stops cleanly when it's reached and doesn't charge anything past it. An AI transcript that wouldn't fit in what's left of the budget isn't delivered or charged.

Use cases

  • Feeding video content to ChatGPT, Claude, or your own LLM pipeline
  • Research and content analysis across many videos
  • Search, subtitles, and accessibility
  • Repurposing videos into blog posts, notes, and summaries

Integrations

Export results as JSON, CSV, or Excel, or connect them to Make, Zapier, n8n, Google Sheets, and webhooks through Apify integrations. For direct API access from your own code or from AI tools like Claude and Cursor, see ytranscript.com/developers.

Feedback

Found a video that didn't work, or want a field added? Open an issue on the Issues tab and it usually gets fixed within days. If the scraper saved you time, a review on its Store page helps other people find it.