YouTube短视频 API

API ID 14704

在任何长YouTube视频中找到最佳短视频片段/快拍/TikTok时刻(时间戳 吸引力 病毒传播分数 标题 标签 SRT)并获取任何短视频的字幕作为SRT/VTT/文本

10,313 ms 平均响应

API 文档

端点

请求
YouTube Shorts字幕提取器 - SRT VTT 钩子 批量 每个请求返回最多100个结果作为JSON
Endpoint ID: 38022
GET https://zylalabs.com/api/14704/youtube+shorts+api/38022/youtube+shorts+transcript+scraper
输入参数

YouTube短视频文本爬虫 — 端点功能

对象 描述
shortsUrls 可选 Shorts URLs or IDs, or channel URLs / @handles (their newest Shorts are used). Several values: comma separated.
maxShortsPerChannel 可选 How many of the newest Shorts to take from each channel.
languages 可选 Preferred caption languages, e.g. en, es. Falls back to any language. Several values: comma separated.
translateTo 可选 Language code to translate captions into using YouTube translation, e.g. en.
hashtags 可选 Your hashtags added to every suggested caption.
maxItems 可选 Hard limit on saved results (and cost).

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


输入参数

shortsUrls
maxShortsPerChannel
languages
translateTo
hashtags
maxItems
API 示例响应
JSON
{
    "count": 5,
    "items": [
        {
            "videoId": "ZVGS33A0nK0",
            "url": "https://www.youtube.com/shorts/ZVGS33A0nK0",
            "title": "Authoritarianism isn’t winning, democracy is failing, says Sally Kohn #TEDTalks",
            "channelName": "TED",
            "channelUrl": "https://www.youtube.com/channel/UCAuUUnT6oDeKwE6v1NGQxug",
            "language": "English (auto-generated)",
            "languageCode": "en",
            "isAutoGenerated": true,
            "text": "The top 1% of Americans control as much wealth as the entire bottom 90% of the country combined. And according to one source, CEOs now make 281 times more than average workers. 281",
            "srt": "1\n00:00:00,000 --> 00:00:07,680\nThe top 1% of Americans control as much\n\n2\n00:00:04,040 --> 00:00:13,320\nwealth as the entire\n\n3\n00:00:07,680 --> 00:00:16,640\nbottom 90% of the cou",
            "vtt": "WEBVTT\n\n00:00:00.000 --> 00:00:07.680\nThe top 1% of Americans control as much\n\n00:00:04.040 --> 00:00:13.320\nwealth as the entire\n\n00:00:07.680 --> 00:00:16.640\nbottom 90% of the c",
            "sentences": [
                {
                    "start": 0,
                    "text": "The top 1% of Americans control as much wealth as the entire bottom 90% of the country combined."
                },
                {
                    "start": 13.32,
                    "text": "And according to one source, CEOs now make 281 times more than average workers."
                },
                {
                    "start": 24.36,
                    "text": "281 times more?"
                }
            ],
            "wordCount": 250,
            "durationSeconds": 144.3,
            "wordsPerSecond": 1.73,
            "hook": "The top 1% of Americans control as much wealth as the entire bottom 90% of the country combined.",
            "suggestedCaption": "Authoritarianism isn’t winning, democracy is failing, says Sally Kohn #TEDTalks\n\n#democracy #times #means #something #country #equal",
            "suggestedHashtags": [
                "#democracy",
                "#times",
                "#means"
            ],
            "scrapedAt": "2026-11-06T13:09:11Z"
        },
        {
            "videoId": "SM3lUcU2Z2I",
            "url": "https://www.youtube.com/shorts/SM3lUcU2Z2I",
            "title": "We’re all less cult-prof than we would like to think #TEDTalks",
            "channelName": "TED",
            "channelUrl": "https://www.youtube.com/channel/UCAuUUnT6oDeKwE6v1NGQxug",
            "language": "English (auto-generated)",
            "languageCode": "en",
            "isAutoGenerated": true,
            "text": "They came bearing handbeed offerings inscribed with sacred numbers. 22 13 89. But this, my friends, is not the story of an apocalyptic sect on a far away compound. No, this was a T",
            "srt": "1\n00:00:00,240 --> 00:00:09,040\nThey came bearing handbeed offerings\n\n2\n00:00:02,400 --> 00:00:11,600\ninscribed with sacred numbers. 22 13 89.\n\n3\n00:00:09,040 --> 00:00:13,760\nBut",
            "vtt": "WEBVTT\n\n00:00:00.240 --> 00:00:09.040\nThey came bearing handbeed offerings\n\n00:00:02.400 --> 00:00:11.600\ninscribed with sacred numbers. 22 13 89.\n\n00:00:09.040 --> 00:00:13.760\nBu",
            "sentences": [
                {
                    "start": 0.24,
                    "text": "They came bearing handbeed offerings inscribed with sacred numbers. 22 13 89."
                },
                {
                    "start": 9.04,
                    "text": "But this, my friends, is not the story of an apocalyptic sect on a far away compound. No, this was a Taylor Swift concert."
                },
                {
                    "start": 18.64,
                    "text": "I'm not here to call out Swifties' cult followers. No, I wouldn't dare. I'm here to share how we're all susceptible to cultish thinking for better and for worse and our everyday vo"
                }
            ],
            "wordCount": 368,
            "durationSeconds": 137,
            "wordsPerSecond": 2.69,
            "hook": "They came bearing handbeed offerings inscribed with sacred numbers.",
            "suggestedCaption": "We’re all less cult-prof than we would like to think #TEDTalks\n\n#want #feel #cult #cultish #apocalyptic #thinking",
            "suggestedHashtags": [
                "#want",
                "#feel",
                "#cult"
            ],
            "scrapedAt": "2026-11-06T13:09:12Z"
        },
        {
            "videoId": "JOPuUlsXMso",
            "url": "https://www.youtube.com/shorts/JOPuUlsXMso",
            "title": "Instead of asking why they stay, ask how we can help #TEDTalks",
            "channelName": "TED",
            "channelUrl": "https://www.youtube.com/channel/UCAuUUnT6oDeKwE6v1NGQxug",
            "language": "English (auto-generated)",
            "languageCode": "en",
            "isAutoGenerated": true,
            "text": "It's incredibly dangerous to leave an abuser. Because the final step in the domestic violence pattern is kill her. Over 70% of domestic violence murders happen after the victim has",
            "srt": "1\n00:00:00,000 --> 00:00:04,320\nIt's incredibly dangerous to leave an\n\n2\n00:00:02,200 --> 00:00:06,480\nabuser.\n\n3\n00:00:04,320 --> 00:00:09,520\nBecause the final step in the domest",
            "vtt": "WEBVTT\n\n00:00:00.000 --> 00:00:04.320\nIt's incredibly dangerous to leave an\n\n00:00:02.200 --> 00:00:06.480\nabuser.\n\n00:00:04.320 --> 00:00:09.520\nBecause the final step in the dome",
            "sentences": [
                {
                    "start": 0,
                    "text": "It's incredibly dangerous to leave an abuser."
                },
                {
                    "start": 4.32,
                    "text": "Because the final step in the domestic violence pattern is kill her. Over 70% of domestic violence murders happen after the victim has ended the relationship because then the abuse"
                },
                {
                    "start": 15.44,
                    "text": "nothing left to lose."
                }
            ],
            "wordCount": 161,
            "durationSeconds": 77.2,
            "wordsPerSecond": 2.09,
            "hook": "It's incredibly dangerous to leave an abuser.",
            "suggestedCaption": "Instead of asking why they stay, ask how we can help #TEDTalks\n\n#leave #abuser #domestic #violence #final #kill",
            "suggestedHashtags": [
                "#leave",
                "#abuser",
                "#domestic"
            ],
            "scrapedAt": "2026-11-06T13:09:17Z"
        }
    ]
}
YouTube短视频文本爬虫 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/14704/youtube+shorts+api/38022/youtube+shorts+transcript+scraper?shortsUrls=https://www.youtube.com/@TED&maxShortsPerChannel=5&languages=en&maxItems=5' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
病毒短片查找器 - 播客剪辑和YouTube短视频时刻 每个请求最多返回100个结果以JSON格式
Endpoint ID: 38023
GET https://zylalabs.com/api/14704/youtube+shorts+api/38023/viral+clip+finder
输入参数

病毒剪辑查找器 — 端点功能

对象 描述
videoUrls 可选 Podcasts, interviews, streams or talks: a video URL or ID, a playlist URL, or a channel URL / @handle (its newest videos are used). Several values: comma separated.
clipsPerVideo 可选 How many of the best moments to return for each video.
minClipSeconds 可选 Shortest clip to return.
maxClipSeconds 可选 Longest clip. 55-60 for YouTube Shorts and Reels, up to 180 for TikTok.
minViralityScore 可选 Skip weaker moments. 0 returns all requested clips.
hashtags 可选 Your own hashtags added to every suggestion, e.g. #podcast.
includeSrt 可选 Ready-to-use subtitles for every clip, timed from 0.
languages 可选 Preferred caption languages, e.g. en, es, de. Falls back to any available language. Several values: comma separated.
maxVideosPerSource 可选 How many of the newest videos to take from each playlist or channel.
maxItems 可选 Hard limit on how many clips the run saves (and you pay for).

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


输入参数

videoUrls
clipsPerVideo
minClipSeconds
maxClipSeconds
minViralityScore
hashtags
includeSrt
languages
maxVideosPerSource
maxItems
API 示例响应
JSON
{
    "count": 10,
    "items": [
        {
            "videoId": "arj7oStGLkU",
            "videoUrl": "https://www.youtube.com/watch?v=arj7oStGLkU",
            "videoTitle": "Inside the Mind of a Master Procrastinator | Tim Urban | TED",
            "channelName": "TED",
            "rank": 1,
            "startSeconds": 77.7,
            "endSeconds": 132,
            "durationSeconds": 54.3,
            "viralityScore": 10,
            "hook": "How hard could it be to walk up the stairs?",
            "suggestedTitle": "How hard could it be to walk up the stairs?",
            "suggestedHashtags": [
                "#months",
                "#went",
                "#laughter"
            ],
            "transcript": "How hard could it be to walk up the stairs? No big deal, right? But then, the funniest thing happened. Those first few months? They came and went, and I couldn't quite do stuff. So",
            "whyThisClip": "strong opening line, concrete numbers, emotional words, a twist/contrast, a question that creates curiosity, ends on a complete thought, fast, clear pace",
            "clipUrl": "https://www.youtube.com/watch?v=arj7oStGLkU&t=77s",
            "embedUrl": "https://www.youtube.com/embed/arj7oStGLkU?start=77&end=133",
            "language": "en",
            "url": "https://www.youtube.com/watch?v=arj7oStGLkU&t=77s",
            "scrapedAt": "2026-11-06T13:08:45Z",
            "srt": "1\n00:00:00,000 --> 00:00:02,060\nHow hard could it be to walk up the stairs?\n\n2\n00:00:02,530 --> 00:00:03,850\nNo big deal, right?\n\n3\n00:00:05,390 --> 00:00:07,200\nBut then, the funn"
        },
        {
            "videoId": "arj7oStGLkU",
            "videoUrl": "https://www.youtube.com/watch?v=arj7oStGLkU",
            "videoTitle": "Inside the Mind of a Master Procrastinator | Tim Urban | TED",
            "channelName": "TED",
            "rank": 2,
            "startSeconds": 245,
            "endSeconds": 287.1,
            "durationSeconds": 42.1,
            "viralityScore": 9.2,
            "hook": "Now, what does this mean for the procrastinator?",
            "suggestedTitle": "Now, what does this mean for the procrastinator?",
            "suggestedHashtags": [
                "#rational",
                "#decision",
                "#laughter"
            ],
            "transcript": "Now, what does this mean for the procrastinator? Well, it means everything's fine until this happens. [This is a perfect time to get some work done.] [Nope!] So the Rational Decisi",
            "whyThisClip": "strong opening line, concrete numbers, a twist/contrast, a question that creates curiosity, ends on a complete thought, fast, clear pace",
            "clipUrl": "https://www.youtube.com/watch?v=arj7oStGLkU&t=245s",
            "embedUrl": "https://www.youtube.com/embed/arj7oStGLkU?start=245&end=288",
            "language": "en",
            "url": "https://www.youtube.com/watch?v=arj7oStGLkU&t=245s",
            "scrapedAt": "2026-11-06T13:08:45Z",
            "srt": "1\n00:00:00,000 --> 00:00:02,300\nNow, what does this mean for the procrastinator?\n\n2\n00:00:02,330 --> 00:00:04,770\nWell, it means everything's fine until this happens.\n\n3\n00:00:04,7"
        },
        {
            "videoId": "arj7oStGLkU",
            "videoUrl": "https://www.youtube.com/watch?v=arj7oStGLkU",
            "videoTitle": "Inside the Mind of a Master Procrastinator | Tim Urban | TED",
            "channelName": "TED",
            "rank": 3,
            "startSeconds": 653,
            "endSeconds": 687.4,
            "durationSeconds": 34.4,
            "viralityScore": 8.8,
            "hook": "Why are all of these people in such a dark place?",
            "suggestedTitle": "Why are all of these people in such a dark place?",
            "suggestedHashtags": [
                "#procrastination",
                "#deadlines",
                "#i've"
            ],
            "transcript": "Why are all of these people in such a dark place? Well, it turns out that there's two kinds of procrastination. Everything I've talked about today, the examples I've given, they al",
            "whyThisClip": "strong opening line, emotional words, a twist/contrast, a question that creates curiosity, ends on a complete thought, fast, clear pace",
            "clipUrl": "https://www.youtube.com/watch?v=arj7oStGLkU&t=653s",
            "embedUrl": "https://www.youtube.com/embed/arj7oStGLkU?start=653&end=688",
            "language": "en",
            "url": "https://www.youtube.com/watch?v=arj7oStGLkU&t=653s",
            "scrapedAt": "2026-11-06T13:08:45Z",
            "srt": "1\n00:00:00,030 --> 00:00:02,520\nWhy are all of these people in such a dark place?\n\n2\n00:00:02,540 --> 00:00:05,840\nWell, it turns out that there's two kinds of procrastination.\n\n3"
        }
    ]
}
病毒剪辑查找器 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/14704/youtube+shorts+api/38023/viral+clip+finder?videoUrls=https://www.youtube.com/watch?v=UF8uR6Z6KLc,https://www.youtube.com/watch?v=arj7oStGLkU&clipsPerVideo=5&minClipSeconds=20&maxClipSeconds=55&minViralityScore=OptionalincludeSrt=true&languages=en&maxVideosPerSource=5&maxItems=10' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

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

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

无长期承诺。随时升级、降级或取消。

起价
$10,000/年


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

概览

在任何长的YouTube视频中找到最佳的短视频/短片/TikTok时刻(时间戳、吸引力、热度分数、标题、标签、SRT)并获取任何短视频的字幕作为SRT/VTT/文本

YouTube短视频 API FAQs

在任何长视频中找到最佳的短视频/短片/TikTok时刻(时间戳 吸引点 流行指数 标题 标签 SRT)并获取任何短视频的字幕作为SRT/VTT/文本

每个请求最多100个结果 使用maxItems参数进行设置

每个请求从公共源收集实时数据 相同的请求可以从缓存中提供最长6小时

列表参数接受多个用逗号分隔的值,例如:伦敦,巴黎

YouTube Shorts API 有两个主要接口 “YouTube Shorts 字幕下载器” 返回 SRT/VTT 格式的字幕,包括频道名称、时长和自动生成状态等细节 “病毒视频发现器” 提供带有剪辑 URL、吸引点和嵌入链接的 viral 时刻,以及时长和排名等元数据

关键字段包括“channelName”“hook”“durationSeconds”“language”和“srt”用于病毒剪辑查找器。对于转录字幕下载器,重要字段是“isAutoGenerated”“sentences”(带有开始时间和文本)以及“scrapedAt”用于时间戳数据

API以JSON格式返回数据 每个响应包括结果的“计数”和包含单个数据对象的“项目”数组 每个对象具有与端点相关的结构化字段,例如病毒视频的“clipUrl”和“hook”或字幕的“sentences”和“language”

转录字幕下载器为短视频提供字幕、时间戳和语言细节 疯狂剪辑查找器提供病毒剪辑元数据,包括钩子、URL和时长 帮助用户识别较长视频中的热门时刻

终点接受这些查询参数,都是可选的:videoUrls,clipsPerVideo,minClipSeconds,maxClipSeconds,minViralityScore,hashtags,includeSrt,languages,maxVideosPerSource,maxItems。videoUrls:播客、访谈、直播或演讲:视频网址或ID、播放列表网址,或频道网址/@handle(将使用其最新视频)。多个值:用逗号分隔。clipsPerVideo:每个视频返回最佳时刻的数量。minClipSeconds:返回的最短片段。maxClipSeconds:最长片段。YouTube Shorts和Reels为55-60,TikTok最多为180。minViralityScore:跳过较弱的时刻。0返回所有请求的片段。hashtags:添加到每个...的您自己的标签

端点接受这些查询参数,均为可选:shortsUrls、maxShortsPerChannel、languages、translateTo、hashtags、maxItems。shortsUrls:短视频的URL或ID,或频道的URL / @用户名(使用他们最新的短视频)。多个值:用逗号分隔。maxShortsPerChannel:从每个频道提取的最新短视频数量。languages:首选字幕语言,例如en、es。回退到任何语言。多个值:用逗号分隔。translateTo:用于翻译字幕的语言代码,使用YouTube翻译,例如en。hashtags:添加到每个建议字幕中的你的标签。maxItems:保存结果的硬限制(和成本)。

一般常见问题

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