Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

youtube-thumbnail-api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youtube-thumbnail-api

Open Source Javascript Framework to Get all size and quality thumbnail of Youtube Video from URL

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-46.15%
Maintainers
1
Weekly downloads
 
Created
Source

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

MethodSize
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

Keywords

FAQs

Package last updated on 10 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc