Call the transcript API
One Bearer API key, four lines of code to fetch transcripts, video metadata, or channel data. Successful requests deduct credits; failed requests (any non-200) are always free.
Fetch your first transcript
Choose your preferred language or tool to fetch timestamped subtitles for any YouTube video:
curl "https://api.ytapi.dev/v1/transcripts/dQw4w9WgXcQ?lang=en" \ -H "Authorization: Bearer yta_YOUR_KEY"
Response example
200 OK
{ "video_id": "dQw4w9WgXcQ", "lang": "en", "is_auto_generated": false, "is_translated": false, "segments": [ { "start": 0.0, "duration": 4.2, "text": "Welcome to this introduction to Cloudflare Workers." }, { "start": 4.2, "duration": 3.1, "text": "Today we will explore modern edge computing." } ] }
Every response carries x-request-id — quote it in support requests. Cache hits return x-cache: HIT and are billed like any successful call.