1.0.3 • Published 6 years ago

youtube-search-promise v1.0.3

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

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);
  });
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago