You can find various search parameter listed in YouTube API v2.0 – API Query Parameters like license
, restriction
, paid_content
that can help filter videos that are restricted for such specific reason. Also, if you can use YouTube API v3.0 there is one more option videoSyndicated
that will restrict a search to only videos that can be played outside youtube.com.