YouTube文字稿提取器
该服务通过生产级交付层从公共视频网址提取YouTube文字稿。它旨在为希望获得简单输入、稳定输出和高可用体验而不需自行管理文字稿基础设施的团队设计。
每个请求都会经过专用的文字稿服务,响应将在此处进行规范化,强制执行输入验证,并且上游故障会在一致的合同后隔离。只有成功的文字稿结果会被返回。
团队使用此服务是因为其可靠性和清晰的输出。它支持在单次运行中同时处理单个网址和批量网址数组,每个请求最多可处理20个视频网址。输出可以作为纯文本、结构化JSON,或两种格式返回,使其适合下游自动化和数据管道。
常见用例包括构建AI和LLM训练数据集、运行内容重新利用工作流程、进行SEO和关键词分析,以及支持媒体或研究管道。
YouTube转录 - 端点功能
| 对象 | 描述 |
|---|---|
请求体 |
[必需] Json |
{
"success": true,
"results": [
{
"inputUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"videoId": "dQw4w9WgXcQ",
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"status": "ok",
"language": "en",
"transcript": [
{
"text": "[Music]",
"start": 0.32,
"dur": 14.26,
"lang": "en"
},
{
"text": "We're no strangers to",
"start": 18.8,
"dur": 7.16,
"lang": "en"
},
{
"text": "love. You know the rules and so do",
"start": 21.8,
"dur": 7.32,
"lang": "en"
},
{
"text": "I. I feel commitments from what I'm",
"start": 25.96,
"dur": 4.32,
"lang": "en"
},
{
"text": "thinking",
"start": 29.12,
"dur": 5.24,
"lang": "en"
},
{
"text": "of. You wouldn't get this from any other",
"start": 30.28,
"dur": 9.28,
"lang": "en"
},
{
"text": "guy. I just want to tell you how I'm",
"start": 34.36,
"dur": 8.76,
"lang": "en"
},
{
"text": "feeling. Got to make you understand.",
"start": 39.56,
"dur": 6.28,
"lang": "en"
},
{
"text": "Never going to give you up. I'm going to",
"start": 43.12,
"dur": 6.08,
"lang": "en"
},
{
"text": "let you down. I'm going to run around",
"start": 45.84,
"dur": 7.48,
"lang": "en"
},
{
"text": "and desert you. I'm going to make",
"start": 49.2,
"dur": 7.2,
"lang": "en"
},
{
"text": "you say goodbye.",
"start": 53.32,
"dur": 6.56,
"lang": "en"
},
{
"text": "Tell a lie and hurt",
"start": 56.4,
"dur": 7.64,
"lang": "en"
},
{
"text": "you. We've known each other for so",
"start": 59.88,
"dur": 7.32,
"lang": "en"
},
{
"text": "long. Your heart's been aching, but",
"start": 64.04,
"dur": 6.52,
"lang": "en"
},
{
"text": "you're too shy to say we don't know",
"start": 67.2,
"dur": 5.4,
"lang": "en"
},
{
"text": "what's been going",
"start": 70.56,
"dur": 7.24,
"lang": "en"
},
{
"text": "on. We know the game and we're going to",
"start": 72.6,
"dur": 8.88,
"lang": "en"
},
{
"text": "play. If you ask me how I'm",
"start": 77.8,
"dur": 6.76,
"lang": "en"
},
{
"text": "feeling, don't tell me your truth. to",
"start": 81.48,
"dur": 6.84,
"lang": "en"
},
{
"text": "see. I will give",
"start": 84.56,
"dur": 3.76,
"lang": "en"
},
{
"text": "you",
"start": 89.88,
"dur": 4.84,
"lang": "en"
},
{
"text": "around",
"start": 91.72,
"dur": 3,
"lang": "en"
},
{
"text": "you. I will say",
"start": 95,
"dur": 4.04,
"lang": "en"
},
{
"text": "goodbye and hurt you. I will give",
"start": 99.56,
"dur": 7.2,
"lang": "en"
},
{
"text": "[Music]",
"start": 103.99,
"dur": 4.61,
"lang": "en"
},
{
"text": "you",
"start": 106.76,
"dur": 9.16,
"lang": "en"
},
{
"text": "around you. I will leave you. I will say",
"start": 108.6,
"dur": 7.32,
"lang": "en"
},
{
"text": "goodbye and hurt you.",
"start": 116.44,
"dur": 4.64,
"lang": "en"
},
{
"text": "Never going to give. Never going to",
"start": 128.32,
"dur": 4.24,
"lang": "en"
},
{
"text": "give.",
"start": 129.76,
"dur": 4.24,
"lang": "en"
},
{
"text": "Never going to give. Never going to",
"start": 132.56,
"dur": 4.24,
"lang": "en"
},
{
"text": "give.",
"start": 134,
"dur": 7.04,
"lang": "en"
},
{
"text": "We've known each other for so long.",
"start": 136.8,
"dur": 6.88,
"lang": "en"
},
{
"text": "Your heart's been aching, but you're too",
"start": 141.04,
"dur": 6.48,
"lang": "en"
},
{
"text": "shy to say it. We both know what's been",
"start": 143.68,
"dur": 4.84,
"lang": "en"
},
{
"text": "going",
"start": 147.52,
"dur": 4.72,
"lang": "en"
},
{
"text": "on. We know the game and we're going to",
"start": 148.52,
"dur": 9.28,
"lang": "en"
},
{
"text": "play it. I just want to tell you how I'm",
"start": 152.24,
"dur": 9.12,
"lang": "en"
},
{
"text": "feeling. Got to make you understand.",
"start": 157.8,
"dur": 6.12,
"lang": "en"
},
{
"text": "Never going to give you up. Never going",
"start": 161.36,
"dur": 5.44,
"lang": "en"
},
{
"text": "to let you down. Never going to run",
"start": 163.92,
"dur": 7.36,
"lang": "en"
},
{
"text": "around and desert you. Heat.",
"start": 166.8,
"dur": 4.48,
"lang": "en"
},
{
"text": "[Music]",
"start": 172.33,
"dur": 10.43,
"lang": "en"
},
{
"text": "Heat. Heat. Heat.",
"start": 178.76,
"dur": 4,
"lang": "en"
},
{
"text": "[Music]",
"start": 183.39,
"dur": 11.81,
"lang": "en"
},
{
"text": "Never going to tell a lie and hurt you.",
"start": 191.04,
"dur": 6.72,
"lang": "en"
},
{
"text": "Never going to give you up. Never going",
"start": 195.2,
"dur": 5.44,
"lang": "en"
},
{
"text": "to let you down. Never going to run",
"start": 197.76,
"dur": 6.48,
"lang": "en"
},
{
"text": "around and desert you. Never going to",
"start": 200.64,
"dur": 6.2,
"lang": "en"
},
{
"text": "make you cry. Never going to say",
"start": 204.24,
"dur": 7.64,
"lang": "en"
},
{
"text": "goodbye. Never going to say goodbye.",
"start": 206.84,
"dur": 5.04,
"lang": "en"
}
],
"transcriptText": "[Music] We're no strangers to love. You know the rules and so do I. I feel commitments from what I'm thinking of. You wouldn't get this from any other guy. I just want to tell you how I'm feeling. Got to make you understand. Never going to give you up. I'm going to let you down. I'm going to run around and desert you. I'm going to make you say goodbye. Tell a lie and hurt you. We've known each other for so long. Your heart's been aching, but you're too shy to say we don't know what's been going on. We know the game and we're going to play. If you ask me how I'm feeling, don't tell me your truth. to see. I will give you around you. I will say goodbye and hurt you. I will give [Music] you around you. I will leave you. I will say goodbye and hurt you. Never going to give. Never going to give. Never going to give. Never going to give. We've known each other for so long. Your heart's been aching, but you're too shy to say it. We both know what's been going on. We know the game and we're going to play it. I just want to tell you how I'm feeling. Got to make you understand. Never going to give you up. Never going to let you down. Never going to run around and desert you. Heat. [Music] Heat. Heat. Heat. [Music] Never going to tell a lie and hurt you. Never going to give you up. Never going to let you down. Never going to run around and desert you. Never going to make you cry. Never going to say goodbye. Never going to say goodbye."
}
],
"meta": {
"requested": 1,
"succeeded": 1,
"failed": 0,
"outputFormat": "both",
"concurrency": 10,
"maxVideoUrls": 20
}
}
curl --location --request POST 'https://zylalabs.com/api/12409/youtube+to+transcript+api/23478/youtube+to+transcript' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"videoUrls": [
"https://www.youtube.com/watch?v=dQw4w9WgXcQ"
],
"outputFormat": "both",
"lang": "en"
}'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。
API返回YouTube视频的转录,包括带时间戳的文本段落、语言信息和请求状态。输出可以是纯文本、结构化JSON或两种格式。
响应中的关键字段包括 `inputUrl`、`videoId`、`videoUrl`、`status`、`language` 和 `transcript`,其中包含一个文本段落数组,具有各自的 `text`、`start` 和 `dur`(持续时间)值
响应数据的结构是一个顶级的 `success` 布尔值,后面是一个 `results` 数组。每个结果对象包含视频元数据和一个 `transcript` 数组,详细记录了带时间戳的口语内容
该API提供来自公共YouTube视频的口语内容的转录,包括文本、时间戳和语言细节。它支持单个URL和最多20个URL的批量请求
用户可以通过在请求正文中提供一个或多个YouTube视频的URL来自定义请求 API会处理这些URL并返回指定格式的对应转录
常见的用例包括为人工智能模型创建训练数据集 内容重用工作流 SEO分析 关键词研究以及支持媒体或研究流程
该API利用专用的转录服务来规范响应并应用输入验证。这确保只返回成功的转录,提高整体数据质量
用户可以利用结构化的JSON格式方便地集成到应用程序中,从而实现自动分析、内容索引或在数据管道中进一步处理
服务级别:
100%
响应时间:
11,754ms
服务级别:
100%
响应时间:
1,827ms
服务级别:
100%
响应时间:
1,360ms
服务级别:
100%
响应时间:
657ms
服务级别:
100%
响应时间:
4,512ms
服务级别:
100%
响应时间:
20,003ms
服务级别:
100%
响应时间:
4,907ms
服务级别:
97%
响应时间:
3,086ms
服务级别:
100%
响应时间:
646ms
服务级别:
100%
响应时间:
231ms
服务级别:
100%
响应时间:
8,843ms
服务级别:
100%
响应时间:
8,843ms
服务级别:
100%
响应时间:
8,843ms
服务级别:
100%
响应时间:
474ms
服务级别:
100%
响应时间:
94ms
服务级别:
100%
响应时间:
839ms
服务级别:
100%
响应时间:
268ms
服务级别:
100%
响应时间:
199ms
服务级别:
100%
响应时间:
34ms
服务级别:
100%
响应时间:
95ms