Jarad
Jarad

Reputation: 18953

YouTube API: Check if Someone Else's Video is Monetized or Not

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.

Upvotes: 6

Views: 32632

Answers (3)

PLuToNiuM
PLuToNiuM

Reputation: 72

There is a free site that can check if a video is monetized with Youtube Data Api.

" How can I tell if a YouTube video is monetized? With Youtube Data Api You can learn with some special inquiries, as we do. Or visit the video's page, look at the source code, and look for the string "yt_ad" to see if it has been monetized. The video is monetized if the string is present and set to true; otherwise, it is not. "

This site is "Youtube monetization check: Youtube Monetization Checker " The owner of the site explained how it was found on the relevant site, but I asked the owner of the site to explain in detail for you, but he did not tell. My guess is it uses a different method with oembed json.

Upvotes: 0

Rohit Dhiman
Rohit Dhiman

Reputation: 2741

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

Upvotes: 0

PinoyStackOverflower
PinoyStackOverflower

Reputation: 5302

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.

Upvotes: -3

Related Questions