YouTube Transcript API

API ID 13178

Fetch YouTube video transcripts as JSON, SRT, or VTT with video metadata included. List caption languages, and resolve entire playlists or channels into video lists. Fast, reliable, all-inclusive.

API Documentation

Endpoints

Request

Extracts the full transcript of a YouTube video and returns it as structured JSON: timed segments with text, start and duration, plus the complete concatenated plain text. Every response includes video metadata (title, channel, channel ID, duration in seconds, view count), the caption kind (manual or auto-generated), and whether the requested language was matched. Pass a video_id and optionally a lang code such as en, es or de. If the video has no captions the API returns a clean NO_CAPTIONS error code instead of an ambiguous empty response.

Endpoint ID: 26729
GET https://docs.zylalabs.com/api/13178/youtube+transcript+api/26729/get+transcript+json
INPUT PARAMETERS

Get Transcript JSON — Endpoint Features

Object Description
video_id Required YouTube video ID — the part after watch?v= in the video URL. Example: dQw4w9WgXcQ
lang Optional Optional caption language code (en, es, de, fr...). Defaults to the best available track. Example: en

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

video_id
lang
API EXAMPLE RESPONSE
JSON
{"video_id":"dQw4w9WgXcQ","lang":"en","kind":"manual","requested_lang_matched":null,"video":{"title":"Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)","channel":"Rick Astley","channel_id":"UCuAXFkgsw1L7xaCfnd5JJOw","duration_sec":213,"view_count":1791582068},"segments":[{"start_ms":1360,"duration_ms":1680,"text":"[♪♪♪]"},{"start_ms":18640,"duration_ms":3240,"text":"♪ We're no strangers to love ♪"},{"start_ms":22640,"duration_ms":4320,"text":"♪ You know the rules\nand so do I ♪"},{"start_ms":27040,"duration_ms":4000,"text":"♪ A full commitment's\nwhat I'm thinking of ♪"},{"start_ms":31120,"duration_ms":3960,"text":"♪ You wouldn't get this\nfrom any other guy ♪"},{"start_ms":35160,"duration_ms":4360,"text":"♪ I just wanna tell you\nhow I'm feeling ♪"},{"start_ms":40520,"duration_ms":2400,"text":"♪ Gotta make you understand ♪"},{"start_ms":43000,"duration_ms":2120,"text":"♪ Never gonna give you up ♪"},{"start_ms":45200,"duration_ms":1880,"text":"♪ Never gonna let you down ♪"},{"start_ms":47320,"duration_ms":3800,"text":"♪ Never gonna run around\nand desert you ♪"},{"start_ms":51480,"duration_ms":2000,"text":"♪ Never gonna make you cry ♪"},{"start_ms":53600,"duration_ms":1920,"text":"♪ Never gonna say goodbye ♪"},{"start_ms":55720,"duration_ms":3640,"text":"♪ Never gonna tell a lie\nand hurt you ♪"},{"start_ms":60800,"duration_ms":4000,"text":"♪ We've known each other\nfor so long ♪"},{"start_ms":64880,"duration_ms":4160,"text":"♪ Your heart's been aching\nbut you're too shy to say it ♪"},{"start_ms":69120,"duration_ms":3840,"text":"♪ Inside we both know\nwhat's been going ♪"},{"start_ms":73360,"duration_ms":3840,"text":"♪ We know the game\nand we're gonna play it ♪"},{"start_ms":77400,"duration_ms":4640,"text":"♪ And if you ask me\nhow I'm feeling ♪"},{"start_ms":82400,"duration_ms":2840,"text":"♪ Don't tell me\nyou're too blind to see ♪"},{"start_ms":85320,"duration_ms":1960,"text":"♪ Never gonna give you up ♪"},{"start_ms":87360,"duration_ms":1960,"text":"♪ Never gonna let you down ♪"},{"start_ms":89440,"duration_ms":4280,"text":"♪ Never gonna run around\nand desert you ♪"},{"start_ms":93800,"duration_ms":1800,"text":"♪ Never gonna make you cry ♪"},{"start_ms":95760,"duration_ms":2240,"text":"♪ Never gonna say goodbye ♪"},{"start_ms":98080,"duration_ms":3960,"text":"♪ Never gonna tell a lie\nand hurt you ♪"},{"start_ms":102200,"duration_ms":1920,"text":"♪ Never gonna give you up ♪"},{"start_ms":104280,"duration_ms":2080,"text":"♪ Never gonna let you down ♪"},{"start_ms":106480,"duration_ms":3600,"text":"♪ Never gonna run around\nand desert you ♪"},{"start_ms":110760,"duration_ms":1960,"text":"♪ Never gonna make you cry ♪"},{"start_ms":112800,"duration_ms":1880,"text":"♪ Never gonna say goodbye ♪"},{"start_ms":114960,"duration_ms":3800,"text":"♪ Never gonna tell a lie\nand hurt you ♪"},{"start_ms":119840,"duration_ms":3120,"text":"♪ (Ooh, give you up) ♪"},{"start_ms":123720,"duration_ms":3640,"text":"♪ (Ooh, give you up) ♪"},{"start_ms":128480,"duration_ms":1640,"text":"♪ Never gonna give,\nnever gonna give ♪"},{"start_ms":130240,"duration_ms":1320,"text":"♪ (Give you up) ♪"},{"start_ms":132480,"duration_ms":1760,"text":"♪ Never gonna give,\nnever gonna give ♪"},{"start_ms":134360,"duration_ms":1560,"text":"♪ (Give you up) ♪"},{"start_ms":136760,"duration_ms":4320,"text":"♪ We've known each other\nfor so long ♪"},{"start_ms":141200,"duration_ms":4000,"text":"♪ Your heart's been aching\nbut you're too shy to say it ♪"},{"start_ms":145280,"duration_ms":3840,"text":"♪ Inside we both know\nwhat's been going ♪"},{"start_ms":149520,"duration_ms":3680,"text":"♪ We know the game\nand we're gonna play it ♪"},{"start_ms":153360,"duration_ms":4680,"text":"♪ I just wanna tell you\nhow I'm feeling ♪"},{"start_ms":158640,"duration_ms":2680,"text":"♪ Gotta make you understand ♪"},{"start_ms":161400,"duration_ms":1960,"text":"♪ Never gonna give you up ♪"},{"start_ms":163440,"duration_ms":2200,"text":"♪ Never gonna let you down ♪"},{"start_ms":165720,"duration_ms":4000,"text":"♪ Never gonna run around\nand desert you ♪"},{"start_ms":169800,"duration_ms":1840,"text":"♪ Never gonna make you cry ♪"},{"start_ms":171800,"duration_ms":2160,"text":"♪ Never gonna say goodbye ♪"},{"start_ms":174040,"duration_ms":3560,"text":"♪ Never gonna tell a lie\nand hurt you ♪"},{"start_ms":178200,"duration_ms":2040,"text":"♪ Never gonna give you up ♪"},{"start_ms":180320,"duration_ms":2120,"text":"♪ Never gonna let you down ♪"},{"start_ms":182520,"duration_ms":4120,"text":"♪ Never gonna run around\nand desert you ♪"},{"start_ms":186720,"duration_ms":2000,"text":"♪ Never gonna make you cry ♪"},{"start_ms":188840,"duration_ms":1880,"text":"♪ Never gonna say goodbye ♪"},{"start_ms":190840,"duration_ms":4360,"text":"♪ Never gonna tell a lie\nand hurt you ♪"},{"start_ms":195280,"duration_ms":1840,"text":"♪ Never gonna give you up ♪"},{"start_ms":197200,"duration_ms":2040,"text":"♪ Never gonna let you down ♪"},{"start_ms":199400,"duration_ms":3720,"text":"♪ Never gonna run around\nand desert you ♪"},{"start_ms":203360,"duration_ms":2240,"text":"♪ Never gonna make you cry ♪"},{"start_ms":205680,"duration_ms":2160,"text":"♪ Never gonna say goodbye ♪"},{"start_ms":207920,"duration_ms":3400,"text":"♪ Never gonna tell a lie\nand hurt you ♪"}],"text":"[♪♪♪] ♪ We're no strangers to love ♪ ♪ You know the rules and so do I ♪ ♪ A full commitment's what I'm thinking of ♪ ♪ You wouldn't get this from any other guy ♪ ♪ I just wanna tell you how I'm feeling ♪ ♪ Gotta make you understand ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around and desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie and hurt you ♪ ♪ We've known each other for so long ♪ ♪ Your heart's been aching but you're too shy to say it ♪ ♪ Inside we both know what's been going ♪ ♪ We know the game and we're gonna play it ♪ ♪ And if you ask me how I'm feeling ♪ ♪ Don't tell me you're too blind to see ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around and desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie and hurt you ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around and desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie and hurt you ♪ ♪ (Ooh, give you up) ♪ ♪ (Ooh, give you up) ♪ ♪ Never gonna give, never gonna give ♪ ♪ (Give you up) ♪ ♪ Never gonna give, never gonna give ♪ ♪ (Give you up) ♪ ♪ We've known each other for so long ♪ ♪ Your heart's been aching but you're too shy to say it ♪ ♪ Inside we both know what's been going ♪ ♪ We know the game and we're gonna play it ♪ ♪ I just wanna tell you how I'm feeling ♪ ♪ Gotta make you understand ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around and desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie and hurt you ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around and desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie and hurt you ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around and desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie and hurt you ♪"}
Get Transcript JSON — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13178/youtube+transcript+api/26729/get+transcript+json?video_id=dQw4w9WgXcQ&lang=es' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

Returns the transcript of a YouTube video as a ready-to-save SRT subtitle file (Content-Type: application/x-subrip) — no conversion or post-processing needed. Video metadata (title, channel, duration, view count) is delivered in X-Video-* response headers, keeping the body a clean, valid SRT document you can feed directly into video editors, players, or subtitle pipelines. Pass a video_id and optionally a lang code.

Endpoint ID: 26730
GET https://docs.zylalabs.com/api/13178/youtube+transcript+api/26730/get+transcript+srt+file
INPUT PARAMETERS

Get Transcript SRT file — Endpoint Features

Object Description
video_id Required YouTube video ID — the part after watch?v= in the video URL. Example: dQw4w9WgXcQ
lang Optional Optional caption language code (en, es, de, fr...). Defaults to the best available track. Example: en

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

video_id
lang
API EXAMPLE RESPONSE
JSON
1
00:00:01,360 --> 00:00:03,040
[♪♪♪]

2
00:00:18,640 --> 00:00:21,880
♪ We're no strangers to love ♪

3
00:00:22,640 --> 00:00:26,960
♪ You know the rules
and so do I ♪

4
00:00:27,040 --> 00:00:31,040
♪ A full commitment's
what I'm thinking of ♪

5
00:00:31,120 --> 00:00:35,080
♪ You wouldn't get this
from any other guy ♪

6
00:00:35,160 --> 00:00:39,520
♪ I just wanna tell you
how I'm feeling ♪

7
00:00:40,520 --> 00:00:42,920
♪ Gotta make you understand ♪

8
00:00:43,000 --> 00:00:45,120
♪ Never gonna give you up ♪

9
00:00:45,200 --> 00:00:47,080
♪ Never gonna let you down ♪

10
00:00:47,320 --> 00:00:51,120
♪ Never gonna run around
and desert you ♪

11
00:00:51,480 --> 00:00:53,480
♪ Never gonna make you cry ♪

12
00:00:53,600 --> 00:00:55,520
♪ Never gonna say goodbye ♪

13
00:00:55,720 --> 00:00:59,360
♪ Never gonna tell a lie
and hurt you ♪

14
00:01:00,800 --> 00:01:04,800
♪ We've known each other
for so long ♪

15
00:01:04,880 --> 00:01:09,040
♪ Your heart's been aching
but you're too shy to say it ♪

16
00:01:09,120 --> 00:01:12,960
♪ Inside we both know
what's been going ♪

17
00:01:13,360 --> 00:01:17,200
♪ We know the game
and we're gonna play it ♪

18
00:01:17,400 --> 00:01:22,040
♪ And if you ask me
how I'm feeling ♪

19
00:01:22,400 --> 00:01:25,240
♪ Don't tell me
you're too blind to see ♪

20
00:01:25,320 --> 00:01:27,280
♪ Never gonna give you up ♪

21
00:01:27,360 --> 00:01:29,320
♪ Never gonna let you down ♪

22
00:01:29,440 --> 00:01:33,720
♪ Never gonna run around
and desert you ♪

23
00:01:33,800 --> 00:01:35,600
♪ Never gonna make you cry ♪

24
00:01:35,760 --> 00:01:38,000
♪ Never gonna say goodbye ♪

25
00:01:38,080 --> 00:01:42,040
♪ Never gonna tell a lie
and hurt you ♪

26
00:01:42,200 --> 00:01:44,120
♪ Never gonna give you up ♪

27
00:01:44,280 --> 00:01:46,360
♪ Never gonna let you down ♪

28
00:01:46,480 --> 00:01:50,080
♪ Never gonna run around
and desert you ♪

29
00:01:50,760 --> 00:01:52,720
♪ Never gonna make you cry ♪

30
00:01:52,800 --> 00:01:54,680
♪ Never gonna say goodbye ♪

31
00:01:54,960 --> 00:01:58,760
♪ Never gonna tell a lie
and hurt you ♪

32
00:01:59,840 --> 00:02:02,960
♪ (Ooh, give you up) ♪

33
00:02:03,720 --> 00:02:07,360
♪ (Ooh, give you up) ♪

34
00:02:08,480 --> 00:02:10,120
♪ Never gonna give,
never gonna give ♪

35
00:02:10,240 --> 00:02:11,560
♪ (Give you up) ♪

36
00:02:12,480 --> 00:02:14,240
♪ Never gonna give,
never gonna give ♪

37
00:02:14,360 --> 00:02:15,920
♪ (Give you up) ♪

38
00:02:16,760 --> 00:02:21,080
♪ We've known each other
for so long ♪

39
00:02:21,200 --> 00:02:25,200
♪ Your heart's been aching
but you're too shy to say it ♪

40
00:02:25,280 --> 00:02:29,120
♪ Inside we both know
what's been going ♪

41
00:02:29,520 --> 00:02:33,200
♪ We know the game
and we're gonna play it ♪

42
00:02:33,360 --> 00:02:38,040
♪ I just wanna tell you
how I'm feeling ♪

43
00:02:38,640 --> 00:02:41,320
♪ Gotta make you understand ♪

44
00:02:41,400 --> 00:02:43,360
♪ Never gonna give you up ♪

45
00:02:43,440 --> 00:02:45,640
♪ Never gonna let you down ♪

46
00:02:45,720 --> 00:02:49,720
♪ Never gonna run around
and desert you ♪

47
00:02:49,800 --> 00:02:51,640
♪ Never gonna make you cry ♪

48
00:02:51,800 --> 00:02:53,960
♪ Never gonna say goodbye ♪

49
00:02:54,040 --> 00:02:57,600
♪ Never gonna tell a lie
and hurt you ♪

50
00:02:58,200 --> 00:03:00,240
♪ Never gonna give you up ♪

51
00:03:00,320 --> 00:03:02,440
♪ Never gonna let you down ♪

52
00:03:02,520 --> 00:03:06,640
♪ Never gonna run around
and desert you ♪

53
00:03:06,720 --> 00:03:08,720
♪ Never gonna make you cry ♪

54
00:03:08,840 --> 00:03:10,720
♪ Never gonna say goodbye ♪

55
00:03:10,840 --> 00:03:15,200
♪ Never gonna tell a lie
and hurt you ♪

56
00:03:15,280 --> 00:03:17,120
♪ Never gonna give you up ♪

57
00:03:17,200 --> 00:03:19,240
♪ Never gonna let you down ♪

58
00:03:19,400 --> 00:03:23,120
♪ Never gonna run around
and desert you ♪

59
00:03:23,360 --> 00:03:25,600
♪ Never gonna make you cry ♪

60
00:03:25,680 --> 00:03:27,840
♪ Never gonna say goodbye ♪

61
00:03:27,920 --> 00:03:31,320
♪ Never gonna tell a lie
and hurt you ♪
Get Transcript SRT file — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13178/youtube+transcript+api/26730/get+transcript+srt+file?video_id=dQw4w9WgXcQ' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

Returns the transcript of a YouTube video as a WEBVTT file (Content-Type: text/vtt), ready for HTML5 video players, web captioning, and streaming platforms — no conversion needed. Video metadata (title, channel, duration, view count) is delivered in X-Video-* response headers, keeping the body a clean, valid VTT document. Pass a video_id and optionally a lang code.

Endpoint ID: 26731
GET https://docs.zylalabs.com/api/13178/youtube+transcript+api/26731/get+transcript+vtt+file
INPUT PARAMETERS

Get Transcript VTT file — Endpoint Features

Object Description
video_id Required YouTube video ID — the part after watch?v= in the video URL. Example: dQw4w9WgXcQ
lang Optional Optional caption language code (en, es, de, fr...). Defaults to the best available track. Example: en

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

video_id
lang
API EXAMPLE RESPONSE
JSON
WEBVTT

00:00:01.360 --> 00:00:03.040
[♪♪♪]

00:00:18.640 --> 00:00:21.880
♪ We're no strangers to love ♪

00:00:22.640 --> 00:00:26.960
♪ You know the rules
and so do I ♪

00:00:27.040 --> 00:00:31.040
♪ A full commitment's
what I'm thinking of ♪

00:00:31.120 --> 00:00:35.080
♪ You wouldn't get this
from any other guy ♪

00:00:35.160 --> 00:00:39.520
♪ I just wanna tell you
how I'm feeling ♪

00:00:40.520 --> 00:00:42.920
♪ Gotta make you understand ♪

00:00:43.000 --> 00:00:45.120
♪ Never gonna give you up ♪

00:00:45.200 --> 00:00:47.080
♪ Never gonna let you down ♪

00:00:47.320 --> 00:00:51.120
♪ Never gonna run around
and desert you ♪

00:00:51.480 --> 00:00:53.480
♪ Never gonna make you cry ♪

00:00:53.600 --> 00:00:55.520
♪ Never gonna say goodbye ♪

00:00:55.720 --> 00:00:59.360
♪ Never gonna tell a lie
and hurt you ♪

00:01:00.800 --> 00:01:04.800
♪ We've known each other
for so long ♪

00:01:04.880 --> 00:01:09.040
♪ Your heart's been aching
but you're too shy to say it ♪

00:01:09.120 --> 00:01:12.960
♪ Inside we both know
what's been going ♪

00:01:13.360 --> 00:01:17.200
♪ We know the game
and we're gonna play it ♪

00:01:17.400 --> 00:01:22.040
♪ And if you ask me
how I'm feeling ♪

00:01:22.400 --> 00:01:25.240
♪ Don't tell me
you're too blind to see ♪

00:01:25.320 --> 00:01:27.280
♪ Never gonna give you up ♪

00:01:27.360 --> 00:01:29.320
♪ Never gonna let you down ♪

00:01:29.440 --> 00:01:33.720
♪ Never gonna run around
and desert you ♪

00:01:33.800 --> 00:01:35.600
♪ Never gonna make you cry ♪

00:01:35.760 --> 00:01:38.000
♪ Never gonna say goodbye ♪

00:01:38.080 --> 00:01:42.040
♪ Never gonna tell a lie
and hurt you ♪

00:01:42.200 --> 00:01:44.120
♪ Never gonna give you up ♪

00:01:44.280 --> 00:01:46.360
♪ Never gonna let you down ♪

00:01:46.480 --> 00:01:50.080
♪ Never gonna run around
and desert you ♪

00:01:50.760 --> 00:01:52.720
♪ Never gonna make you cry ♪

00:01:52.800 --> 00:01:54.680
♪ Never gonna say goodbye ♪

00:01:54.960 --> 00:01:58.760
♪ Never gonna tell a lie
and hurt you ♪

00:01:59.840 --> 00:02:02.960
♪ (Ooh, give you up) ♪

00:02:03.720 --> 00:02:07.360
♪ (Ooh, give you up) ♪

00:02:08.480 --> 00:02:10.120
♪ Never gonna give,
never gonna give ♪

00:02:10.240 --> 00:02:11.560
♪ (Give you up) ♪

00:02:12.480 --> 00:02:14.240
♪ Never gonna give,
never gonna give ♪

00:02:14.360 --> 00:02:15.920
♪ (Give you up) ♪

00:02:16.760 --> 00:02:21.080
♪ We've known each other
for so long ♪

00:02:21.200 --> 00:02:25.200
♪ Your heart's been aching
but you're too shy to say it ♪

00:02:25.280 --> 00:02:29.120
♪ Inside we both know
what's been going ♪

00:02:29.520 --> 00:02:33.200
♪ We know the game
and we're gonna play it ♪

00:02:33.360 --> 00:02:38.040
♪ I just wanna tell you
how I'm feeling ♪

00:02:38.640 --> 00:02:41.320
♪ Gotta make you understand ♪

00:02:41.400 --> 00:02:43.360
♪ Never gonna give you up ♪

00:02:43.440 --> 00:02:45.640
♪ Never gonna let you down ♪

00:02:45.720 --> 00:02:49.720
♪ Never gonna run around
and desert you ♪

00:02:49.800 --> 00:02:51.640
♪ Never gonna make you cry ♪

00:02:51.800 --> 00:02:53.960
♪ Never gonna say goodbye ♪

00:02:54.040 --> 00:02:57.600
♪ Never gonna tell a lie
and hurt you ♪

00:02:58.200 --> 00:03:00.240
♪ Never gonna give you up ♪

00:03:00.320 --> 00:03:02.440
♪ Never gonna let you down ♪

00:03:02.520 --> 00:03:06.640
♪ Never gonna run around
and desert you ♪

00:03:06.720 --> 00:03:08.720
♪ Never gonna make you cry ♪

00:03:08.840 --> 00:03:10.720
♪ Never gonna say goodbye ♪

00:03:10.840 --> 00:03:15.200
♪ Never gonna tell a lie
and hurt you ♪

00:03:15.280 --> 00:03:17.120
♪ Never gonna give you up ♪

00:03:17.200 --> 00:03:19.240
♪ Never gonna let you down ♪

00:03:19.400 --> 00:03:23.120
♪ Never gonna run around
and desert you ♪

00:03:23.360 --> 00:03:25.600
♪ Never gonna make you cry ♪

00:03:25.680 --> 00:03:27.840
♪ Never gonna say goodbye ♪

00:03:27.920 --> 00:03:31.320
♪ Never gonna tell a lie
and hurt you ♪
Get Transcript VTT file — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13178/youtube+transcript+api/26731/get+transcript+vtt+file?video_id=dQw4w9WgXcQ' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

Lists every caption track available for a YouTube video: language code, kind (manual or auto-generated), and track name — plus full video metadata (title, channel, channel ID, duration, view count). Use it to discover which languages you can request from the transcript endpoints before fetching. A video with no captions returns a clean 200 response with an empty tracks array, so your integration never has to guess. Pass a video_id.

Endpoint ID: 26732
GET https://docs.zylalabs.com/api/13178/youtube+transcript+api/26732/list+caption+languages
INPUT PARAMETERS

List Caption Languages — Endpoint Features

Object Description
video_id Required YouTube video ID — the part after watch?v= in the video URL. Example: dQw4w9WgXcQ

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

video_id
API EXAMPLE RESPONSE
JSON
{"video_id":"dQw4w9WgXcQ","video":{"title":"Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)","channel":"Rick Astley","channel_id":"UCuAXFkgsw1L7xaCfnd5JJOw","duration_sec":213,"view_count":1791582068},"tracks":[{"lang":"en","kind":"manual","name":"English"},{"lang":"en","kind":"asr","name":"English (auto-generated)"},{"lang":"de-DE","kind":"manual","name":"German (Germany)"},{"lang":"ja","kind":"manual","name":"Japanese"},{"lang":"pt-BR","kind":"manual","name":"Portuguese (Brazil)"},{"lang":"es-419","kind":"manual","name":"Spanish (Latin America)"}]}
List Caption Languages — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13178/youtube+transcript+api/26732/list+caption+languages?video_id=dQw4w9WgXcQ' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

Turns any YouTube playlist or channel into a complete list of videos in a single call. Accepts playlist URLs or IDs, channel URLs, handles, and UC channel IDs. Returns every video with its ID, URL, title, channel, and duration in seconds, ready to feed straight into the transcript endpoints for bulk processing. Handles up to 5000 videos per request, and larger sources are flagged as truncated. Ideal for mapping and transcribing entire channels end to end. No equivalent endpoint exists in other transcript APIs on this hub. Note that large channels can take longer to resolve, while playlists respond fast.

Endpoint ID: 26733
GET https://docs.zylalabs.com/api/13178/youtube+transcript+api/26733/resolve+playlist+or+channel+to+video+list
INPUT PARAMETERS

Resolve Playlist or Channel to Video List — Endpoint Features

Object Description
url Required Playlist URL or ID, channel URL, @handle, or UC channel ID. Example: PLBCF2DAC6FFB574DE

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
API EXAMPLE RESPONSE
JSON
{
  "source": {
    "type": "playlist",
    "id": "PLBCF2DAC6FFB574DE",
    "url": "https://www.youtube.com/playlist?list=PLBCF2DAC6FFB574DE"
  },
  "video_count": 10,
  "videos": [
    {
      "video_id": "GvgqDSnpRQM",
      "url": "https://www.youtube.com/watch?v=GvgqDSnpRQM",
      "title": "Andrew Willis, Skatepark Engineer",
      "channel": "Google Search Stories",
      "duration_sec": 90
    },
    {
      "video_id": "V4DDt30Aat4",
      "url": "https://www.youtube.com/watch?v=V4DDt30Aat4",
      "title": "Mark Lesek: A New/Old Prosthetic",
      "channel": "Google Search Stories",
      "duration_sec": 159
    }
  ]
}
Resolve Playlist or Channel to Video List — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13178/youtube+transcript+api/26733/resolve+playlist+or+channel+to+video+list?url=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the YouTube Transcript API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

(Save 2 months with annual billing 🎉)

🚀 Enterprise Plan
Custom Volume

  • Custom Rate Limit
  • Team & Access Management
  • SLA-backed Uptime
  • Specialized Customer Support
  • Real-Time API Monitoring
  • Enterprise Security & Compliance
Minimum annual contract: USD 10,000

Trusted by leading companies

Overview

The YouTube Transcript API extracts captions and subtitles from any public YouTube video and returns them as structured JSON, ready-to-use SRT files, or WEBVTT — with video metadata (title, channel, duration, view count) included in every response at no extra cost.

WHY THIS API

Five endpoints instead of one. Most transcript APIs return raw caption JSON and stop there. This API also delivers ready-made subtitle files (SRT and VTT with correct Content-Type headers), lists all available caption tracks per video, and — unique on this hub — resolves entire playlists and channels into complete video lists, so you can map a whole channel and transcribe it end to end.

Built for reliability. Runs on dedicated residential proxy infrastructure with automatic retries, response caching, and real-time upstream monitoring. When YouTube changes its backend, most transcript APIs break for days. This one is engineered to detect breakage within minutes and recover fast.

All-inclusive pricing. The price on the tag is the price on the invoice: no separate charges for proxies, bandwidth, or metadata. Every successful call returns full video metadata alongside the transcript.

ENDPOINTS

1. Transcript (JSON) — timed segments plus concatenated plain text, caption kind (manual or auto-generated), and full video metadata in one call.
2. Transcript (SRT) — a ready-to-save .srt subtitle file, no conversion needed.
3. Transcript (VTT) — WEBVTT output for web players and HTML5 video.
4. Languages — every caption track available for a video (language, kind, name), so you always know what you can fetch before you fetch it.
5. Resolve — turn any playlist URL, channel URL, or @handle into a complete list of videos (ID, URL, title, channel, duration). Feed the result straight back into the transcript endpoint to process entire channels.

COMMON USE CASES

AI and NLP pipelines: feed clean transcripts into LLMs for summarization, RAG, classification, or embedding. Content repurposing: turn videos into blog posts, newsletters, and social content. Subtitle workflows: get broadcast-ready SRT/VTT without post-processing. Research and media monitoring: transcribe channels at scale for content analysis. Accessibility: caption files ready for compliance requirements.

ERROR HANDLING

Clean, machine-readable error codes (NO_CAPTIONS, VIDEO_UNAVAILABLE, LANG_NOT_FOUND, and more) so your integration always knows exactly what happened. Only meaningful responses count against your quota.

YouTube Transcript API FAQs

Yes. The API returns both manual and auto-generated captions. Every transcript response includes a kind field (manual or asr) so you always know which type you received. Use the List Caption Languages endpoint to see all available tracks for a video before fetching.

You get a clean, machine-readable NO_CAPTIONS error code instead of an ambiguous empty response. The List Caption Languages endpoint returns a 200 with an empty tracks array for such videos. Other structured error codes include VIDEO_UNAVAILABLE, LANG_NOT_FOUND and GEO_BLOCKED, so your integration always knows exactly what happened.

Yes. Use the Resolve endpoint: pass a channel URL, handle, or playlist URL and receive a complete list of videos (ID, URL, title, channel, duration) up to 5000 items. Feed those video IDs into the transcript endpoints to process the whole channel end to end. No other transcript API on this hub offers this.

JSON returns timed segments plus video metadata for programmatic use (NLP, AI pipelines, analysis). SRT returns a ready-to-save subtitle file for video editors and players. VTT returns WEBVTT for HTML5 video and web captioning. All three cover the same videos and languages, so pick the output your workflow needs and skip the conversion step.

Every caption language available on YouTube, both manual and auto-generated. Pass the lang parameter with a language code (en, es, de, fr, ja and so on). If the requested language is not available, you receive a LANG_NOT_FOUND error or the best available track depending on your settings. Use the List Caption Languages endpoint to discover available tracks first.

Included in every response at no extra cost. Transcript and language responses carry the video title, channel, channel ID, duration and view count. File endpoints (SRT, VTT) deliver metadata in X-Video response headers. The price on the tag is the price on the invoice, with no separate charges for proxies, bandwidth or metadata.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs


You might also like