Friday, February 2, 2018

Youtube video thumbnail images

You can get the thumbnail images of youtube video by using the below format.

https://img.youtube.com/vi/<video-id>/0.jpg
https://img.youtube.com/vi/<video-id>/1.jpg
https://img.youtube.com/vi/<video-id>/2.jpg
https://img.youtube.com/vi/<video-id>/hqdefault.jpg

You can see a live example here - https://codepen.io/deebujacob/full/BYjxpm

No comments: