I know that there are multiple themes about this already open, but I tried them all and nothing works for me. I would like to get Vimeo thumbnail from Vimeo video id using PHP.
Asked
Active
Viewed 8,747 times
1 Answers
10
<?php
function getVimeoThumb($id)
{
$vimeo = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$id.php"));
echo $small = $vimeo[0]['thumbnail_small'];
echo $medium = $vimeo[0]['thumbnail_medium'];
echo $large = $vimeo[0]['thumbnail_large'];
}
echo getVimeoThumb(102514372);
?>
Try above code.

Nilesh Khalas
- 111
- 3
-
It doesn't work for me... :( – posast Aug 19 '14 at 18:16
-
For me it's working like a charm, thank you very much – Marco Jan 26 '17 at 16:46