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}; } ?>