This Website is in Experimental format. - By use of this site you understand the Terms of Service

Youtube V3 Php API

Posted by engineerisaac


Posted on 7 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;




Comments are For the Community.

If you would like to Comment, Consider joining the Community!

We believe in accountability. Your comments are connected to your profile.

Register Login


Other Engineerisaac Articles