视频解说 API

视频解说API提供多种语言的YouTube视频转录文本,以JSON格式结构化,以实现顺畅的集成和改善可访问性
通过 MCP 从您的 AI 代理使用此 API
支持 OpenClaw、Claude Code/Desktop、Cursor、Windsurf、Cline 以及任何兼容 MCP 的 AI 客户端。
文档和设置
通过封装此 MCP 创建技能: https://mcp.zylalabs.com/mcp?apikey=YOUR_ZYLA_API_KEY

关于API: 

视频解说API 允许用户通过简单的查询访问YouTube视频转录。这款API非常适合提升视频内容的可访问性,使用户能够以多种语言获得对话的文字表示。该API提供多语言支持,使检索英语、中文和韩语等语言的转录变得简单。通过单一端点轻松集成,您可以提交视频ID以获取相应的转录。如果您愿意,还可以指定要检索的转录语言。

使用此API,响应以JSON格式结构化,便于集成到应用程序和平台中。此外,为了优化性能,内置了速率限制器,以高效管理请求并确保遵守YouTube施加的限制。

无论您是在开发教育平台、内容分析工具,还是仅仅希望提高听障用户的可访问性,这款API都为获取YouTube视频转录提供了有效可靠的解决方案。

API 文档

端点


要使用此端点,请在GET请求中发送videoId参数,以获取相应YouTube视频的文字转录。



                                                                            
GET https://zylalabs.com/api/5417/%e8%a7%86%e9%a2%91%e8%a7%a3%e8%af%b4+api/7022/%e8%8e%b7%e5%8f%96%e8%a7%86%e9%a2%91%e8%bd%ac%e5%bd%95%e6%9c%ac
                                                                            
                                                                        

获取视频转录本 - 端点功能

对象 描述
videoId [必需]
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"success":true,"transcript":[{"text":"some of the best street food i've","duration":3.24,"offset":"0.00","lang":"en"},{"text":"ever eaten was in asia every one","duration":3.24,"offset":"3.24","lang":"en"},{"text":"of those little markets was filled with","duration":3.24,"offset":"6.48","lang":"en"},{"text":"smells of delicious food that all centered","duration":3.24,"offset":"9.72","lang":"en"},{"text":"around an asian staple noodles learn to","duration":3.24,"offset":"12.96","lang":"en"},{"text":"cook those properly and you'll be surprised","duration":3.24,"offset":"16.20","lang":"en"},{"text":"how quick and easy it is to","duration":3.24,"offset":"19.44","lang":"en"},{"text":"knock up a delicious dinner first off","duration":3.24,"offset":"22.68","lang":"en"},{"text":"we're going to soak our noodles now","duration":3.24,"offset":"25.92","lang":"en"},{"text":"these are rice noodles into a bowl","duration":3.24,"offset":"29.16","lang":"en"},{"text":"and just pour the hot water over","duration":3.24,"offset":"32.40","lang":"en"},{"text":"the rice noodles soak and rehydrate 12","duration":3.24,"offset":"35.64","lang":"en"},{"text":"to 15 minutes to soften up if","duration":3.24,"offset":"38.88","lang":"en"},{"text":"you've got a wok perfect if not","duration":3.24,"offset":"42.12","lang":"en"},{"text":"just a normal size frying pan with","duration":3.24,"offset":"45.36","lang":"en"},{"text":"big sloping sides pan on get it","duration":3.24,"offset":"48.60","lang":"en"},{"text":"really nice and hot chicken breast very","duration":3.24,"offset":"51.84","lang":"en"},{"text":"lean hardly any fat on there you've","duration":3.24,"offset":"55.08","lang":"en"},{"text":"got this little fillet to slice that","duration":3.24,"offset":"58.32","lang":"en"},{"text":"off now the secret to getting it","duration":3.24,"offset":"61.56","lang":"en"},{"text":"really nice and thin and to cut","duration":3.24,"offset":"64.80","lang":"en"},{"text":"it into strips take your knife keep","duration":3.24,"offset":"68.04","lang":"en"},{"text":"it nice and flat on the board","duration":3.24,"offset":"71.28","lang":"en"},{"text":"and sort of slice it in half","duration":3.24,"offset":"74.52","lang":"en"},{"text":"like a sort of scallop like that","duration":3.24,"offset":"77.76","lang":"en"},{"text":"we call this butterfly in the chicken","duration":3.24,"offset":"81.00","lang":"en"},{"text":"take a rolling pin and nice and","duration":3.24,"offset":"84.24","lang":"en"},{"text":"gently roll over the chicken what it","duration":3.24,"offset":"87.48","lang":"en"},{"text":"does it sort of flattens it allows","duration":3.24,"offset":"90.72","lang":"en"},{"text":"you to slice it even thinner and","duration":3.24,"offset":"93.96","lang":"en"},{"text":"the thinner the slices of the chicken","duration":3.24,"offset":"97.20","lang":"en"},{"text":"the sort of crisper it gets the","duration":3.24,"offset":"100.44","lang":"en"},{"text":"quicker it cooks slice it in half","duration":3.24,"offset":"103.68","lang":"en"},{"text":"start slicing these nice thin slices and","duration":3.24,"offset":"106.92","lang":"en"},{"text":"the good news is one chicken breast","duration":3.24,"offset":"110.16","lang":"en"},{"text":"can serve two or three easily next","duration":3.24,"offset":"113.40","lang":"en"},{"text":"wash your knife and finely slice garlic","duration":3.24,"offset":"116.64","lang":"en"},{"text":"the thinner the garlic the crispier [Music]","duration":3.24,"offset":"119.88","lang":"en"},{"text":"this is a young tender broccoli just","duration":3.24,"offset":"123.12","lang":"en"},{"text":"slice them down i want a bite","duration":3.24,"offset":"126.36","lang":"en"},{"text":"to the broccoli and normally you sort","duration":3.24,"offset":"129.60","lang":"en"},{"text":"of paste the dish with one-third noodles","duration":3.24,"offset":"132.84","lang":"en"},{"text":"one-third vegetables and one-third of your protein","duration":3.24,"offset":"136.08","lang":"en"},{"text":"chicken [Music] with a dish that takes","duration":3.24,"offset":"139.32","lang":"en"},{"text":"literally minutes to put together it's really","duration":3.24,"offset":"142.56","lang":"en"},{"text":"important to get everything organized everything needs","duration":3.24,"offset":"145.80","lang":"en"},{"text":"to be at your fingertips touch of","duration":3.24,"offset":"149.04","lang":"en"},{"text":"olive oil get a pan really nice","duration":3.24,"offset":"152.28","lang":"en"},{"text":"and ready just starting to smoke drop","duration":3.24,"offset":"155.52","lang":"en"},{"text":"the chicken in first [Music] salt pepper","duration":3.24,"offset":"158.76","lang":"en"},{"text":"open up those little strands of chicken","duration":3.24,"offset":"162.00","lang":"en"},{"text":"nice once you've started to sear off","duration":3.24,"offset":"165.24","lang":"en"},{"text":"the chicken get the garlic in now","duration":3.24,"offset":"168.48","lang":"en"},{"text":"let that get really nice and crispy","duration":3.24,"offset":"171.72","lang":"en"},{"text":"the way to do it is to","duration":3.24,"offset":"174.96","lang":"en"},{"text":"sort of spread all the chicken the","duration":3.24,"offset":"178.20","lang":"en"},{"text":"garlic up the side of the pan","duration":3.24,"offset":"181.44","lang":"en"},{"text":"can see why it's so important to","duration":3.24,"offset":"184.68","lang":"en"},{"text":"cut the chicken thin strips because it","duration":3.24,"offset":"187.92","lang":"en"},{"text":"colors and cooks at the same time","duration":3.24,"offset":"191.16","lang":"en"},{"text":"as well really really crucial now that","duration":3.24,"offset":"194.40","lang":"en"},{"text":"garlic's getting really nice and crispy broccoli","duration":3.24,"offset":"197.64","lang":"en"},{"text":"in feels strange putting raw broccoli in","duration":3.24,"offset":"200.88","lang":"en"},{"text":"like that normally we'll blanch it in","duration":3.24,"offset":"204.12","lang":"en"},{"text":"boiling water dry it out but you","duration":3.24,"offset":"207.36","lang":"en"},{"text":"want that crunch now soy sauce that","duration":3.24,"offset":"210.60","lang":"en"},{"text":"helps to season it but also stains","duration":3.24,"offset":"213.84","lang":"en"},{"text":"beautifully soy sauce in lovely it's exactly","duration":3.24,"offset":"217.08","lang":"en"},{"text":"what i want now take that out","duration":3.24,"offset":"220.32","lang":"en"},{"text":"give you a pan a little wipe","duration":3.24,"offset":"223.56","lang":"en"},{"text":"out a little teaspoon of olive oil","duration":3.24,"offset":"226.80","lang":"en"},{"text":"get that wok really nicely oiled again","duration":3.24,"offset":"230.04","lang":"en"},{"text":"drain your noodles they're beautiful this is","duration":3.24,"offset":"233.28","lang":"en"},{"text":"a really exciting way of finishing this","duration":3.24,"offset":"236.52","lang":"en"},{"text":"quick stir fry very classic two eggs","duration":3.24,"offset":"239.76","lang":"en"},{"text":"in [Music] whisk up the eggs and","duration":3.24,"offset":"243.00","lang":"en"},{"text":"give that a really good whisk [Music]","duration":3.24,"offset":"246.24","lang":"en"},{"text":"sort of almost spread it at the","duration":3.24,"offset":"249.48","lang":"en"},{"text":"side of the pan lightly season the","duration":3.24,"offset":"252.72","lang":"en"},{"text":"eggs noodles in chicken and broccoli in","duration":3.24,"offset":"255.96","lang":"en"},{"text":"and give that a really nice mix","duration":3.24,"offset":"259.20","lang":"en"},{"text":"you want the egg to sort of","duration":3.24,"offset":"262.44","lang":"en"},{"text":"almost bring the dish together that egg's","duration":3.24,"offset":"265.68","lang":"en"},{"text":"cooked [Music] make sure you've got that","duration":3.24,"offset":"268.92","lang":"en"},{"text":"nice even distribution of chicken broccoli garlic","duration":3.24,"offset":"272.16","lang":"en"},{"text":"lovely and then just finish that fresh","duration":3.24,"offset":"275.40","lang":"en"},{"text":"lime and then you have a very","duration":3.24,"offset":"278.64","lang":"en"},{"text":"simple delicious stir-fry with rice noodles [Music]","duration":3.24,"offset":"281.88","lang":"en"},{"text":"making your enoki is so simple to","duration":3.24,"offset":"285.12","lang":"en"},{"text":"do yet the results are absolutely stunning","duration":3.24,"offset":"288.36","lang":"en"},{"text":"and it's a great way of using","duration":3.24,"offset":"291.60","lang":"en"},{"text":"up leftover baked potatoes you can make","duration":3.24,"offset":"294.84","lang":"en"},{"text":"noki just with flour and eggs however","duration":3.24,"offset":"298.08","lang":"en"},{"text":"the potato gives it a nice light","duration":3.24,"offset":"301.32","lang":"en"},{"text":"sort of creamy fluffy texture cut them","duration":3.24,"offset":"304.56","lang":"en"},{"text":"in half take your spoon and scoop","duration":3.24,"offset":"307.80","lang":"en"},{"text":"the inside of those potatoes i'm using","duration":3.24,"offset":"311.04","lang":"en"},{"text":"leftover baked potatoes but this really works","duration":3.24,"offset":"314.28","lang":"en"},{"text":"as well with leftover ball potatoes two","duration":3.24,"offset":"317.52","lang":"en"},{"text":"choices you can get a fork and","duration":3.24,"offset":"320.76","lang":"en"},{"text":"sort of mash the potato and get","duration":3.24,"offset":"324.00","lang":"en"},{"text":"it nice and light and fluffy or","duration":3.24,"offset":"327.24","lang":"en"},{"text":"this little gadget is called a ricer","duration":3.24,"offset":"330.48","lang":"en"},{"text":"i suppose it's a posh word for","duration":3.24,"offset":"333.72","lang":"en"},{"text":"a potato masher just squeeze gently you","duration":3.24,"offset":"336.96","lang":"en"},{"text":"can see how nice and light it","duration":3.24,"offset":"340.20","lang":"en"},{"text":"is almost like fluffy little strands of","duration":3.24}],"_note":"Response truncated for documentation purposes"}
                                                                                                                                                                                                                    
                                                                                                    

获取视频转录本 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/5417/%e8%a7%86%e9%a2%91%e8%a7%a3%e8%af%b4+api/7022/%e8%8e%b7%e5%8f%96%e8%a7%86%e9%a2%91%e8%bd%ac%e5%bd%95%e6%9c%ac?videoId=_LYp2enCvKQ' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 视频解说 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
标头
标头 描述
授权 [必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

简单透明的定价

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

🚀 企业版

起价
$ 10,000/年


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

客户喜爱的功能

  • ✔︎ 仅支付成功请求
  • ✔︎ 7 天免费试用
  • ✔︎ 多语言支持
  • ✔︎ 一个 API 密钥,所有 API。
  • ✔︎ 直观的仪表板
  • ✔︎ 全面的错误处理
  • ✔︎ 开发者友好的文档
  • ✔︎ Postman 集成
  • ✔︎ 安全的 HTTPS 连接
  • ✔︎ 可靠的正常运行时间

视频解说 API FAQs

在GET请求中发送videoId以获取YouTube视频的转录文本 可选地选择转录文本的语言

视频叙述API允许使用videoId从YouTube视频中检索文本转录,改善可访问性和用户体验

接收:videoId(必填) 提供:以JSON格式提供视频对话的文字记录

获取文本字幕以提高视频可访问性 基于视频文字记录创建内容分析工具 为全球观众提供多语言的文本记录

除了每月允许的API调用次数外没有其他限制

有不同的计划适合每个人,包括针对少量请求的免费试用,但其速率有限以防止滥用服务

API使用API密钥进行身份验证 要访问API,请在请求头中包含您的API密钥 API密钥在注册时提供 并应保持安全

该API返回有关域名的年龄和历史的详细信息,包括自创建以来的年、月和日,以及到期和更新日期

该API以JSON格式返回视频文本,包括所说的文本、每个片段的持续时间以及每个片段在视频中出现的时间偏移量

响应中的关键字段包括“text”(对话), “duration”(片段长度), “offset”(视频中的时间位置),以及“lang”(文本的语言)

响应数据被结构化为一个包含“success”布尔值和“transcript”数组的JSON对象。数组中的每个元素表示一个对话的片段及其相关元数据

该端点提供YouTube视频的完整文字记录,包括对话文本、持续时间和时间偏移量,便于进行详细分析和可访问性增强

用户可以通过指定“videoId”参数来自定义请求,以检索特定视频的转录文本,并可选择所需的转录语言

“文本”表示口语,“持续时间”显示该段持续多长时间,“偏移量”告诉该段在视频中何时开始,“语言”指定了转录的语言

该API依赖于YouTube现有的转录文本,确保数据直接来自该平台,该平台通常在其字幕和配音中保持高准确性

典型的用例包括增强听力障碍用户的无障碍性 创建教育内容 和进行内容分析以用于研究或营销目的

一般常见问题

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 秒直到限制重置。

是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。

您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。

7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。

当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。

付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。


相关 API