YouTube Transcript API
Extract YouTube transcripts programmatically. Captions first, cached when available, with AI fallback and JSON responses built for apps.
YouTube transcript API answers
The API facts developers usually need before reading the full reference.
Does TubeScript have a YouTube transcript API?
Yes. The Team plan includes API access for programmatic YouTube transcript extraction, with JSON responses, timestamps, metadata, and 100 API requests per day.
Does TubeScript use YouTube captions or AI first?
TubeScript checks YouTube captions first. Manual captions are preferred, then auto-generated captions. AI transcription is only used when no usable caption track is available.
How fast is TubeScript?
Cached transcripts are usually returned almost instantly. Fresh captioned videos typically finish in seconds. Videos without captions take longer because they require AI audio transcription.
Can TubeScript transcribe a video with no captions?
Yes, for many public videos. If YouTube does not provide usable captions, TubeScript can fall back to AI audio transcription. That path is slower than caption extraction and can fail for restricted, too-long, or temporary capacity-limited videos.
Built for developers
The TubeScript API lets you extract transcripts from YouTube videos programmatically. Send a POST request with a YouTube URL, and receive a JSON response containing the full transcript text, individual timestamped segments, video metadata, and optional AI-generated outputs.
The API is designed for building content tools, research platforms, accessibility features, and internal applications that need YouTube transcript data. It handles caption extraction, cache lookups, AI fallback, and text formatting so your code does not have to.
Endpoint reference
/v1/transcriptSubmit a YouTube URL for transcription. Returns the full transcript with timestamps and metadata.
Request Body
Response
Code examples
Pricing and limits
API frequently asked questions
What format does the API return?
The API returns JSON with timestamped transcript segments, video metadata, caption source, word count, read time, cache status, and a public transcript permalink.
Is there a free tier for the API?
The API is available on the Team plan ($24.99/month) which includes 100 API requests per day. There is no free API tier, but you can use the web interface for free to test transcript quality before subscribing.
What authentication does the API use?
The API uses bearer token authentication. You'll receive an API key when you subscribe to the Team plan. Include it in the Authorization header of each request.
What are the rate limits?
The Team plan includes 100 API requests per day. Each request processes one YouTube video. Rate limits reset at midnight UTC. Contact us for custom enterprise limits.
Can I use the API for commercial purposes?
Yes. The Team plan license allows commercial use, including building products and internal tools on top of the TubeScript API. You may not resell raw API access to third parties.
How long does a request take?
Cached caption transcripts can return quickly. New videos depend on video length and caption availability; if no usable captions exist, TubeScript falls back to AI audio transcription.
Do long videos fail if they already have captions?
No. The strict long-video limit mainly applies to the no-caption AI fallback path. If a long public video has usable manual or auto captions, the API should use the caption track instead of processing the full audio through AI.
What does AI_FALLBACK_CAPACITY_EXHAUSTED mean?
It means the no-caption AI fallback path is temporarily out of Gemini capacity. Retry later with backoff. Captioned videos can still succeed because they do not need the AI fallback path.
More ways to get transcripts
YouTube Transcript Generator
Generate timestamped transcripts from public YouTube videos with captions-first speed.
YouTube Transcript Tools
Transcript, summary, study notes, highlights, exports, and API workflows in one hub.
Download YouTube Transcript
Download transcripts as TXT or SRT files for offline use.
YouTube Transcript Not Available
Fix missing transcript buttons, no-caption videos, and unavailable YouTube transcripts.
Free YouTube Transcript
Get 2 free transcripts per day with no account required.
YouTube to Text
Convert YouTube videos into readable, searchable text.
YouTube Shorts Transcript
Extract transcripts from YouTube Shorts — no transcript button needed.
YouTube Video Summarizer
Get AI-powered summaries and key points from any video.
Start building with the API
Get your API key today with the Team plan. 100 requests per day, JSON responses, cache-backed transcript reads, and AI summaries included.
View Pricing