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 डॉक्यूमेंटेशन

एंडपॉइंट्स

अनुरोध

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
इनपुट पैरामीटर्स

Get Transcript JSON — एंडपॉइंट फीचर्स

ऑब्जेक्ट विवरण
video_id आवश्यक YouTube video ID — the part after watch?v= in the video URL. Example: dQw4w9WgXcQ
lang वैकल्पिक Optional caption language code (en, es, de, fr...). Defaults to the best available track. Example: en

शेष मुफ्त टेस्ट रिक्वेस्ट्स: 3 में से 3.


इनपुट पैरामीटर्स

video_id
lang
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 — कोड स्निपेट्स

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' 


    
अनुरोध

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
इनपुट पैरामीटर्स

Get Transcript SRT file — एंडपॉइंट फीचर्स

ऑब्जेक्ट विवरण
video_id आवश्यक YouTube video ID — the part after watch?v= in the video URL. Example: dQw4w9WgXcQ
lang वैकल्पिक Optional caption language code (en, es, de, fr...). Defaults to the best available track. Example: en

शेष मुफ्त टेस्ट रिक्वेस्ट्स: 3 में से 3.


इनपुट पैरामीटर्स

video_id
lang
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 — कोड स्निपेट्स

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' 


    
अनुरोध

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
इनपुट पैरामीटर्स

Get Transcript VTT file — एंडपॉइंट फीचर्स

ऑब्जेक्ट विवरण
video_id आवश्यक YouTube video ID — the part after watch?v= in the video URL. Example: dQw4w9WgXcQ
lang वैकल्पिक Optional caption language code (en, es, de, fr...). Defaults to the best available track. Example: en

शेष मुफ्त टेस्ट रिक्वेस्ट्स: 3 में से 3.


इनपुट पैरामीटर्स

video_id
lang
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 — कोड स्निपेट्स

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' 


    
अनुरोध

एक YouTube वीडियो के लिए उपलब्ध हर कैप्शन ट्रैक की सूची: भाषा कोड, प्रकार (मैनुअल या स्वचालित रूप से जनरेट किया गया), और ट्रैक नाम—साथ ही पूरा वीडियो मेटाडेटा (शीर्षक, चैनल, चैनल आईडी, अवधि, व्यू गिनती)। इसका उपयोग यह पता लगाने के लिए करें कि आप ट्रांसक्रिप्ट एंडपॉइंट्स से कौन सी भाषाएँ मांग सकते हैं पहले यह डेटा लाने से। एक वीडियो जिसमें कोई कैप्शन नहीं है वह साफ 200 प्रतिक्रिया के साथ एक खाली ट्रैक एरे लौटाता है, इसलिए आपका इंटीग्रेशन कभी भी अनुमान नहीं लगाना पड़ेगा। एक video_id पास करें

Endpoint ID: 26732
GET https://docs.zylalabs.com/api/13178/youtube+transcript+api/26732/list+caption+languages
इनपुट पैरामीटर्स

सूची शीर्षक भाषाएँ — एंडपॉइंट फीचर्स

ऑब्जेक्ट विवरण
video_id आवश्यक YouTube video ID — the part after watch?v= in the video URL. Example: dQw4w9WgXcQ

शेष मुफ्त टेस्ट रिक्वेस्ट्स: 3 में से 3.


इनपुट पैरामीटर्स

video_id
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)"}]}
सूची शीर्षक भाषाएँ — कोड स्निपेट्स

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' 


    
अनुरोध

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
इनपुट पैरामीटर्स

Resolve Playlist or Channel to Video List — एंडपॉइंट फीचर्स

ऑब्जेक्ट विवरण
url आवश्यक Playlist URL or ID, channel URL, @handle, or UC channel ID. Example: PLBCF2DAC6FFB574DE

शेष मुफ्त टेस्ट रिक्वेस्ट्स: 3 में से 3.


इनपुट पैरामीटर्स

url
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 — कोड स्निपेट्स

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 एक्सेस कुंजी और प्रमाणीकरण

साइन अप करने के बाद, प्रत्येक डेवलपर को एक पर्सनल API एक्सेस की असाइन की जाती है, जो अक्षरों और अंकों का एक यूनिक संयोजन होता है, जिसका उपयोग हमारे API एंडपॉइंट तक पहुंचने के लिए किया जाता है। प्रमाणीकरण के लिए YouTube Transcript API के साथ बस अपने बेयरर टोकन को Authorization हेडर में शामिल करें।

हेडर्स
हेडर विवरण
Authorization आवश्यक होना चाहिए Bearer access_key. जब आप सब्सक्राइब हों तो ऊपर "Your API Access Key" देखें।

सरल पारदर्शी प्राइसिंग

कोई लंबी अवधि की प्रतिबद्धता नहीं। कभी भी अपग्रेड, डाउनग्रेड या कैंसल करें। फ्री ट्रायल में 50 रिक्वेस्ट तक शामिल हैं।

(वार्षिक बिलिंग के साथ 2 महीने बचाएँ 🎉)

🚀 एंटरप्राइज़ प्लान
कस्टम वॉल्यूम

  • कस्टम रेट लिमिट
  • टीम और एक्सेस प्रबंधन
  • SLA-समर्थित अपटाइम
  • विशेष ग्राहक सहायता
  • रीयल-टाइम API मॉनिटरिंग
  • एंटरप्राइज़ सुरक्षा और अनुपालन
न्यूनतम वार्षिक अनुबंध: USD 10,000

अग्रणी कंपनियों का भरोसा

अवलोकन

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.

सामान्य FAQs

Zyla API Hub APIs के लिए एक बड़ा स्टोर जैसा है, जहाँ आप हजारों APIs एक ही जगह पर पा सकते हैं। हम सभी APIs की समर्पित सपोर्ट और रीयल-टाइम मॉनिटरिंग भी प्रदान करते हैं। एक बार साइन अप करने के बाद, आप चुन सकते हैं कि कौन सी APIs उपयोग करनी हैं। बस याद रखें, प्रत्येक API को अपनी स्वयं की सब्सक्रिप्शन की आवश्यकता होती है। लेकिन यदि आप कई APIs पर सब्सक्राइब करते हैं, तो आप सभी के लिए एक ही की का उपयोग करेंगे, जिससे आपके लिए चीज़ें आसान हो जाती हैं।
कीमतें USD (अमेरिकी डॉलर), EUR (यूरो), CAD (कनाडाई डॉलर), AUD (ऑस्ट्रेलियाई डॉलर), और GBP (ब्रिटिश पाउंड) में सूचीबद्ध हैं। हम सभी प्रमुख डेबिट और क्रेडिट कार्ड स्वीकार करते हैं। हमारा पेमेंट सिस्टम नवीनतम सुरक्षा तकनीक का उपयोग करता है और Stripe द्वारा संचालित है, जो दुनिया की सबसे विश्वसनीय पेमेंट कंपनियों में से एक है। यदि आपको कार्ड से पेमेंट करने में कोई समस्या हो, तो बस हमसे संपर्क करें [email protected]

इसके अलावा, यदि आपके पास पहले से ही इनमें से किसी भी करेंसी (USD, EUR, CAD, AUD, GBP) में एक सक्रिय सब्सक्रिप्शन है, तो बाद की सब्सक्रिप्शंस के लिए वही करेंसी बनी रहेगी। जब तक आपके पास कोई सक्रिय सब्सक्रिप्शन नहीं है, आप किसी भी समय करेंसी बदल सकते हैं।
प्राइसिंग पेज पर दिखाई देने वाली स्थानीय करेंसी आपके IP पते के देश पर आधारित है और केवल संदर्भ के लिए प्रदान की गई है। वास्तविक कीमतें USD (अमेरिकी डॉलर) में हैं। जब आप भुगतान करते हैं, तो आपके कार्ड स्टेटमेंट पर चार्ज USD में दिखाई देगा, भले ही हमारी वेबसाइट पर आपको आपकी स्थानीय करेंसी में समतुल्य राशि दिखाई दे। इसका अर्थ है कि आप सीधे अपनी स्थानीय करेंसी से भुगतान नहीं कर सकते।
कभी-कभी, बैंक फ्रॉड प्रोटेक्शन सेटिंग्स के कारण चार्ज को डिक्लाइन कर सकता है। हम सुझाव देते हैं कि आप पहले अपने बैंक से संपर्क करें कि क्या वे हमारे चार्ज को ब्लॉक कर रहे हैं। साथ ही, आप बिलिंग पोर्टल तक पहुंच सकते हैं और भुगतान करने के लिए जुड़े कार्ड को बदल सकते हैं। यदि यह काम नहीं करता और आपको अतिरिक्त सहायता की आवश्यकता है, तो कृपया हमारी टीम से संपर्क करें [email protected]
कीमतें पुनरावर्ती मासिक या वार्षिक सब्सक्रिप्शन के आधार पर निर्धारित की जाती हैं, जो चुने गए प्लान पर निर्भर करती हैं।
API कॉल्स आपके प्लान से सफल रिक्वेस्ट के आधार पर घटाई जाती हैं। प्रत्येक प्लान में प्रति माह आप जितनी कॉल कर सकते हैं उसकी एक विशेष संख्या होती है। केवल सफल कॉल्स, जो स्टेटस 200 रिस्पॉन्स से इंगित होती हैं, आपकी कुल संख्या से घटाई जाएँगी। इससे सुनिश्चित होता है कि असफल या अधूरी रिक्वेस्ट आपके मासिक कोटा को प्रभावित नहीं करतीं।
Zyla API Hub एक पुनरावर्ती मासिक सब्सक्रिप्शन सिस्टम पर काम करता है। आपका बिलिंग साइकल उस दिन से शुरू होगा जिस दिन आप किसी पेड प्लान को खरीदते हैं, और अगले महीने के उसी दिन नवीनीकृत होगा। इसलिए यदि आप भविष्य के चार्ज से बचना चाहते हैं, तो समय पर अपनी सब्सक्रिप्शन कैंसल करना सुनिश्चित करें।
अपनी मौजूदा सब्सक्रिप्शन प्लान को अपग्रेड करने के लिए, बस API के प्राइसिंग पेज पर जाएँ और वह प्लान चुनें जिस पर आप अपग्रेड करना चाहते हैं। अपग्रेड तुरंत प्रभावी होगा, जिससे आपको नए प्लान की सुविधाओं का तुरंत आनंद मिलेगा। कृपया ध्यान दें कि आपके पिछले प्लान से बची हुई कॉल्स नए प्लान में नहीं जोड़ी जाएँगी, इसलिए अपग्रेड करने से पहले इसे ध्यान में रखें। आपको नए प्लान की पूरी राशि चार्ज की जाएगी।
यह देखने के लिए कि आपके पास वर्तमान महीने के लिए कितनी API कॉल्स बची हैं, रिस्पॉन्स हेडर में "X-Zyla-API-Calls-Monthly-Remaining" फ़ील्ड देखें। उदाहरण के लिए, यदि आपके प्लान में प्रति माह 1,000 रिक्वेस्ट की अनुमति है और आपने 100 का उपयोग किया है, तो रिस्पॉन्स हेडर में यह फ़ील्ड 900 बची हुई कॉल्स दिखाएगा।
आपके प्लान में अनुमत API रिक्वेस्ट्स की अधिकतम संख्या देखने के लिए, "X-Zyla-RateLimit-Limit" रिस्पॉन्स हेडर देखें। उदाहरण के लिए, यदि आपके प्लान में प्रति माह 1,000 रिक्वेस्ट्स शामिल हैं, तो यह हेडर 1,000 दिखाएगा।
"X-Zyla-RateLimit-Reset" हेडर यह दिखाता है कि आपकी रेट लिमिट रीसेट होने में कितने सेकंड बचे हैं। यह आपको बताता है कि आपकी रिक्वेस्ट गिनती कब से फिर से शुरू होगी। उदाहरण के लिए, यदि यह 3,600 दिखाता है, तो इसका मतलब है कि लिमिट रीसेट होने में 3,600 सेकंड बचे हैं।
हाँ, आप कभी भी अपने अकाउंट में जाकर और बिलिंग पेज पर कैंसिलेशन विकल्प चुनकर अपना प्लान कैंसल कर सकते हैं। कृपया ध्यान दें कि अपग्रेड, डाउनग्रेड और कैंसिलेशन तुरंत प्रभावी होते हैं। साथ ही, कैंसल करने पर आपको सेवा तक पहुंच नहीं होगी, भले ही आपके कोटा में कॉल्स बची हों।
आपको बिना किसी प्रतिबद्धता के हमारी APIs का अनुभव करने का मौका देने के लिए, हम 7-दिवसीय फ्री ट्रायल प्रदान करते हैं, जो आपको 50 API कॉल्स तक मुफ्त में करने की अनुमति देता है। यह ट्रायल केवल एक बार उपयोग किया जा सकता है, इसलिए हम सलाह देते हैं कि आप इसे उस API पर लागू करें जिसमें आपको सबसे अधिक रुचि है। जबकि अधिकांश APIs फ्री ट्रायल प्रदान करते हैं, कुछ शायद न करें। ट्रायल 7 दिनों के बाद या 50 रिक्वेस्ट होने पर, जो भी पहले हो, समाप्त हो जाता है। यदि आप ट्रायल के दौरान 50 रिक्वेस्ट लिमिट तक पहुँच जाते हैं, तो रिक्वेस्ट जारी रखने के लिए आपको "Start Your Paid Plan" करना होगा। आप अपने प्रोफाइल में Subscription -> जिस API पर आप सब्सक्राइब हैं उसे चुनें -> Pricing टैब में "Start Your Paid Plan" बटन पा सकते हैं। यदि आप 7वें दिन से पहले अपनी सब्सक्रिप्शन कैंसल नहीं करते हैं, तो आपका फ्री ट्रायल समाप्त हो जाएगा और आपका प्लान अपने आप चार्ज हो जाएगा, जिससे आपको अपने प्लान में निर्दिष्ट सभी API कॉल्स तक पहुंच मिल जाएगी। अवांछित चार्ज से बचने के लिए कृपया इसे ध्यान में रखें।
7 दिनों के बाद, आपको उस प्लान की पूरी राशि चार्ज की जाएगी, जिस पर आप ट्रायल के दौरान सब्सक्राइब थे। इसलिए, ट्रायल अवधि समाप्त होने से पहले कैंसल करना महत्वपूर्ण है। समय पर कैंसल करना भूलने के लिए रिफंड अनुरोध स्वीकार नहीं किए जाते।
जब आप किसी API के फ्री ट्रायल पर सब्सक्राइब करते हैं, तो आप 50 API कॉल्स तक कर सकते हैं। यदि आप इस लिमिट से आगे अतिरिक्त API कॉल्स करना चाहते हैं, तो API आपको "Start Your Paid Plan" करने का संकेत देगा। आप अपने प्रोफाइल में Subscription -> जिस API पर आप सब्सक्राइब हैं उसे चुनें -> Pricing टैब में "Start Your Paid Plan" बटन पा सकते हैं।
पAYOUT ऑर्डर्स महीने की 20 तारीख से 30 तारीख के बीच प्रोसेस किए जाते हैं। यदि आप अपना अनुरोध 20 तारीख से पहले सबमिट करते हैं, तो आपका पेमेंट इस समयावधि के भीतर प्रोसेस किया जाएगा।
आप तुरंत सहायता प्राप्त करने के लिए हमारे चैट चैनल के माध्यम से हमसे संपर्क कर सकते हैं। हम हमेशा सुबह 8 बजे से शाम 5 बजे (EST) तक ऑनलाइन रहते हैं। यदि आप हमें उस समय के बाद संपर्क करते हैं, तो हम यथाशीघ्र आपसे संपर्क करेंगे। इसके अलावा, आप हमें ईमेल के माध्यम से भी संपर्क कर सकते हैं [email protected]

संबंधित APIs