Question

Is there way to filter search results for videos that can be played from a certain country in youtube iframe api v3?

This call is not working:

search.setRegionCode("TR");
Was it helpful?

Solution

There is not a filter for it as of now, but from the videos in the response,

1) Do a videos.list call with id = comma separated list of all videoIds returned in your first call.

2) You can filter them by contentDetails.regionRestriction

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top