topless
topless

Reputation: 8221

YouTube data api search, exclude videos with ads

I was wondering if there is a way when I am quering the api for videos to exclude those who have advertisments.

Also I would like to filter out the videos that are not available for my location which might change according to the user.

Upvotes: 4

Views: 702

Answers (1)

Jeff Posnick
Jeff Posnick

Reputation: 56144

There is no way to filter out videos that are monetized.

The restriction parameter can be used to filter out videos that are not playable due to geographic restrictions, based on the IP address of the client that will be playable.

Upvotes: 2

Related Questions