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

我贴一张图片,可以看到模块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的文档,则可以看到以下参数: brandingSettings

精选 channel 在brandingSettings结果中。您需要的只是YouTube channel 的ID,而不是用户名。我制作了一个工具来查找名称为 channel YouTube的 ID。

http://martialdidit.github.io/YoutubeID/

例如, channel 为: YouTube帮助-> id: UCMDQxm7cUx3yXkfeHa5zJIQ

因此,使用此ID和part: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 的名称。

10-07 19:51
查看更多