Youtube api get the channels from the Featured channels module

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 09:26:26

There isn't option to grab the featured channel on the youtube api V3. I think we also need to wait an update of the api v3.

I finally found a solution with YouTube API V3 !

If you check the documentation of Channel you can see the parameter : brandingSettings

The featured channels are in the brandingSettings results. All you need is the id for the YouTube channel, not the username. I made a tool to find the Id of a channel YouTube with the name.

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

For example, the channel is : YouTubeHelp -> id : UCMDQxm7cUx3yXkfeHa5zJIQ

So with this ID and the part : brandingSettings you are able to find the featured channels.

An exemple with api's explorer

The result :

  "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"
    },

If you check the table : featuredChannelsUrls

Each id is corresponding to a featured channel. Use the API V3 to find the name of the channels associate.

No. Upon checking the documentation, I don't think youtube api V3 lists options to grab list of featured videos.

However, version V2 had an option to get the recently featured list. It has been deprecated.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!