Return The Vimeo Video Thumbnail By ID In PHP

      1 Comment on Return The Vimeo Video Thumbnail By ID In PHP
Hi in some occasions we may need to display some video’s thumbnail in our blog posts. Today I was working on one of  the projects that needed to display vimeo video thumbnail in it. I used a small PHP code to get vimeo video thumbnail by it’s Id.

Here it is.

$imgid = 6271487;

$hash = unserialize(file_get_contents(“http://vimeo.com/api/v2/video/$imgid.php”));

echo $hash[0][‘thumbnail_medium’];

Here ‘$imgid’ is the vimeo video id. And the final video thumbnail can be available at '$hash[0]['thumbnail_medium'];'
Hope this will help you..

About Shino

Shino, the author of this blog is a 28 year old master graduate in Computer Science, a professional programmer and web developer. TechMagics.com is his humble venture to share whatever he knows and learns about programming,technology and web world.

One thought on “Return The Vimeo Video Thumbnail By ID In PHP

Leave a Reply

Your email address will not be published. Required fields are marked *