在 youtube api v3 中查找频道国家/地区 [英] Find country of channel in youtube api v3
问题描述
在 youtube api 的 v2 中,我可以通过获取频道的用户信息 (https://gdata.youtube.com/feeds/api/users/userId) 并查看 位置属性.api 的 v3 中似乎不存在它.
In v2 of the youtube api, I could get the country of a channel by getting it's user information (https://gdata.youtube.com/feeds/api/users/userId) and looking at the Location property. It seems like it doesn't exists in v3 of the api.
由于我只对特定国家/地区的频道感兴趣,有没有办法知道频道在哪个国家/地区?
Since I'm only interested in channels from a specific country, is there a way to know in which country a channel is in?
推荐答案
regionCode
参数 不会 做你想做的事 :)
它只会发回在该国家/地区可用的视频,而不是在该国家/地区已发布的视频.
The regionCode
parameter DOES NOT do what you're thinking :)
It just sends back videos that ARE AVAILABLE in that country, not the one PUBLISHED in the country.
这篇关于在 youtube api v3 中查找频道国家/地区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!