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?
The only workaround is using guideCategories.
You can list guideCategories by region.
Then in your channels->list call you can plug that category ids.
It appears V2 of the API has finally been shut down.
Has anyone managed to come up with a workaround for this since V3 of the API does not support it ?
I have read through the API docs and while there does appear to be fields available for this data (snippet.country) it doesn't seem to be populated in the vast majority of channels.
What I require is to find the general region (country) that the channel / Video is associated with. Nothing more fine grained than that.
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.