Youtube Api v3,类别和国家规范 [英] Youtube Api v3, category and country specifications
问题描述
我正在使用 Youtube Api v3,我正在收集有关视频的一些信息.更具体地说,我对类别和国家/地区参数感兴趣.使用 video-list 和 videoType="movie" 可以检索每个视频的 categoryId.我们如何将每个 categoryId(一个数字)与指定的电影类别(例如喜剧)对应起来.还可以检索每个视频附带的区域吗?
I am working with Youtube Api v3 and I am collecting some information about videos. More specifically, I am interested in the category and the country/region parameter. With video-list and videoType="movie" one can retrieve the categoryId of each video. How can we correspond each categoryId, which is a number, with the specified movie categoty, e.g Comedy. Also is it possible to retrieve the region that comes with each video?
先谢谢你.
推荐答案
你可以做 videoCategories->list 使用 id 获取类别信息.
You can do videoCategories->list do get category information with the id.
API 不会公开每个视频的区域代码,但您可以随时搜索->列表,按区域过滤.
API doesn't expose region code for each video, though you can always search->list with filtering by region.
API exposes video's associated location or file's recording location if that's available.
这篇关于Youtube Api v3,类别和国家规范的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!