Example:
PHP
<?php
$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);
?>
How to get a YouTube video thumbnail from the YouTube API | PHP Video Tutorial |
Type: | Php |
Category: | Web Tutorial |
Sub Category: | PHP Video Tutorial |
Uploaded by: | Admin |