Youtube V3 Php API

Posted by engineerisaac

Posted on 3 months ago

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


$youtube_id ="(Insert the youtube code)";
$googleapi ="(Insert google api key)";

$json= file_get_contents("". $googleapi ."&part=snippet&id=". $youtube_id);
$obj = json_decode($json2);

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

Leave a Comment:
Bill Murry - Posted 29 Minutes Ago.
This is a Test comment.