Answers for "How do I get a YouTube video thumbnail from the YouTube API?"

PHP
0

How do I get a YouTube video thumbnail from the YouTube API?

$data = file_get_contents("https://www.googleapis.com/youtube/v3/videos?key=YOUR_API_KEY&part=snippet&id=T0Jqdjbed40");
$json = json_decode($data);
var_dump($json->items[0]->snippet->thumbnails);
Posted by: Guest on May-18-2020

Code answers related to "How do I get a YouTube video thumbnail from the YouTube API?"

Browse Popular Code Answers by Language