Youtube V3 Php API

Posted by engineerisaac

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

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