If you want to display thumbnail images from a youtube video it is possible to link to them directly, as they are accessible using a predictable address.
To be able to show images from youtube videos, all you need is to locate the ID for the video You can find this from an youtube url :
In this example the videoID is NQowXJ-C4nY
Each YouTube video has images. They are formatted as:
The image locations are available as both http and https, and i3.ytimg.com can be used instead of img.youtube.com
The default thumbnail image is 120px x 90 px
The default thumbnail is available in default, medium and standard quality versions, using either:
To get the default image in max resolution use: maxresdefault.jpg :
Using the api it is possible to:
- Handle captions
- Handle channels
- Manage comments
- Manage live streaming.
- Handle playlists
- Search YouTube for content.
- Handle video thumbnails
- Upload delete or add watermarks to videos
A portion of the API does not require authentication, - it is possible to play with a subset of the possibilities here