YouTube API从精选频道模块获取频道 [英] Youtube api get the channels from the Featured channels module

查看:160
本文介绍了YouTube API从精选频道模块获取频道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

我张贴了一张图片,您可以看到什么是模块Featuring channel

I post a picture, you can see what is the module Featuring channel

这是所有YouTube频道的模块.

This is the module with all the YouTube channel.

我想通过api获得此信息,但是我无法在API中找到信息. 有可能吗?

I want to get this with the api but i can't find the information in the API. Is it possible ?

https://support.google.com/youtube/answer/3027950 ?hl = zh_CN

推荐答案

无法选择在youtube api V3上获取精选频道. 我认为我们还需要等待api v3的更新.

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.

我终于找到了YouTube API V3的解决方案!

I finally found a solution with YouTube API V3 !

如果查看频道的文档,您会看到参数: brandingSettings

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

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

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/

例如,频道为: YouTubeHelp -> id: UCMDQxm7cUx3yXkfeHa5zJIQ

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

因此,使用此ID和part:brandingSettings,您可以找到精选频道.

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

具有 api的浏览器

结果:

  "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对应一个精选频道.使用API​​ V3查找关联的渠道的名称.

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

这篇关于YouTube API从精选频道模块获取频道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆