How can json find out if a certain video has copyright by youtube's api?
How can json find out if a certain video has copyright by youtube's api?
There is a sim,
In the Youtube Data API (v3) documentation, there is a value boolean value returned in Json named contentDetails.licensedContent that shows if a Youtube content partner claimed their copyright or not on the content, as you can see in the image below.
Inaddition,asanadditiontotheresponse,thereisalsoapropertycalledstatus.rejectionReasonthatreturnsaString,whosevalueisintendedtoexplain"Why YouTube rejected a submitted video "( this according to the same documentation ). If the upload is not possible due to copyright implication, the value returned in String will be "
These are the values of possible rejection causes that can be returned by this property:
Note: this property is only available if the uploadStatus property indicates that the upload was actually rejected, ie if the String value returned in the same is equal to " rejected ".