问题描述
我想使用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的解决方案!
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从精选频道模块获取频道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!