Sebastien
Sebastien

Reputation: 153

YouTube API v3.0: How do you determine if a video is 'pay-per-view'?

I am using the YouTube Python API (v3.0) to query YouTube with specific video IDs, and I would like to know which ones of the videos listed in the results are paid-content (there are some TV-shows in there).

I have gone through the 'video' object parameters (https://developers.google.com/youtube/v3/docs/videos), but I have not been able to find anything useful:

Any suggestions or solutions are welcome!

Upvotes: 4

Views: 1010

Answers (1)

Jeff Posnick
Jeff Posnick

Reputation: 56104

There's no field in the youtube#video object that represents whether a specific video costs money. You could use a rough proxy, like the presence of youtube#video.contentRating, as a clue that the video might be something that's television/film content, but that doesn't necessarily mean that it's paid content.

Upvotes: 1

Related Questions