user2057495
user2057495

Reputation: 41

Excluding Restricted Videos while using the YouTube Data API

I am using the YouTube API version 2.0 to retrieve videos.

I want to exclude videos that display the message "restricted from playback on certain sites... Watch on Youtube" on embedding the videos.

I have used the parameter format=5, but this does not help in filtering out these videos. Also, I have received the following permissions using which I am not able to decide whether the video will still display the above message on embedding

yt:accessControl action='comment' permission='allowed'/

yt:accessControl action='commentVote' permission='allowed'/

yt:accessControl action='videoRespond' permission='moderated'/

yt:accessControl action='rate' permission='allowed'/

yt:accessControl action='embed' permission='allowed'/

yt:accessControl action='list' permission='allowed'/

yt:accessControl action='autoPlay' permission='allowed'/

yt:accessControl action='syndicate' permission='allowed'/

Upvotes: 2

Views: 1770

Answers (1)

Jeff Posnick
Jeff Posnick

Reputation: 56144

It's not possible to filter out videos that are only playable on certain domains (or that are blocked on certain domains). This can be frustrating; I know.

This blog post has more information about the steps you can take to filter out videos that are not playable for other reasons: http://apiblog.youtube.com/2011/12/understanding-playback-restrictions.html

Upvotes: 1

Related Questions