我想从模块中获取所有 channel Featuring channel
YouTube channel ,使用 YouTube 的 API V3
我发一张图片,你可以看看是什么模块Featuring channel
这是包含所有 YouTube channel 的模块。
我想用 api 得到这个,但我在 API 中找不到信息。
是否可以 ?
https://support.google.com/youtube/answer/3027950?hl=en
最佳答案
在 youtube api V3 上没有获取精选 channel 的选项。
我认为我们还需要等待 api v3 的更新。
我终于找到了 YouTube API V3 的解决方案!
如果您查看 Channel 的文档你可以看到参数:品牌设置
特色 channel 位于brandingSettings 结果中。您只需要 YouTube channel 的 ID,而不是用户名。我做了一个工具来查找 channel ID YouTube 的名字。
http://martialdidit.github.io/YoutubeID/
例如, channel 为: YouTube帮助 -> 身份证号: UCMDQxm7cUx3yXkfeHa5zJIQ
因此,使用此 ID 和部分:brandingSettings,您可以找到特色 channel 。
以 api's explorer 为例
结果 :
"brandingSettings": {
"channel": {
"title": "YouTube Help",
"description": "Subscribe for tutorials, troubleshooting, and tips from the YouTube Help team! Check out the links below for more help.",
"keywords": "youtube help tutorials \"youtube help\" Hilfe Ayuda Aide ヘルプ 도움 Ajuda",
"moderateComments": true,
"showRelatedChannels": true,
"showBrowseView": true,
"featuredChannelsTitle": "Featured Channels",
"featuredChannelsUrls": [
"UCBR8-60-B28hp2BmDPdntcQ",
"UCUZHFZ9jIKrLroW8LcyJEQQ",
"UCeNZlh03MyUkjRlLFpVQxsg",
"UCkRfArvrzheW2E7b6SVT7vQ",
"UCEN58iXQg82TXgsDCjWqIkg",
"UCgNxLruwXS9fJNPztu5AVQA"
],
"unsubscribedTrailer": "MjHDKJuPjLs",
"profileColor": "#000000"
},
如果您查看表格:
featuredChannelsUrls
每个 id 对应一个特色 channel 。使用 API V3 查找 channel 关联的名称。
关于Youtube api 从精选 channel 模块中获取 channel ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22620078/