About the API:
The YouTube Subtitle Extraction API allows developers to easily extract subtitles and closed captions from YouTube videos.
With the API, users can extract subtitles and closed captions in real time, directly from YouTube videos. This eliminates the need for manual data entry and saves time for developers who need to add captioning features to their applications. In addition, the API's support for multiple languages provides more flexibility and accessibility.
To use this endpoint you need to pass the ID of the video to translate it in json format.Extract Subtitles - Endpoint Features
| Object | Description |
|---|---|
video_id |
[Required] |
[{"title":"Bruno Mars - Locked Out Of Heaven (Official Music Video)","description":"The official music video for Bruno Mars' \"Locked Out Of Heaven\" from the album 'Unorthodox Jukebox'.\n\nDirected by Cameron Duddy & Bruno Mars \n\n🔔 Subscribe for the latest official music videos, live performances, lyric videos, official audio, and more ➤ https://Atlantic.lnk.to/BMsubscribe\n\nWatch All Of Bruno Mars’ Official Music Videos ➤ https://bit.ly/2U7I3mi\n\nSee Bruno Mars on tour ➤ Visit http://brunomars.com/tour for dates and more info.\n\nGet Bruno Mars merchandise ➤ https://brunom.rs/brunomarsstore\n\nFollow Bruno Mars:\nhttp://www.brunomars.com\nhttp://www.instagram.com/brunomars\nhttp://www.twitter.com/brunomars\nhttp://www.facebook.com/brunomars\n\nThe official YouTube channel of Atlantic Records artist Bruno Mars. \n \n15x GRAMMY Award winner and 27x GRAMMY Award nominee Bruno Mars is a celebrated singer, songwriter, producer, and musician with iconic hits like \"The Lazy Song\", \"That's What I Like\", \"Just The Way You Are\", \"24K Magic\", \"Locked Out Of Heaven\", and \"When I Was Your Man\". His legendary body of work also includes blockbuster albums such as Doo-Wops & Hooligans, Unorthodox Jukebox, and 24K Magic, as well as era-defining collaborations like \"Uptown Funk\" with Mark Ronson, \"Finesse\" with Cardi B, and \"Nothin' On You\" with B.o.B. Forever classic, yet supremely innovative, Bruno continues to redefine music, style, and popular culture, pushing the boundaries of pop, R&B, funk, soul, hip-hop, and dance, and remains as influential as ever.\n\n#BrunoMars #LockedOutOfHeaven #UnorthodoxJukebox #OfficialMusicVideo #AtlanticRecords","availableLangs":["en"],"lengthInSeconds":"234","thumbnails":[{"url":"https://i.ytimg.com/vi/e-fA-gBCkj0/default.jpg","width":120,"height":90},{"url":"https://i.ytimg.com/vi/e-fA-gBCkj0/mqdefault.jpg","width":320,"height":180},{"url":"https://i.ytimg.com/vi/e-fA-gBCkj0/hqdefault.jpg","width":480,"height":360},{"url":"https://i.ytimg.com/vi/e-fA-gBCkj0/sddefault.jpg","width":640,"height":480},{"url":"https://i.ytimg.com/vi/e-fA-gBCkj0/hq720.jpg?sqp=-oaymwEcCK4FEIIDSEbyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBkdwoF7KWH6DxbpMoWa0VDQKjG2g","width":686,"height":386}],"transcription":[{"subtitle":"[Music]","start":6.42,"dur":4.699},{"subtitle":"oh yeah yeah oh yeah","start":13.48,"dur":4.399},{"subtitle":"yeah never had much faith and love or","start":18.279,"dur":5.801},{"subtitle":"Mires never want to put my heart up the","start":24.84,"dur":6.759},{"subtitle":"night","start":28.599,"dur":3},{"subtitle":"but swimming in your water something","start":32.04,"dur":4.96},{"subtitle":"spiritual I'm going to get every time","start":37.64,"dur":5.759},{"subtitle":"you spend the","start":40.36,"dur":7.48},{"subtitle":"night CU your sex takes me to bise yeah","start":43.399,"dur":9.881},{"subtitle":"your sex takes me to bise and","start":47.84,"dur":5.44},{"subtitle":"show yeah yeah yeah cuz you make me feel","start":53.76,"dur":9.24},{"subtitle":"like I've been locked out of","start":58.76,"dur":7.52},{"subtitle":"heaven oh too","start":63,"dur":6.159},{"subtitle":"long oh too","start":66.28,"dur":7.04},{"subtitle":"long yeah you make me feel like I've","start":69.159,"dur":7.121},{"subtitle":"been locked out of","start":73.32,"dur":2.96},{"subtitle":"hell","start":76.36,"dur":3},{"subtitle":"to","start":79.6,"dur":3},{"subtitle":"to oh yeah","start":85.88,"dur":4.48},{"subtitle":"[Music]","start":91.31,"dur":4.709},{"subtitle":"yeah you bring me to my knees you make","start":96.32,"dur":5.96},{"subtitle":"me","start":99.92,"dur":2.36},{"subtitle":"Dan you can make a s change his","start":103.159,"dur":9.721},{"subtitle":"ways open up your Gates cuz I can't wait","start":108.759,"dur":6.481},{"subtitle":"to","start":112.88,"dur":2.36},{"subtitle":"see and where there is where I want","start":116.039,"dur":5.801},{"subtitle":"cuz your sex takes me to bise yeah your","start":122.799,"dur":5.44},{"subtitle":"sex takes me","start":126.479,"dur":5.161},{"subtitle":"toise and","start":128.239,"dur":3.401},{"subtitle":"show yeah yeah yeah CU you make me feel","start":132.16,"dur":9.2},{"subtitle":"like I've been locked out of","start":137.519,"dur":7.161},{"subtitle":"heaven oh too","start":141.36,"dur":6.159},{"subtitle":"long oh to","start":144.68,"dur":5.88},{"subtitle":"love yeah you make me feel","start":147.519,"dur":6.881},{"subtitle":"love I've been locked out of","start":150.56,"dur":7.52},{"subtitle":"H oh too","start":154.4,"dur":3.68},{"subtitle":"long yeah yeah can I just stay here","start":165.8,"dur":9},{"subtitle":"spend the rest of my days","start":170.959,"dur":6.841},{"subtitle":"here","start":174.8,"dur":3},{"subtitle":"oh yeah","start":178.04,"dur":6.839},{"subtitle":"yeah can I just stay here spend the rest","start":180.68,"dur":5.96},{"subtitle":"of my","start":184.879,"dur":6.161},{"subtitle":"days cuz you make me feel like I've been","start":186.64,"dur":6.92},{"subtitle":"locked out of","start":191.04,"dur":5.88},{"subtitle":"heaven for too","start":193.56,"dur":6.16},{"subtitle":"long oh to","start":196.92,"dur":5.92},{"subtitle":"love yeah you make me","start":199.72,"dur":7},{"subtitle":"feel I been not got to have","start":202.84,"dur":8.119},{"subtitle":"one for too long","start":206.72,"dur":7.239},{"subtitle":"oh","start":210.959,"dur":3},{"subtitle":"[Music]","start":215.56,"dur":11.059}],"transcriptionAsText":"[Music] oh yeah yeah oh yeah yeah never had much faith and love or Mires never want to put my heart up the night but swimming in your water something spiritual I'm going to get every time you spend the night CU your sex takes me to bise yeah your sex takes me to bise and show yeah yeah yeah cuz you make me feel like I've been locked out of heaven oh too long oh too long yeah you make me feel like I've been locked out of hell to to oh yeah [Music] yeah you bring me to my knees you make me Dan you can make a s change his ways open up your Gates cuz I can't wait to see and where there is where I want cuz your sex takes me to bise yeah your sex takes me toise and show yeah yeah yeah CU you make me feel like I've been locked out of heaven oh too long oh to love yeah you make me feel love I've been locked out of H oh too long yeah yeah can I just stay here spend the rest of my days here oh yeah yeah can I just stay here spend the rest of my days cuz you make me feel like I've been locked out of heaven for too long oh to love yeah you make me feel I been not got to have one for too long oh [Music]"}]
curl --location --request GET 'https://zylalabs.com/api/913/youtube+subtitles+extractor+api/726/extract+subtitles?video_id=e-fA-gBCkj0' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The Extract Subtitles endpoint returns subtitles and closed captions from YouTube videos in JSON format. This includes video metadata such as title, description, and the actual subtitle text.
The key fields in the response data include "title," "description," and the subtitle text itself. These fields provide essential information about the video and its captions.
The response data is organized as an array of JSON objects. Each object contains fields like "title" and "description," allowing users to easily access and utilize the information.
The Extract Subtitles endpoint provides information such as the video title, description, and the extracted subtitles or closed captions, enabling developers to enhance their applications with captioning features.
The primary parameter for the Extract Subtitles endpoint is the video ID. Users must provide this ID to retrieve the corresponding subtitles and captions.
Users can customize their requests by specifying the video ID to target specific videos. Future enhancements may allow additional parameters for language or subtitle formats.
The data is sourced directly from YouTube videos, ensuring that the subtitles and closed captions are accurate and up-to-date as provided by the video creators.
Typical use cases include integrating subtitles into applications for accessibility, creating language learning tools, and enhancing video content with searchable text for better user engagement.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used 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.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
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, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
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.
Service Level:
100%
Response Time:
3,326ms
Service Level:
100%
Response Time:
4,822ms
Service Level:
97%
Response Time:
3,086ms
Service Level:
100%
Response Time:
1,099ms
Service Level:
100%
Response Time:
11,754ms
Service Level:
100%
Response Time:
2,985ms
Service Level:
100%
Response Time:
4,742ms
Service Level:
99%
Response Time:
1,853ms
Service Level:
100%
Response Time:
1,827ms
Service Level:
100%
Response Time:
1,647ms
Service Level:
100%
Response Time:
74ms
Service Level:
100%
Response Time:
10,990ms
Service Level:
100%
Response Time:
7,033ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
17,064ms
Service Level:
100%
Response Time:
1,767ms
Service Level:
100%
Response Time:
61ms
Service Level:
100%
Response Time:
767ms
Service Level:
100%
Response Time:
3,870ms
Service Level:
100%
Response Time:
0ms