Youtube api 从精选 channel 模块中获取 channel

标签 youtube youtube-api youtube-data-api youtube-channels

我想从模块中获取所有 channel Featuring channel YouTube channel ,使用 YouTube 的 API V3

我发一张图片,你可以看看是什么模块Featuring channel
enter image description here

这是包含所有 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/

相关文章:

android - YouTube播放器旋转时停止

javascript - 如何在现有的 iframe 上使用 YouTube API?

ios - 如何从 REST API search.list 结果中过滤掉 YouTube 的内容屏蔽视频

android - 通过 Youtube Data Api 获取 channel 订阅列表

php - YouTube Analytics API 在单个用户下登录多个帐户

google-api - YouTube API通话的具体价格

javascript - 单击jQuery时打开schuffle

javascript - YouTube 数据 API : check if a video has the ratings enabled

youtube-api - 上传到 YouTube API 时缺少“Access-Control-Allow-Origin”

YouTube channel 部分视频