Socket
Socket
Sign inDemoInstall

youtubejs

Package Overview
Dependencies
9
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    youtubejs

A Javascript wrapper for the YouTube API v3. Also provides validation for request parameters, with helpful errors thrown.


Version published
Weekly downloads
11
Maintainers
1
Install size
889 kB
Created
Weekly downloads
 

Readme

Source

youtubejs

A Javascript wrapper for the YouTube API v3. Also provides validation for request parameters, with helpful errors thrown.

Usage

Initialization

Must specify an API Key

import YT from 'youtubejs';

YT.init({key: 'your-api-key'});
Fetching lists
import YT from 'youtubejs';

// Comments
YT.comments.list({part: 'snippet', id: 'comment-id'})
    .then(comment => console.log(comment));

// Search
YT.search.list({part: 'snippet', q: 'search query'})
    .then(searchResults => console.log(searchResults));

// Videos
YT.videos.list({id: 'POyIRViAgK8', part: 'snippet'})
.then(video => console.log(video));

FAQs

Last updated on 07 May 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc