How to get an image of a youtube video

YouTube makes it really easy for you to return images from a video.

Each video will generate 4 individual images, accessed here.

// Background Thumbnail (480x360 pixels)<youtube-id-here>/0.jpg

// Thumbnail (120x90 pixels)<youtube-id-here>/1.jpg 

// Middle Thumbnail (120x90 pixels)<youtube-id-here>/2.jpg 

// Final Thumbnail (120x90 pixels)<youtube-id-here>/3.jpg 

You can also return a bunch of other images.

// default image<youtube-id-here>/default.jpg

// High Quality Thumbnail (480x360 pixels)<youtube-id-here>/hqdefault.jpg

// Medium Quality Thumbnail (320x180 pixels)<youtube-id-here>/mqdefault.jpg

// Standard Definition Thumbnail (640x480 pixels)<youtube-id-here>/sddefault.jpg

// Max Res Thumbnail (1280x720 pixels)<youtube-id-here>/maxresdefault.jpg

You can additional use the short domain to return images.<youtube-id-here></maxresdefault.jpg