youtube-thumbnail-api
v1.0.2
Published
Open Source Javascript Framework to Get all size and quality thumbnail of Youtube Video from URL
Downloads
45
Maintainers
Readme
Youtube Thumbnail API
Open Source Javascript Framework to Get all size and quality thumbnail of Youtube Video from URL
Installation
CDN
api.min.js
https://cdn.jsdelivr.net/npm/youtube-thumbnail-api/api.min.js
api.js
https://cdn.jsdelivr.net/npm/youtube-thumbnail-api/api.js
with NPM
$ npm i youtube-thumbnail-api
Documentation
Method | Size --------------------------------------|---------------------------------------- ytubethumb.set("video-url") | Pass Youtube Video Inside of function to set Youtube Video ytubethumb.thumb() | 120x90 ytubethumb.mq() | 320x180 ytubethumb.hq() | 480x460 ytubethumb.sd() | 640x480 ytubethumb.max() | 1280x720 & 1920x1080
Sample Code
//set youtube video
ytubethumb.set("https://www.youtube.com/watch?v=olm8XOFPSHQ");
console.log(ytubethumb.thumb());
//return 120x90 size thumbnail image
console.log(ytubethumb.mq());
//return 320x180 size thumbnail image
console.log(ytubethumb.hq());
//return 480x460 size thumbnail image
console.log(ytubethumb.sd());
//return 640x480 size thumbnail image
console.log(ytubethumb.max());
//return 1280x720 & 1920x1080 size thumbnail image
Developers
Developed by Rohit Chouhan, MIT License