Home » Tutorials » Get YouTube video thumbnail – YouTube API

Get YouTube video thumbnail – YouTube API

Find Most Expensive Stored Procedure Sql Server
Generate CREATE Index script for all indexes in database in Sql Server

Get YouTube video thumbnail – YouTube API

Each YouTube video has 4 generated images. They are predictably formatted as follows:


The first one in the list is a full size image and others are thumbnail images. The default thumbnail image (ie. one of 1.jpg, 2.jpg, 3.jpg) is:


For the high quality version of the thumbnail use a url similar to this:


There is also a medium quality version of the thumbnail, using a url similar to the HQ:


For the standard definition version of the thumbnail, use a url similar to this:


For the maximum resolution version of the thumbnail use a url similar to this:


All of the above urls are available over http too. Additionally, the shorter hostname i3.ytimg.com works instead of img.youtube.com in the example urls above.

Below is the PHP code snippet for getting URL dynamically from different websites:





Hello friends, My self Dhruv Sheth, I have more than 6 years of Industrial experience as a Software Developer. In my career I got chance to work with asp.net, c#,Web API, JavaScript, JQuery, WPF, WCF , Windows Application, PostScript, vb.net, GhostScript etc. So I have decided to share my knowledge with everyone and finally I have come up with TechnoThirsty.

Leave a Reply

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


Time limit is exhausted. Please reload CAPTCHA.

The content is copyrighted to technothirsty.com and may not be reproduced on other websites without permission from the owner.You may contact us using the information below.