Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check for which country a youtube video is allowed?

For some videos, YouTube site would say, Video not available in my country. Is it possible to check using YouTube data APIs or some other way, which country this particular video is allowed ?

like image 207
Vijay C Avatar asked Apr 25 '16 09:04

Vijay C


People also ask

How do I know my YouTube channel region?

You have to make a request about the channel's info. and get the country result. You can test this request in the Google API Explorer.


2 Answers

This site will provide information about the countries the video is restricted.

https://polsy.org.uk/stuff/ytrestrict.cgi

like image 79
Simpson Avatar answered Nov 10 '22 03:11

Simpson


Check this link. You can use the contentDetails.regionRestriction property of the video.

Example : https://www.googleapis.com/youtube/v3/videos?part=contentDetails&id=tDDAa1If-u4&key={YOUR_API_KEY}

like image 28
Saumini Navaratnam Avatar answered Nov 10 '22 04:11

Saumini Navaratnam