YouTube API v3 videoCategory v.s.指南类别 [英] YouTube API v3 videoCategory v.s. guideCategory

查看:103
本文介绍了YouTube API v3 videoCategory v.s.指南类别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

YouTube API v3可以返回视频的videoCategory.例如,如果您发出以下请求:

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

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

您会发现ID为ZCJgvabihQ8的视频属于类别24.但是,如何获得guideCategory ID而不是videoCategory ID?

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?

推荐答案

来自文档

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

guideCategory资源可根据频道的内容或其他指标(例如频道的受欢迎程度)来标识YouTube算法分配的类别.该列表类似于视频类别,不同之处在于视频的上传者可以分配视频类别,但只有YouTube可以分配频道类别.

guideCategory被分配给一个频道,而不是视频,我相信只能用于列出频道

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

这篇关于YouTube API v3 videoCategory v.s.指南类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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