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.

Documentação da API

Endpoints

Requisição

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://api-sneakers-database.zylalabs.com/api/13178/youtube+transcript+api/26729/get+transcript+json
PARÂMETROS DE ENTRADA

Get Transcript JSON — Recursos do endpoint

Objeto Descrição
video_id Obrigatório YouTube video ID — the part after watch?v= in the video URL. Example: dQw4w9WgXcQ
lang Opcional Optional caption language code (en, es, de, fr...). Defaults to the best available track. Example: en

Solicitações gratuitas de teste restantes: 3 de 3.


PARÂMETROS DE ENTRADA

video_id
lang
RESPOSTA DE EXEMPLO DA API
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 — TRECHOS DE CÓDIGO

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' 


    
Requisição

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://api-sneakers-database.zylalabs.com/api/13178/youtube+transcript+api/26730/get+transcript+srt+file
PARÂMETROS DE ENTRADA

Get Transcript SRT file — Recursos do endpoint

Objeto Descrição
video_id Obrigatório YouTube video ID — the part after watch?v= in the video URL. Example: dQw4w9WgXcQ
lang Opcional Optional caption language code (en, es, de, fr...). Defaults to the best available track. Example: en

Solicitações gratuitas de teste restantes: 3 de 3.


PARÂMETROS DE ENTRADA

video_id
lang
RESPOSTA DE EXEMPLO DA API
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 — TRECHOS DE CÓDIGO

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' 


    
Requisição

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://api-sneakers-database.zylalabs.com/api/13178/youtube+transcript+api/26731/get+transcript+vtt+file
PARÂMETROS DE ENTRADA

Get Transcript VTT file — Recursos do endpoint

Objeto Descrição
video_id Obrigatório YouTube video ID — the part after watch?v= in the video URL. Example: dQw4w9WgXcQ
lang Opcional Optional caption language code (en, es, de, fr...). Defaults to the best available track. Example: en

Solicitações gratuitas de teste restantes: 3 de 3.


PARÂMETROS DE ENTRADA

video_id
lang
RESPOSTA DE EXEMPLO DA API
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 — TRECHOS DE CÓDIGO

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' 


    
Requisição

Lista todas as faixas de legenda disponíveis para um vídeo do YouTube: código do idioma, tipo (manual ou gerado automaticamente) e nome da faixa — além de todos os metadados do vídeo (título, canal, ID do canal, duração, contagem de visualizações). Use-o para descobrir quais idiomas você pode solicitar dos pontos de extremidade da transcrição antes de buscar. Um vídeo sem legendas retorna uma resposta limpa 200 com um array de faixas vazio, para que sua integração nunca precise adivinhar. Passe um video_id

Endpoint ID: 26732
GET https://api-sneakers-database.zylalabs.com/api/13178/youtube+transcript+api/26732/list+caption+languages
PARÂMETROS DE ENTRADA

Listar legendas de idiomas — Recursos do endpoint

Objeto Descrição
video_id Obrigatório YouTube video ID — the part after watch?v= in the video URL. Example: dQw4w9WgXcQ

Solicitações gratuitas de teste restantes: 3 de 3.


PARÂMETROS DE ENTRADA

video_id
RESPOSTA DE EXEMPLO DA API
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)"}]}
Listar legendas de idiomas — TRECHOS DE CÓDIGO

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' 


    
Requisição

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://api-sneakers-database.zylalabs.com/api/13178/youtube+transcript+api/26733/resolve+playlist+or+channel+to+video+list
PARÂMETROS DE ENTRADA

Resolve Playlist or Channel to Video List — Recursos do endpoint

Objeto Descrição
url Obrigatório Playlist URL or ID, channel URL, @handle, or UC channel ID. Example: PLBCF2DAC6FFB574DE

Solicitações gratuitas de teste restantes: 3 de 3.


PARÂMETROS DE ENTRADA

url
RESPOSTA DE EXEMPLO DA API
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 — TRECHOS DE CÓDIGO

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' 


    

Chave de acesso à API e autenticação

Após se cadastrar, cada desenvolvedor recebe uma chave de acesso à API pessoal, uma combinação única de letras e dígitos para acessar nosso endpoint de API. Para autenticar com a YouTube Transcript API basta incluir seu token Bearer no cabeçalho Authorization.

Cabeçalhos
Cabeçalho Descrição
Authorization Obrigatório Deve ser Bearer access_key. Veja "Sua chave de acesso à API" acima quando você estiver inscrito.

Preços simples e transparentes

Sem compromisso de longo prazo. Faça upgrade, downgrade ou cancele a qualquer momento. O teste gratuito inclui até 50 requisições.

(Economize 2 meses com cobrança anual 🎉)

🚀 Plano Empresarial
Volume personalizado

  • Limite de taxa personalizado
  • Gestão de equipes e acessos
  • Uptime garantido por SLA
  • Suporte ao cliente especializado
  • Monitoramento de API em tempo real
  • Segurança e conformidade empresarial
Contrato anual mínimo: USD 10.000

Empresas líderes confiam em nós

Visão Geral

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.

Perguntas Frequentes Gerais

O Zyla API Hub é como uma grande loja de APIs, onde você pode encontrar milhares delas em um só lugar. Também oferecemos suporte dedicado e monitoramento em tempo real de todas as APIs. Após se cadastrar, você pode escolher quais APIs deseja usar. Lembre-se apenas de que cada API precisa de sua própria assinatura. Mas se você se inscrever em várias, usará a mesma chave para todas elas, facilitando as coisas para você.
Os preços são listados em USD (Dólar Americano), EUR (Euro), CAD (Dólar Canadense), AUD (Dólar Australiano) e GBP (Libra Esterlina). Aceitamos todos os principais cartões de débito e crédito. Nosso sistema de pagamento usa a mais recente tecnologia de segurança e é operado pela Stripe, uma das empresas de pagamento mais confiáveis do mundo. Se tiver problemas para pagar com cartão, entre em contato conosco em [email protected]

Além disso, se você já tiver uma assinatura ativa em qualquer uma dessas moedas (USD, EUR, CAD, AUD, GBP), essa moeda será mantida para assinaturas subsequentes. Você pode alterar a moeda a qualquer momento, desde que não tenha assinaturas ativas.
A moeda local exibida na página de preços é baseada no país do seu endereço IP e é fornecida apenas como referência. Os preços reais são em USD (Dólar Americano). Ao efetuar o pagamento, a cobrança aparecerá no extrato do seu cartão em USD, mesmo que você veja o valor equivalente em sua moeda local em nosso site. Isso significa que você não pode pagar diretamente com sua moeda local.
Ocasionalmente, o banco pode recusar a cobrança devido às configurações de proteção contra fraude. Sugerimos contatar seu banco inicialmente para verificar se estão bloqueando nossas cobranças. Você também pode acessar o Portal de Cobrança e alterar o cartão associado para realizar o pagamento. Se isso não funcionar e precisar de mais ajuda, entre em contato com nossa equipe em [email protected]
Os preços são determinados por uma assinatura recorrente mensal ou anual, dependendo do plano escolhido.
As chamadas de API são descontadas do seu plano com base nas requisições bem-sucedidas. Cada plano possui um número específico de chamadas por mês. Apenas chamadas bem-sucedidas, indicadas por uma resposta com Status 200, serão contabilizadas, garantindo que falhas não afetem sua cota mensal.
O Zyla API Hub funciona com um sistema de assinatura mensal recorrente. Seu ciclo de cobrança começa no dia em que você compra um dos planos pagos e será renovado no mesmo dia do mês seguinte. Portanto, cancele sua assinatura com antecedência se quiser evitar cobranças futuras.
Para fazer upgrade do seu plano atual, acesse a página de preços da API e selecione o novo plano desejado. O upgrade é instantâneo, permitindo aproveitar imediatamente os recursos do novo plano. Observe que as chamadas restantes do plano anterior não serão transferidas; você será cobrado pelo valor integral do novo plano.
Para verificar quantas chamadas de API restam para o mês atual, consulte o campo 'X-Zyla-API-Calls-Monthly-Remaining' no cabeçalho da resposta. Por exemplo, se seu plano permite 1.000 requisições por mês e você usou 100, este campo no cabeçalho da resposta indicará 900 chamadas restantes.
Para ver o número máximo de requisições de API que seu plano permite, verifique o cabeçalho de resposta 'X-Zyla-RateLimit-Limit'. Por exemplo, se seu plano inclui 1.000 requisições por mês, este cabeçalho exibirá 1.000.
O cabeçalho 'X-Zyla-RateLimit-Reset' mostra o número de segundos até seu limite de taxa ser redefinido. Isso informa quando sua contagem de requisições começará do zero. Por exemplo, se exibir 3.600, significa que restam 3.600 segundos até o limite ser redefinido.
Sim, você pode cancelar seu plano a qualquer momento acessando sua conta e selecionando a opção de cancelamento na página de Cobrança. Observe que upgrades, downgrades e cancelamentos têm efeito imediato. Além disso, após o cancelamento, você não terá mais acesso ao serviço, mesmo que ainda tenha chamadas restantes na sua cota.
Para oferecer a oportunidade de experimentar nossas APIs sem compromisso, oferecemos um teste gratuito de 7 dias que permite realizar até 50 chamadas de API sem custo. Esse teste pode ser usado apenas uma vez; recomendamos aplicá-lo à API que mais interessa. Embora a maioria das APIs ofereça teste gratuito, algumas podem não oferecer. O teste termina após 7 dias ou quando você atingir 50 requisições, o que ocorrer primeiro. Se atingir o limite, será necessário "Iniciar seu plano pago" para continuar. Você encontra esse botão no perfil em Assinatura -> Escolha a API -> aba Preços. Se não cancelar até o 7º dia, sua assinatura será cobrada automaticamente, liberando todas as chamadas do plano.
Após 7 dias, será cobrado o valor total do plano ao qual você estava inscrito durante o teste. Portanto, é importante cancelar antes do término do período. Solicitações de reembolso por esquecimento de cancelamento não são aceitas.
Ao assinar um teste gratuito de API, você pode fazer até 50 chamadas. Se desejar fazer chamadas adicionais além desse limite, a API solicitará que você "Inicie seu plano pago". Você encontra o botão no perfil em Assinatura -> Escolha a API -> aba Preços.
As Ordens de Pagamento são processadas entre os dias 20 e 30 de cada mês. Se você enviar sua solicitação antes do dia 20, seu pagamento será processado dentro desse período.
Você pode nos contatar via chat para receber assistência imediata. Estamos online de 8h às 17h (EST). Se nos contatar após esse horário, retornaremos o mais rápido possível. Além disso, você pode enviar um e-mail para [email protected]

APIs relacionadas