Christian Heilmann

Getting all the video thumbnails from a YouTube video

Wednesday, January 11th, 2023 at 9:16 pm

I just wrote myself a small tool to get all the thumbnail images available for a YouTube video.

Say you have a Youtube URL, the ID is the last part: https://www.youtube.com/watch?v=GDukVqBDd3Q, in this case “GDukVqBDd3Q”. Just copy this into the tool and you will get all the images available. You can choose to get JPG or WebP images and you can click each to see it or right-click to save it.

Result of the scraper showing all the thumbnails of a video

If you feel like doing this by hand, here are the different URLs:

  • Player Background Thumbnail (480×360):
    • https://i.ytimg.com/vi_webp/VIDEO_ID/0.webp
    • https://i.ytimg.com/vi/VIDEO_ID/0.jpg
  • Video frames thumbnails (120×90)
    • Start: https//i.ytimg.com/vi_webp/VIDEO_ID/1.webp
    • Middle: https://i.ytimg.com/vi_webp/VIDEO_ID/2.webp
    • End: https//i.ytimg.com/vi_webp/VIDEO_ID/3.webp
    • Start: https//i.ytimg.com/vi/VIDEO_ID/1.jpg
    • Middle: https://i.ytimg.com/vi/VIDEO_ID/2.jpg
    • End: https//i.ytimg.com/vi/VIDEO_ID/3.jpg
  • Lowest quality thumbnail (120×90)
    • https://i.ytimg.com/vi_webp/VIDEO_ID/default.webp
    • https://i.ytimg.com/vi/VIDEO_ID/default.jpg
  • Medium quality thumbnail (320×180)
    • https://i.ytimg.com/vi_webp/VIDEO_ID/mqdefault.webp
    • https://i.ytimg.com/vi/VIDEO_ID/mqdefault.jpg
  • High quality thumbnail (480×360)
    • https://i.ytimg.com/vi_webp/VIDEO_ID/hqdefault.webp
    • https://i.ytimg.com/vi/VIDEO_ID/hqdefault.jpg
  • Standard quality thumbnail (640×480)
    • https://i.ytimg.com/vi_webp/VIDEO_ID/sddefault.webp
    • https//i.ytimg.com/vi/VIDEO_ID/sddefault.jpg
  • Unscaled thumbnail resolution
    • https://i.ytimg.com/vi_webp/VIDEO_ID/maxresdefault.webp
    • https://i.ytimg.com/vi/VIDEO_ID/maxresdefault.jpg

Share on Mastodon (needs instance)

Share on Twitter

Newsletter

Check out the Dev Digest Newsletter I write every week for WeAreDevelopers. Latest issues:

Dev Digest 146: 🥱 React fatigue 📊 Query anything with SQL 🧠 AI News

Why it may not be needed to learn React, why Deepfake masks will be a big problem and your spirit animal in body fat! 

Dev Digest 147: Free Copilot! Panel: AI and devs! RTO is bad! Pi plays!

Free Copilot! Experts discuss what AI means for devs. Don't trust containers. Mandated RTO means brain drain. And Pi plays Pokemon!

Dev Digest 148: Behind the scenes of Dev Digest & end of the year reports.

In 50 editions of Dev Digest we gave you 2081 resources. Join us in looking back and learn about all the trends this year.

Dev Digest 149: Wordpress break, VW tracking leak, ChatGPT vs Google.

Slowly starting 2025 we look at ChatGPT vs Google, Copilot vs. Cursor and the state of AI crawlers to replace web search…

Dev Digest 150: Shifting manually to AI.

Manual coding is becoming less of a skill. How can we ensure the quality of generated code? Also, unpacking an APK can get you an AI model.

My other work: