Youtube api get the channels from the Featured channels module

前端 未结 2 906
盖世英雄少女心
盖世英雄少女心 2021-01-14 20:52

i want to get all the channel from the module Featuring channel of a YouTube channel ,with the API V3 of YouTube

I post a picture, you can see what is t

相关标签:
2条回答
  • 2021-01-14 21:30

    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.

    0 讨论(0)
  • 2021-01-14 21:30

    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.

    0 讨论(0)
提交回复
热议问题