Notably Polite Mariner

    youtube-thumbnail-api

    1.0.2 • Public • Published

    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

    Rohit
    Developed by Rohit Chouhan, MIT License

    GithHub Facebook Twitter Instagram Website

    Install

    npm i youtube-thumbnail-api

    DownloadsWeekly Downloads

    11

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    6.04 kB

    Total Files

    5

    Last publish

    Collaborators

    • rohit-chouhan