YouTube Transcription API
Turn any YouTube video
into text. One API call.
POST a URL from your server, a serverless function or an agent sandbox and get back clean text with timestamped segments. The cloud-IP blocks that break DIY scrapers are handled for you. $3 free credit, no card.
Sign up with Google, GitHub, or email — $3 in credits land instantly. No card. No trial-expiry email.
curl https://api.importly.io/transcribe \
-H "Authorization: Bearer $IMPORTLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"webhookUrl": "https://your.app/webhooks/transcribe"
}'What you don't have to deal with
Scraper 429s and IP bans
We rotate residential proxies per request. You don't have to know how. You just get the transcript.
Caption-format parsing
VTT quirks, auto-caption dedup, timing drift — you get clean text plus timestamped segments, not a subtitle file to parse.
Player breakage
When YouTube changes their player, we ship the fix. You find out from a changelog, not a Sentry alert.
Language detection
Pass a language or let us detect it. Same response shape either way.
Polling infrastructure
Register a webhook and forget it — we call you when the transcript is ready. Polling works too.
Caption-less videos
No captions? Built-in speech-to-text runs through the same endpoint, no STT account needed. Or bring your own AssemblyAI, Deepgram, or OpenAI key.
How it works
1
Get a key
Sign up with Google or GitHub — your API key and $3 credit are ready in under a minute. No card.
2
POST a URL
Send any YouTube link to /transcribe with an optional language and webhook URL.
3
Get text back
Clean transcript text plus timestamped segments, by webhook or polling. From $0.01 per video with captions; $0.02/min for AI transcription — no STT account needed.
Common questions
- What does a transcript cost?
- $0.01 per video when captions exist (nearly all YouTube videos have at least auto-generated ones). For caption-less media, built-in AI transcription is $0.02 per minute — no separate speech-to-text account needed — or $0.01 per minute if you bring your own AssemblyAI, Deepgram, or OpenAI key. Your $3 free credit covers 100–300 captioned videos.
- Do I need my own transcription provider?
- No. YouTube captions are fully managed, and for caption-less videos you can pass provider: "importly" to use our built-in AI transcription — no separate account or key. If you prefer your own AssemblyAI, Deepgram, or OpenAI key, connect it once and we orchestrate it through the same endpoint at a lower per-minute rate.
- Do I get timestamps?
- Yes — the result includes the full text plus segment-level timestamps, ready for subtitles, search indexes, or RAG chunking.
- How fast is it?
- Caption extraction typically completes in a few seconds. Jobs are queued and processed concurrently — send a batch and collect results by webhook.
- What about other platforms?
- The same API imports media from 500+ platforms, and the import endpoint can attach transcripts to any of them.
Stop scraping captions. Ship the transcript feature.
Self-serve. Stop any time. Your $3 credit doesn't expire.