You can use YouTube Data API to retrieve video thumbnails, caption, description, rating, statistics and more. API version 3 requires a key*. Obtain the key and create a videos: list request: |
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);
?>
Reffered: https://stackoverflow.com/questions/2068344/how-do-i-get-a-youtube-video-thumbnail-from-the-youtube-api
How to get a YouTube video thumbnail from the YouTube API | PHP Video Tutorial |
How to extract image from Youtube V3 API | PHP Video Tutorial |
Read Full: | PHP Video Tutorial |
Category: | Web Tutorial |
Sub Category: | PHP Video Tutorial |
Uploaded: | 6 months ago |
Uploaded by: | Admin |
Views: | 31 |
Tested on: | PHP 7 |