YouTube API v3 videoCategory v.s. guideCategory

我怕爱的太早我们不能终老 提交于 2019-12-24 21:17:42

问题


The YouTube API v3 can return the videoCategory of a video. For example, if you make the following request:

www.googleapis.com/youtube/v3/videos?id=ZCJgvabihQ8&key=apiKey&part=snippet,recordingDetails

You will find that the video with id ZCJgvabihQ8 belongs to Category 24. But how can I get the guideCategory id instead of the videoCategory id?


回答1:


from the Doc

https://developers.google.com/youtube/v3/docs/guideCategories

A guideCategory resource identifies a category that YouTube algorithmically assigns based on a channel's content or other indicators, such as the channel's popularity. The list is similar to video categories, with the difference being that a video's uploader can assign a video category but only YouTube can assign a channel category.

The guideCategory is assigned to a channel, not to a video, and I believe that can be used only to list channels



来源:https://stackoverflow.com/questions/14656369/youtube-api-v3-videocategory-v-s-guidecategory

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