YouTube Sub Extractor API

The YouTube Sub Extractor API allows you to get multilingual transcripts from any YouTube video, improving accessibility with easy integration and structured JSON responses.

About the API: 

The YouTube Sub Extractor API allows users to access YouTube video transcripts with a simple query. This API is ideal for improving the accessibility of video content, allowing users to obtain text representation of dialogs in multiple languages. The API provides multilingual support, making it easy to retrieve transcripts in languages such as English, Chinese and Korean. Integration is easy through a single endpoint, where you can submit the video ID to get the corresponding transcript. If you prefer, you can also specify the language of the transcript you want to retrieve.

With this API, responses are structured in JSON format, making it easy to integrate into applications and platforms. In addition, to optimize performance, a rate limiter is included to efficiently manage requests and ensure compliance with the limits imposed by YouTube.

Whether you are developing an educational platform, a content analysis tool or simply looking to improve accessibility for hearing impaired users, this API provides an effective and reliable solution for accessing YouTube video transcripts.

API Documentation

Endpoints


To use this endpoint, send the videoId parameter in a GET request to get the text transcript of the corresponding YouTube video.



                                                                            
GET https://zylalabs.com/api/5216/youtube+sub+extractor+api/6681/get+video+transcript
                                                                            
                                                                        

Get Video Transcript - Endpoint Features

Object Description
videoId [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"success":true,"transcript":[{"text":"o que a gente tem no diante","duration":3.24,"offset":0,"lang":"en"},{"text":"dos nossos olhos não dá muita esperança","duration":3.24,"offset":3.24,"lang":"en"},{"text":"no futuro daqui eu vejo a polícia","duration":3.24,"offset":6.48,"lang":"en"},{"text":"atirando a dignidade de pais de família","duration":3.24,"offset":9.72,"lang":"en"},{"text":"daqui eu vejo o estado transformando pessoas","duration":3.24,"offset":12.96,"lang":"en"},{"text":"que poderiam dar bons frutos carregado em","duration":3.24,"offset":16.200000000000003,"lang":"en"},{"text":"pessoas frustradas eu não julgo entendeu monstro","duration":3.24,"offset":19.44,"lang":"en"},{"text":"não precisa ser nenhum expert title superlotado","duration":3.24,"offset":22.68,"lang":"en"},{"text":"estudado formada uma coisa pra saber que","duration":3.24,"offset":25.92,"lang":"en"},{"text":"está tudo errado para saber qual a","duration":3.24,"offset":29.160000000000004,"lang":"en"},{"text":"posição da gente isso tem que acabar","duration":3.24,"offset":32.400000000000006,"lang":"en"},{"text":"com os palestinos abete paz [Música] gino","duration":3.24,"offset":35.64,"lang":"en"},{"text":"problema queria só paz mas não viu","duration":3.24,"offset":38.88,"lang":"en"},{"text":"o veículo agora sem proteção da vida","duration":3.24,"offset":42.120000000000005,"lang":"en"},{"text":"e arrojado mas ainda era o então","duration":3.24,"offset":45.36,"lang":"en"},{"text":"ainda disparava e agora o que eu","duration":3.24,"offset":48.6,"lang":"en"},{"text":"faço me fala na maturidade na sala","duration":3.24,"offset":51.84,"lang":"en"},{"text":"tem pesadelo é época de eleição nosso","duration":3.24,"offset":55.080000000000005,"lang":"en"},{"text":"descabelo progresso sem previsão no chão torço","duration":3.24,"offset":58.32000000000001,"lang":"en"},{"text":"pro meu filho também não vira lata","duration":3.24,"offset":61.56,"lang":"en"},{"text":"é um opção tem vaca tem sempre","duration":3.24,"offset":64.80000000000001,"lang":"en"},{"text":"cid piada pode justificar nada eu entrei","duration":3.24,"offset":68.04,"lang":"en"},{"text":"político claro que foi pra vencer nelson","duration":3.24,"offset":71.28,"lang":"en"},{"text":"é um nojo esgoto exposto é alguém","duration":3.24,"offset":74.52000000000001,"lang":"en"},{"text":"é tanta injustiça em sangue nas suas","duration":3.24,"offset":77.76,"lang":"en"},{"text":"mãos por não fazer nada a troca","duration":3.24,"offset":81,"lang":"en"},{"text":"de música mais a questão da mão","duration":3.24,"offset":84.24000000000001,"lang":"en"},{"text":"na sua cara secult a favela da","duration":3.24,"offset":87.48,"lang":"en"},{"text":"tela dá só tv ana foi nada","duration":3.24,"offset":90.72,"lang":"en"},{"text":"programado pra perguntar por que tudo no","duration":3.24,"offset":93.96000000000001,"lang":"en"},{"text":"seu tempo já que o foco da","duration":3.24,"offset":97.2,"lang":"en"},{"text":"em conselho de ética fez nada a","duration":3.24,"offset":100.44000000000001,"lang":"en"},{"text":"falha só falar a uma criança casa","duration":3.24,"offset":103.68,"lang":"en"},{"text":"é que mil palavras pequenos beijing decente","duration":3.24,"offset":106.92,"lang":"en"},{"text":"diz que representa quebrada ninguém que o","duration":3.24,"offset":110.16000000000001,"lang":"en"},{"text":"problema da gente de prata para brincar","duration":3.24,"offset":113.4,"lang":"en"},{"text":"de luxo só falta ligada à corrente","duration":3.24,"offset":116.64000000000001,"lang":"en"},{"text":"político tomando um couro finance junta vai","duration":3.24,"offset":119.88000000000001,"lang":"en"},{"text":"na frente pode até recusar a palavra","duration":3.24,"offset":123.12,"lang":"en"},{"text":"vai comandar seu presente e quatro com","duration":3.24,"offset":126.36000000000001,"lang":"en"},{"text":"laço de fita pelo que morreu indigente","duration":3.24,"offset":129.60000000000002,"lang":"en"},{"text":"então essa é uma droga maldita tav","duration":3.24,"offset":132.84,"lang":"en"},{"text":"seria quando você aprende ou retalhador itália","duration":3.24,"offset":136.08,"lang":"en"},{"text":"prevista um passo à frente a frente","duration":3.24,"offset":139.32000000000002,"lang":"en"},{"text":"sangue na taça cidade sem coração vestido","duration":3.24,"offset":142.56,"lang":"en"},{"text":"de calça e ainda não passa perde","duration":3.24,"offset":145.8,"lang":"en"},{"text":"a visão que nós de graça mede","duration":3.24,"offset":149.04000000000002,"lang":"en"},{"text":"breque na emoção fica de vacilação vai","duration":3.24,"offset":152.28,"lang":"en"},{"text":"virar fumaça jam sangue no chão em","duration":3.24,"offset":155.52,"lang":"en"},{"text":"que chora quando vai o filho na","duration":3.24,"offset":158.76000000000002,"lang":"en"},{"text":"noite puxa o inimigo e puxou o","duration":3.24,"offset":162,"lang":"en"},{"text":"gatinho amigo na madruga é qual a","duration":3.24,"offset":165.24,"lang":"en"},{"text":"maldade no band que vai salvar sem","duration":3.24,"offset":168.48000000000002,"lang":"en"},{"text":"salário igual é avisar a mente veneno","duration":3.24,"offset":171.72,"lang":"en"},{"text":"na água se não mata deixa doente","duration":3.24,"offset":174.96,"lang":"en"},{"text":"onde o povo está lá mentira mas","duration":3.24,"offset":178.20000000000002,"lang":"en"},{"text":"acha que a verdade e vida que","duration":3.24,"offset":181.44,"lang":"en"},{"text":"ela é quente e saiu da fila","duration":3.24,"offset":184.68,"lang":"en"},{"text":"que morreu na falar meu aliado nem","duration":3.24,"offset":187.92000000000002,"lang":"en"},{"text":"é britânico na vida lá não sou","duration":3.24,"offset":191.16000000000003,"lang":"en"},{"text":"vidente mas eu sei que vai chover","duration":3.24,"offset":194.4,"lang":"en"},{"text":"ela me encaminha favela vai alagar a","duration":3.24,"offset":197.64000000000001,"lang":"en"},{"text":"tisunami são os porcos no poder se","duration":3.24,"offset":200.88000000000002,"lang":"en"},{"text":"o brilho é só fica fácil de","duration":3.24,"offset":204.12,"lang":"en"},{"text":"apagar me diz quem vai pagar a","duration":3.24,"offset":207.36,"lang":"en"},{"text":"conta da verba que sempre some vocês","duration":3.24,"offset":210.60000000000002,"lang":"en"},{"text":"um chato morrendo de tédio roubando milhares","duration":3.24,"offset":213.84,"lang":"en"},{"text":"de nós de fome do governo tem","duration":3.24,"offset":217.08,"lang":"en"},{"text":"tirano na brincadeira tem hospício onde mais","duration":3.24,"offset":220.32000000000002,"lang":"en"},{"text":"se paga imposto pra não deu benefício","duration":3.24,"offset":223.56,"lang":"en"},{"text":"médio louco no começo vida fácil da","duration":3.24,"offset":226.8,"lang":"en"},{"text":"difícil crescer comenta o meu sócio neles","duration":3.24,"offset":230.04000000000002,"lang":"en"},{"text":"os ossos do ofício pichação não é","duration":3.24,"offset":233.28000000000003,"lang":"en"},{"text":"defeito traição que vira vício rico tirando","duration":3.24,"offset":236.52,"lang":"en"},{"text":"cadeia tipo não é difícil esse é","duration":3.24,"offset":239.76000000000002,"lang":"en"},{"text":"o clima propício para lembrar o trabalhador","duration":3.24,"offset":243.00000000000003,"lang":"en"},{"text":"pra falar da nossa dor do racismo","duration":3.24,"offset":246.24,"lang":"en"},{"text":"no futebol quem odeia pela cor não","duration":3.24,"offset":249.48000000000002,"lang":"en"},{"text":"quer dizer vencedor no verso libertador que","duration":3.24,"offset":252.72000000000003,"lang":"en"},{"text":"pra dar nó em redor no deserto","duration":3.24,"offset":255.96,"lang":"en"},{"text":"não tem flor só espinho que bangkok","duration":3.24,"offset":259.20000000000005,"lang":"en"},{"text":"deixou 12 por alguém com quem muita","duration":3.24,"offset":262.44,"lang":"en"},{"text":"troca do estoque com o filho passar","duration":3.24,"offset":265.68,"lang":"en"},{"text":"só na tua o lar por um","duration":3.24,"offset":268.92,"lang":"en"},{"text":"toque morreu tentando ligar recurso junto com","duration":3.24,"offset":272.16,"lang":"en"},{"text":"a vida de estrela nem com as","duration":3.24,"offset":275.40000000000003,"lang":"en"},{"text":"palavras pedindo gente decente diz que representa","duration":3.24,"offset":278.64000000000004,"lang":"en"},{"text":"quebrada ninguém é problema da gente e","duration":3.24,"offset":281.88,"lang":"en"},{"text":"de prata fabricar diurno só volta ligada","duration":3.24,"offset":285.12,"lang":"en"},{"text":"à corrente político tomando o couro se","duration":3.24,"offset":288.36,"lang":"en"},{"text":"não se juntarem na frente pode até","duration":3.24,"offset":291.6,"lang":"en"},{"text":"recusar nas palavras mas vamos mandar seu","duration":3.24,"offset":294.84000000000003,"lang":"en"},{"text":"presente recuado com laço de vida pelo","duration":3.24,"offset":298.08000000000004,"lang":"en"},{"text":"que morreu indigente lucas é uma droga","duration":3.24,"offset":301.32,"lang":"en"},{"text":"maldita dizia quando você aprende ou é","duration":3.24,"offset":304.56,"lang":"en"},{"text":"retalhado detalhar porque estar um passo à","duration":3.24,"offset":307.8,"lang":"en"},{"text":"frente a frente jô é o dono","duration":3.24,"offset":311.04,"lang":"en"},{"text":"dessa condição que financia a nossa por","duration":3.24,"offset":314.28000000000003,"lang":"en"},{"text":"isso em controlar a informação e escapam","duration":3.24,"offset":317.52000000000004,"lang":"en"},{"text":"o verde o qual é o atalho","duration":3.24,"offset":320.76000000000005,"lang":"en"},{"text":"dessa com isso quem financia a nossa","duration":3.24,"offset":324,"lang":"en"},{"text":"punição quem controla a informação diz cavala","duration":3.24,"offset":327.24,"lang":"en"},{"text":"[Música]"...
                                                                                                                                                                                                                    
                                                                                                    

Get Video Transcript - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/5216/youtube+sub+extractor+api/6681/get+video+transcript?videoId=_LYp2enCvKQ' --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 Sub Extractor API REST 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.

🚀 Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

YouTube Sub Extractor API FAQs

Send the videoId in the GET request to retrieve the transcript of the YouTube video. Optionally, select the language of the transcript.

The YouTube Sub Extractor API allows retrieving text transcripts from YouTube videos using the videoId, improving accessibility and user experience.

Receives: videoId (required) Provides: A transcript in JSON format with the video dialogues.

Retrieve text subtitles to improve video accessibility. Create content analysis tools based on video transcripts. Provide transcripts in multiple languages for a global audience.

Beside the number of API calls per month allowed, there are no other limitations.

There are different plans suits everyone including a free trial for small amount of requests, but it’s rate is limit to prevent abuse of the service.

The API uses API keys for authentication. To access the API, include your API key in the request header. The API key is provided upon registration and should be kept secure.

The API returns detailed information about the age and history of a domain, including years, months and days since its creation, as well as expiration and update dates.

The API returns multilingual transcripts of YouTube videos, structured in JSON format. Each transcript includes segments of dialogue along with their duration, offset, and language.

The key fields in the response include "success" (boolean), "transcript" (array of dialogue objects), each containing "text" (dialogue text), "duration" (time length of the segment), "offset" (start time of the segment), and "lang" (language code).

The response data is organized as a JSON object. The "success" field indicates the request status, while the "transcript" field contains an array of dialogue objects, each detailing the text, duration, offset, and language.

The primary parameter is "videoId" (required) to specify the YouTube video. Optionally, users can specify a "language" parameter to retrieve the transcript in a desired language.

Users can customize requests by providing the "videoId" for the specific video they want to analyze and optionally specifying the "language" parameter to receive transcripts in their preferred language.

The endpoint provides detailed transcripts of video dialogues, including the text of each dialogue segment, its duration, the time offset from the start of the video, and the language of the transcript.

Data accuracy is maintained by directly extracting transcripts from YouTube's closed captioning system, ensuring that the returned text closely matches the spoken content in the video.

Typical use cases include enhancing video accessibility for hearing-impaired users, creating educational tools that utilize video content, and performing content analysis for research or marketing purposes.

General FAQs

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.

To see the maximum number of API requests your plan allows, check the ‘X-Zyla-RateLimit-Limit’ response header. For instance, if your plan includes 1,000 requests per month, this header will display 1,000.

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 plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

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]

To give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.

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.

Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.


Related APIs


You might also like