YouTube字幕获取器 API

API ID 11891

即时获取100多种语言的YouTube视频字幕和转录 支持自动字幕 手动字幕 时间戳和纯文本输出 适用于转录 翻译和自然语言处理流程

100% 正常运行时间 3,326 ms 平均响应

API 文档

端点

请求

 

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.

Endpoint ID: 22598
GET https://zylalabs.com/api/11891/youtubesubtitlesfetcher+api/22598/youtubetranscript
输入参数

youtubeTranscript — 端点功能

对象 描述
videoId 必需 Id of the video can be found after ?v= in video link
format 必需 supported format value json / text / srt
languages 可选 Default value is en. You can provide comma seperated values as en,de

剩余免费测试请求:3 / 3。


输入参数

videoId
format
languages
API 示例响应
JSON
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 — 代码片段

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 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 YouTube字幕获取器 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

(年度计费可节省 2 个月 🎉)

🚀 企业版套餐

起价
$ 10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

YouTube字幕API是一个强大的工具,旨在帮助开发者和内容创作者获取、操作和将YouTube视频中的字幕数据集成到他们的应用程序或工作流程中

该API允许用户获取任何公开可用的YouTube视频的字幕,提供了一种轻松和自动化的方式来访问各种语言的转录数据。用户可以以多种格式检索字幕,包括标准文本和更结构化的格式,如SRT或VTT,使其适用于不同的使用场景

该API的设计考虑了易用性,具有简单直观的界面,允许开发者快速将字幕获取功能集成到他们的应用程序中,所需的努力最小。详细的文档和示例代码可供用户参考,以帮助他们入门并充分发挥API的潜力。无论您是在开发移动应用程序、Web平台还是数据分析工具,YouTube字幕API提供了增强项目所需丰富、可访问的字幕数据的资源

YouTube字幕获取器 API FAQs

YoutubeTranscript接口返回YouTube视频的字幕和转录,包括自动生成的字幕和手动上传的字幕 数据可以以JSON SRT WebVTT或普通文本等多种格式检索

JSON响应包括关键字段,如“video_id”,“language”,“language_code”,“is_generated”和“snippets”。每个snippet包含“text”,“start”和“duration”,提供详细的时间和内容信息

用户可以使用参数如“format”来指定输出类型(例如json srt)和“languages”来优先选择字幕语言来定制请求。“video_id”参数是必需的,用于识别特定的YouTube视频

在JSON格式中数据通过键值对进行结构化而SRT和WebVTT格式以时间戳的顺序格式呈现字幕纯文本格式则返回没有时间戳的连续文本块

该端点提供了YouTube视频的字幕文本、时间信息和语言细节。它支持多种语言和格式,使其适用于转录、翻译和自然语言处理应用。

该API直接从YouTube获取字幕,确保数据反映原始内容。然而,准确性可能因自动生成的字幕与手动上传的字幕的质量而有所不同

典型的用例包括为视频内容创建文字记录为多语言观众翻译字幕以及将字幕数据集成到应用程序中以增强可访问性和用户参与度

如果字幕不可用,API将返回错误 用户应在其应用程序中实施错误处理,以优雅地管理此类场景,可能通过提供备用内容或用户通知

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 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 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API


您可能还喜欢