Skip to content

How to get thumbnail of dailymotion video using the video ID

Getting the thumbnail image for a dailymotion video is very easy. Just use the following link, replacing the with the id of the video.

Large image:

thumbnail_large_url;
?>

Medium image:

thumbnail_medium_url;
?>

Small image:

$id='x263kpd'; // DAILYMOTION VIDEO ID
$thumbnail = json_decode(file_get_contents("https://api.dailymotion.com/video/$id?fields=thumbnail_small_url"));
echo $thumbnail->thumbnail_small_url;

Here is simple function for getting dailymotion video thumbnail, this function will accept 2 arguments namely video ID and video size filed.

{$size};
	
}
?>

How to Use get_thumbnail() function


0 0 votes
Article Rating
Subscribe
Notify of
guest

1 Comment
Most Voted
Newest Oldest
Inline Feedbacks
View all comments