Grab youtube thumbnail images

Youtube has made it very easy comparing to others when it comes to grabbing thumbnail images for you to use as preview images in your custom video application or other. This is how the URL for youtube thumbnails looks like:

https://img.youtube.com/vi/_YOUTUBE_ID_/_IMAGE_NR_.jpg

Replace _YOUTUBE_ID_ with the ID of the video.
Replace _IMAGE_NR_ with a number 1-3 to get different thumbnails for the video in size 120x90px.

For a big thumbnail use 0.jpg

Take the following video as an example:

In this example _YOUTUBE_ID_ is equal to _OBlgSz8sSM

So, here’s our code for small thumbnail #1 (120×90):

https://img.youtube.com/vi/aEqCfFCf_-I/1.jpg

image

This is small thumbnail #2 (120×90):

https://img.youtube.com/vi/aEqCfFCf_-I/2.jpg

image

Sall thumbnail #3 (120×90):

https://img.youtube.com/vi/aEqCfFCf_-I/3.jpg

image

Big thumbnail (480×360):

https://img.youtube.com/vi/aEqCfFCf_-I/0.jpg

image