YouTube 字幕下载 API,可批量下载

于 2017-12-25 发表在 how-to | 0 comments

Share On GoogleShare On FacebookShare On Twitter

为方便需要批量下载 YouTube 字幕的同学,开放本站使用的 YouTube 字幕下载 API 接口

返回示例:


{
"meta": {
"code": 200,
"msg": "OK",
"limit_remaining": 99
},
"response": {
"captions": {
"video_url": "https://www.youtube.com/watch?v=CFf7dlewJus",
"title": "Meet Gmail's New Inbox",
"available_captions_count": 55,
"available_captions": [
{
"language": "am",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/am",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "eu",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/eu",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "ca",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/ca",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "zh-Hant",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/zh-Hant",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "cs",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/cs",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "nl",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/nl",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "en-GB",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/en-GB",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "fil",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/fil",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "fr",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/fr",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "el",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/el",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "iw",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/iw",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "hu",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/hu",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "id",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/id",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "ja",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/ja",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "lv",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/lv",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "ms",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/ms",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "mr",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/mr",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "fa",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/fa",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "pt-BR",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/pt-BR",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "ro",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/ro",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "sr",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/sr",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "sl",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/sl",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "es-ES",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/es-ES",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "sv",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/sv",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "te",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/te",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "tr",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/tr",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "ur",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/ur",
"autogenerated": false,
"machinetranslated": false
},
{
"language": "ar",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/ar",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "bg",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/bg",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "zh-Hans",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/zh-Hans",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "hr",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/hr",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "da",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/da",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "en",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/en",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "et",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/et",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "fi",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/fi",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "de",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/de",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "gu",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/gu",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "hi",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/hi",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "is",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/is",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "it",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/it",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "ko",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/ko",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "lt",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/lt",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "ml",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/ml",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "no",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/no",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "pl",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/pl",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "pt-PT",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/pt-PT",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "ru",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/ru",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "sk",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/sk",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "es-MX",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/es-MX",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "sw",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/sw",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "ta",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/ta",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "th",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/th",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "uk",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/uk",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "vi",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/vi",
"autogenerated": true,
"machinetranslated": false
},
{
"language": "zh-Hans",
"caption_content_url": "https://api.zhuwei.me/v1/captions/CFf7dlewJus/contents/machinetranslations/zh-Hans",
"autogenerated": true,
"machinetranslated": true
}
]
}
}
}

字幕内容


{
"meta": {
"code": 200,
"msg": "OK",
"limit_remaining": 97
},
"contents": {
"language": "zh-Hans",
"multilanguage": false,
"notimeline": false,
"content": "1\r\n00:00:01,600 --> 00:00:08,432\r\n收件箱中有时会因邮件实在太多而杂乱无章\r\n\r\n2\r\n00:00:08,432 --> 00:00:16,812\r\n全新的 Gmail 收件箱让一切变得井井有条\r\n\r\n3\r\n00:00:16,812 --> 00:00:26,750\r\n一个标签用于整理社交网站发来的邮件\r\n\r\n4\r\n00:00:26,750 --> 00:00:37,899\r\n一个标签用于整理推广和促销类邮件\r\n\r\n5\r\n00:00:37,899 --> 00:00:49,000\r\n一个标签用于整理动态更新、帐单和收据等此类邮件\r\n\r\n6\r\n00:00:49,000 --> 00:01:01,746\r\n一个标签用于整理对您真正有用的邮件\r\n\r\n7\r\n00:01:01,746 --> 00:01:03,246\r\n现在,收件箱也融入了 Google 风格\r\n\r\n"
}
}

Submit a Comment

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>