Youtube V3 Php API

Posted by engineerisaac


Posted on 5 months ago

YouTube has updated their API from time to time. However I believe that V3 Will stick around for awhile.



https://console.developers.google.com



Script:




$youtube_id ="(Insert the youtube code)";

$googleapi ="(Insert google api key)";



$json= file_get_contents("https://www.googleapis.com/youtube/v3/videos?key=". $googleapi ."&part=snippet&id=". $youtube_id);

$obj = json_decode($json2);



$youtube_description = $obj->items[0]->snippet->description;

$youtube_tags = $obj->items[0]->snippet->tags;




Guests Cannot Post!

If you would like to Comment on this video! Consider joining the Blue community!

Register Login


Other Engineerisaac Articles