Wednesday , 26 July 2017
Home » API » How to get YouTube Video Thumbnail from YouTube API
How to get YouTube Video Thumbnail from YouTube API

How to get YouTube Video Thumbnail from YouTube API

Hi Friends,

I was working with YouTube API to display YouTube videos on my client’s website. What my client want is, display thumbnails in grid format and when click on thumbnail, it should popup YouTube video. To achieve this, we need to get YouTube Thumbnail video URL from YouTube API. Its easy to get YouTube Video Thumbnail from YouTube API.


You implement YouTube API using this link. You will get response with YouTube Video data.
YouTube API

Getting YouTube Video Thumbnails

Once you have YouTube API response, you will have YouTube Video ID. Using Video ID, we can get different YouTube Video thumbnails.

Default Thumbnail URL{Video-ID}/default.jpg

High Quality Thumbnail URL{Video-ID}/hqdefault.jpg

Medium Quality Thumbnail URL{Video-ID}/mqdefault.jpg

Standard Definition Thumbnail URL{Video-ID}/sddefault.jpg

Maximum Resolution Thumbnail URL{Video-ID}/maxresdefault.jpg

Standard Generated Thumbnail URL{Video-ID}/0.jpg{Video-ID}/1.jpg{Video-ID}/2.jpg{Video-ID}/3.jpg

These are all YouTube Video thumbnail urls. YouTube auto generates 4 images when any one uploads video and those 4 images link, i mention in the last box. Hope it helps you and save your time. Please spend couple of minutes and share with your friends via social media and let them help to save time as well.

Plugin by: PHP Freelancer

About Rakshit Patel

I am PHP Freelancer, Rakshit Patel working as PHP Programmer India. I have developed this site to share my knowledge, thoughts and experience during the development of projects. We are group of developers working together. If you want to hire us for any PHP related work, you can reach me via Email, Phone or Chat.

Leave a Reply

Your email address will not be published. Required fields are marked *


Notify me of followup comments via e-mail. You can also subscribe without commenting.