Copyright information that appears on the management screen using the YouTube Data API (for infringement or blocking in some countries)
You are about to retrieve the .I have checked the response by referring to the page below, but it is returned as false even though it is treated as copyright infringement video.
https://stackoverflow.com/questions/26084922/how-can-i-possibly-retrieve-copyright-issue-from-youtube-api
Copyright Infringement Video (Example)
https://www.youtube.com/watch?v=HB_mZsIarpc
https://www.youtube.com/watch?v=juCb9LfWEBo
What should I do and what should I do?I would appreciate it if you could give me instructions.Thank you for your cooperation.
By the way, the sample code is as follows.
const CLIENT_ID='****';
const CLIENT_SECRET='****';
const API_KEY='****';
const REFRESH_TOKEN='****';
public function getVideo($videoId)
{
$client=newGoogle_Client();
$client->setClientId(self::CLIENT_ID);
$client->setClientSecret(self::CLIENT_SECRET);
$client->setDeveloperKey(self:API_KEY);
$client->refreshToken(self::REFRESH_TOKEN);
$youtube=newGoogle_Service_YouTube($client);
$listResponse=$youtube->video->listVideos('contentDetails',
array('id'=>$videoId));
if(!empty($listResponse)){
var_dump($listResponse[0]['contentDetails']);
}
}
1Additional 1/6 <
I tested it in several videos, but I found that the releasedContent is true.
It seems to be divided into false ones.
I would appreciate it if you could understand the properties that detect everything about the advertisement.
Thank you for your cooperation.
No ads true
https://www.youtube.com/watch?v=jN8j9ZlQNxY
Ads present true
https://www.youtube.com/watch?v=UT6i8DpJSt8
No ad false
https://www.youtube.com/watch?v=3EYVT81JMVI
Ads included false
https://www.youtube.com/watch?v=TZEDqCmdejU
licensedContent
is licensed, so the following situation may be "unlicensed" (copyright infringement?)
$listResponse[0]['contentDetails']['licensedContent'] === FALSE
Also, there seems to be information about "blocking in some countries" in the regionRestriction
in the other properties.
© 2024 OneMinuteCode. All rights reserved.