Socket
Socket
Sign inDemoInstall

youtube-search-promise

Package Overview
Dependencies
56
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    youtube-search-promise

A module for interacting with the YouTube API that utilizes promises versus callbacks


Version published
Weekly downloads
14
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

youtube-search-promise

JavaScript Style Guide

Easily search for videos on Youtube using their v3 API.

Credit

Majority of this was actually written by Max Gfeller and his repo can be found here 👀 I simply refactored it slightly to return a Promise 😄🎉 I have not recreated his TypeScript implementation yet but look for that soon 📆

Options

You can pass a lot of optional parameters as the second parameter, they are documented here.

Rate limiting

Google enforces a rate limit on the Youtube Data API. You will probably need to register your application for a key and supply this key in the opts.

JavaScript Usage

var search = require("youtube-search-promise");

var opts = {
  maxResults: 10,
  key: "yourkey"
};

search("deadmau5", opts)
  .then(results => {
    console.log(results);
  })
  .catch(error => {
    console.error(error);
  });

Keywords

FAQs

Last updated on 16 Mar 2018

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