5
votes

There is a website called: TubeSift

This tool determines whether a video is "monetized" or not.

My simple question is...

Is there a way to determine if a specific YouTube video is monetized (can show in-stream ads) via some YouTube API?

If yes, which YouTube API?

If no, how then might TubeSift be determining this? Scraping the response?

Important distinction: this would be a video that you DON'T have authentication or credentials to manage - ie: it's someone else's video.

Similar questions asking slightly different things

Disclaimer I realize this question seems off-topic because it doesn't have a code example but YouTube's How to Get Help says to basically ask questions here on StackOverflow for help.

We support the YouTube Data API on Stack Overflow. Google engineers monitor and answer questions with the youtube-api, youtube-data-api, and youtube-v3-api tags.

There's really nowhere else to ask.

2
This question is very off topic. 1. SO cant tell you how TubeSift does anything please contact them. 2. SO is not Google please search the google apis yourself. 3. Just because google says to come here does not mean that SO is google support and even if a google did respond which i have never seen on a Youtube API question the wouldn't tell you they were from google. Do some research give it a try and come back with your code and we will try to help if we can.DaImTo
TubeSift is not going to tell me how they do it so that's a not logical suggestion. Obviously StackOverflow is not Google but they do use StackOverflow heavily for support. No one said StackOverflow is Google support. That's completely false about the Google personel not telling you because most of them put it on their profile. Already did a ton of research so everything in your comment is really of zero value.Jarad
Did you get any answerRohit Dhiman
Sorry @RohitDhiman no I didn't. I did learn of some other tools (ex: TubeTarget) but nothing clear. I think these tools are just scraping a response personally looking for an ad unit.Jarad

2 Answers

0
votes

Youtube provides API to YouTube content partners. I also checked the tubetarget and used scraping also but scraping is very slow as compared to the tubetarget

See this page to get enrolled.

According to youtube: When using delegation in the YouTube Data API, the onBehalfOfContentOwner parameter is always required. The parameter's value is an ID that uniquely identifies the content owner. You can retrieve the ID programmatically by calling the YouTube Content ID API's contentOwners.list method. Detailed description here

YouTube Partner Program overview, application checklist, & FAQs

Also, check this

YouTube Partner Program policies Please let me know if you are able to get Content Id API

-2
votes

In my opinion, i think if the video is greater than 10 minutes, therefore that video is being monetized, i read somewhere before that a video needs to have at least 10 minutes in order to be monetized, and obviously we can get the video duration via the API.

The json key is:

+"contentDetails": {#213 ▼
    +"duration": "PT4M21S"

The time is formatted as an ISO 8601 string. PT stands for Time Duration, 4M is 4 minutes, and 13S is 13 seconds.

But the way Tubesift does it is just an intelligent guess or maybe some randomizing the "monetized" tagged of a video.

Hope that helps.