YouTubeSubtitlesFetcher API API ID: 11891

Fetch YouTube video subtitles and transcripts in 100+ languages instantly. Supports auto-captions, manual subtitles, timestamps, and plain text output. Ideal for transcription, translation, and NLP pipelines
Use this API from your AI agent via MCP
Works with OpenClaw, Claude Code/Desktop, Cursor, Windsurf, Cline and any MCP-compatible AI client.
Docs & setup
Create a skill by wrapping this MCP: https://mcp.zylalabs.com/mcp?apikey=YOUR_ZYLA_API_KEY

The YouTubeSubtitles API is a powerful tool designed for developers and content creators looking to access, manipulate, and integrate subtitle data from YouTube videos into their applications or workflows.

This API allows users to fetch subtitles for any publicly available YouTube video, providing an effortless and automated way to access transcription data in various languages. Users can retrieve subtitles in multiple formats, including standard text and more structured formats like SRT or VTT, making it versatile for different use cases.

The API is designed with ease of use in mind, featuring a simple and intuitive interface that allows developers to quickly integrate subtitle fetching capabilities into their applications with minimal effort. Detailed documentation and sample code are available to assist users in getting started and maximizing the potential of the API. Whether you are developing a mobile application, a web platform, or a data analysis tool, the YouTubeSubtitles API provides the resources needed to enhance your projects with rich, accessible subtitle data.

API Documentation

Endpoints


 

Query Parameters

Parameter Type Required Default Description
format string No json Output format: json, text, srt, webvtt
languages string No en Comma-separated language codes in priority order (e.g. de,en tries German first, falls back to English)
video_id string ✅ Yes   The YouTube video ID (e.g. dQw4w9WgXcQ)

Responses

JSON Format

Content-Type: application/json

{

  "video_id": "dQw4w9WgXcQ",

  "language": "English",

  "language_code": "en",

  "is_generated": true,

  "snippets": [

    { "text": "Hello", "start": 0.0, "duration": 1.5 },

    { "text": "world", "start": 1.5, "duration": 2.0 }

  ]

}


SRT Format

Content-Type: text/plain

1

00:00:00,000 --> 00:00:01,500

Hello

2

00:00:01,500 --> 00:00:03,500

world


WebVTT Format

Content-Type: text/plain

WEBVTT

00:00:00.000 --> 00:00:01.500

Hello

00:00:01.500 --> 00:00:03.500

world


Plain Text Format

Content-Type: text/plain

Returns the full transcript as a single continuous block of text with no timestamps.


Notes

  • The video_id is the 11-character string found in a YouTube URL after ?v= or youtu.be/.

  • If the requested language is unavailable, the API falls back to the next language in the languages list.

  • Not all videos have transcripts available. Videos without captions will return an error.



                                                                            
GET https://zylalabs.com/api/11891/youtubesubtitlesfetcher+api/22598/youtubetranscript
                                                                            
                                                                        

youtubeTranscript - Endpoint Features

Object Description
videoId [Required] Id of the video can be found after ?v= in video link
format [Required] supported format value json / text / srt
languages Optional Default value is en. You can provide comma seperated values as en,de

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

videoId
format
languages

API EXAMPLE RESPONSE

Uruguay is one of the easiest countries
in South America who offers permanent
residency directly. How you can get a
permanent residency in Uruguay without
investment. If you have stable income
like pension or passive income or even
active income, you can apply for
permanent residency in Uruguay. Hello
guys, welcome back to the channel. This
is Wii from Second Home Visa. Today I'm
going to discuss about Uruguay permanent
residency. Uruguay is one of the easiest
countries in South America.
Uh who offers permanent residency
directly. But uh to be very honest with
you, there are many people going to
Uruguay which is also called Uruguay in
Spanish. Many people from USA and Canada
are relocating to Uruguay especially
from USA because of the Trump
administration taking you know a lot of
actions against different groups. So
people are actually moving to Uruguay
and that's why the system is a little
bit uh overcrowded and there is a
backlog now. So it's not easy now. Easy
means like it's not fast. Now you have
to wait to get the permanent residency
right even for the temporary residency
card you have to wait now. So basically
how you can get a permanent residency in
Uruguay without investment. Uruguay is
very very flexible country because this
is one of the few countries in South
America who have very flexible laws for
foreigners and for migrants. Right? So
if you have stable income like uh
pension or passive income or even active
income, you can apply for permanent
residency in Uruguay. So I will give you
the step-by-step guide and I will also
give you a bonus at the end of this
video. So you must watch this video till
the end to get the bonus uh option as
well. Right. So basically you have to go
to Uruguay first. If you need a visa,
you have to get a visa. Or if you don't
need a visa, you can go there and just,
you know, land in the country and as a
visitor, you can arrive in the country
and get a stem from the immigration at
the airport and then you can apply
within the country. To apply for
permanent residency or even temporary
residency, you have to be in Uruguay.
This is the first condition, right? So
once you are there, you can apply to the
migration department for permanent
residency and they will issue you a
temporary residency while your permanent
residency is still processed. So it's
not a 24-hour game or it's not a 24-hour
process. It takes time. For example, if
you apply for the permanent residency,
you will get the temporary residency
within 1 to 2 months. Now before it was
like 10 to 15 days but now uh things
have like orc crowded right the system
is overcrowded so it will take now one
to two months to get the temporary
residence card. So basically you have to
prepare for the application in your home
country. What I mean by that I mean by
that you have to bring many documents
from your home country like police
character certificate, birth
certificate, marriage certificate if you
are coming with family. These all
documents should be apostiled or
authenticated like attested in your
country right and then once you bring
these documents you have to also bring
documents like uh income proof you know
what is your income what is your bank
statement and stuff like that you have
to bring all of these documents to
Uruguay and then in Uruguay uh these
documents must be uh translated to
Spanish you should not translate these
documents outside Uruguay
When you come to Uruguay, you have to
translate uh these documents by official
translator. There are official
translators in Uruguay. Now, the minimum
monthly requirement, income requirement
is $1,500.
If you are earning $1,500 and you can
prove that, then you are good to go. But
if you have family, then it should be
like more than $2,000 a month, right? So
this is basically uh the criteria and
you can include your family as well.
Right? The documents that you need for
the permanent residency once you are in
Uruguay I have written everything down
here. Uh you need the passport with a
legal entry. Legal entry means that
stamp you got from the immigration. And
then you have to make a health card in
Uruguay. It's like a medical
certificate, right? Uh proof of income,
bank statement and stuff. uh criminal
background certificate, local address
when once you arrive in uh Uruguay, you
have to get a house on rent or apartment
and then you will provide your address
to the immigration so they can send you
information and uh your birth
certificate you know even you need a
birth certificate not just for the
children you also need a birth
certificate as a main applicant. So you
must bring that as well from your
country and the documents should be
recently issued. This is very important.
You should not bring old documents.
Right? So the step-by-step process is
that you will enter Uruguay and then
after that you will get all these
documents translated and then you will
apply. So basically it takes time and
Uruguay is a Spanish-sp speakaking
country. The official language is
Spanish. So you need someone like help
from someone some professional guy who
should help you with each and every step
of the process right this is very
important because for foreigners it's
not easy to do all these things together
but the good news is most of the
consultants and the lawyers who are
working in Uruguay for residency for
permanent residency and for citizenship
they charge a very very reasonable fees
which is a good thing because they don't
charge too much like Brazil and
Argentina because in in Argentina and
Brazil they charge a lot of money. They
just charge you for just simply asking
question as well. So that's a whole
burden on the applicant. But in Uruguay
they just want to help the immigrants to
come to the country and settle down
there. So what you can do I have written
down a very very comprehensive uh
detailed stepby-step guide. I told you
about the process but there are many
more steps like you should understand
everything you know with step-by-step
guidelines. So I have written down in
text format and I have given all the
links to like where to get the
appointment how to go to different
offices for different things and where
to you know translate the documents and
stuff like that. So I have written down
a whole guide for Uruguay. I will put
the link in the description and you can
just go there and buy this guide. There
is a very very small fee for it like
it's just a price of a coffee right in
USA or a meal. So in this guide I have
also written down the contact
information of very authentic
consultants and lawyers who are based in
Uruguay. I am not associated with them.
They don't pay me any commission or
anything but I have talked to like many
people, many consultants and many
lawyers in Uruguay and I found these
guys are very helpful and they help you
with everything in free of cost before
the application and once you start the
application you pay them but a very
reasonable amount like 800 to 1200 you
can pay them and they will do all the
process uh for the permanent residency
like the application and stuff like that
but again as I told you in the start
it's no more an easy option it's no more
a quick option I would say it's easy
still easier uh than other countries but
it now takes time so be very careful
with your time because once you go there
and you apply for the permanent
residency you have to stay there because
if you want to get the permanent
residency you have to stay there in
Uruguay for at least 6 months in a year
and if you want citizenship as well
Uruguay offers uh very very easy and
simple process for naturalization
citizenship only after 3 years for
married people and 5 years for single
persons right so for a family it's a
very good option to get a passport which
is a very good and strong document right
but the thing is you have to live there
right and most of the time the
consultant will will guide you about the
income because from outside it's very
difficult to prove your income in
Uruguay because they won't believe most
of the times right so the better option
is to open a bank account in Uruguay and
then put uh some amount like transfer
the amount from outside and wait for 2
or 3 months and then you can provide
that income to as a proof of you know
like your income proof or that you have
money you can support yourself in
Uruguay or you can start a business and
then you can support your application
through business as well. So, thank you
very much. I will put the link in the
description. Uh, you can check that out,
right?

YoutubeTranscript - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/11891/youtubesubtitlesfetcher+api/22598/youtubetranscript?videoId=yqtWwG4B1o4&format=text&languages=en' --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 YouTubeSubtitlesFetcher 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

YouTubeSubtitlesFetcher API FAQs

The youtubeTranscript endpoint returns subtitles and transcripts for YouTube videos, including auto-generated captions and manually uploaded subtitles. The data can be retrieved in various formats such as JSON, SRT, WebVTT, or plain text.

The JSON response includes key fields such as "video_id," "language," "language_code," "is_generated," and "snippets." Each snippet contains "text," "start," and "duration," providing detailed timing and content information.

Users can customize requests using parameters like "format" to specify the output type (e.g., json, srt) and "languages" to prioritize subtitle languages. The "video_id" parameter is required to identify the specific YouTube video.

In JSON format, data is structured with key-value pairs, while SRT and WebVTT formats present subtitles in a sequential format with timestamps. Plain text format returns a continuous block of text without timestamps.

The endpoint provides subtitle text, timing information, and language details for YouTube videos. It supports multiple languages and formats, making it suitable for transcription, translation, and NLP applications.

The API retrieves subtitles directly from YouTube, ensuring that the data reflects the original content. However, accuracy may vary based on the quality of auto-generated captions versus manually uploaded subtitles.

Typical use cases include creating transcripts for video content, translating subtitles for multilingual audiences, and integrating subtitle data into applications for enhanced accessibility and user engagement.

If subtitles are unavailable, the API will return an error. Users should implement error handling in their applications to manage such scenarios gracefully, possibly by providing fallback content or user notifications.

General FAQs

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.

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.
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.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

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


Related APIs