Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find country of channel in youtube 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?

like image 791
the_lotus Avatar asked Oct 17 '13 00:10

the_lotus


2 Answers

The only workaround is using guideCategories.

You can list guideCategories by region.

Then in your channels->list call you can plug that category ids.

like image 153
Ibrahim Ulukaya Avatar answered Oct 01 '22 15:10

Ibrahim Ulukaya


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.

like image 23
Matteo G.P. Flora Avatar answered Oct 01 '22 14:10

Matteo G.P. Flora