Stackoverflow answer link - https://stackoverflow.com/a/2068371/867451
Copied the content for quick reference
Each YouTube video has four generated images. They are predictably formatted as follows:
https://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg
https://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg