Skip to content
npm module to easily search youtube for videos
JavaScript
Latest commit f317774 Jul 8, 2015 @MaxGfeller 1.0.4
Failed to load latest commit information.
tests Adapt tests to changes May 26, 2015
.gitignore Added gitignore file Oct 9, 2013
.travis.yml Add travis tests May 28, 2014
README.md Add note about rate limiting May 26, 2015
index.js Add video id to search results Jul 8, 2015
package.json 1.0.4 Jul 8, 2015

README.md

youtube-search

build status

Easily search for videos on Youtube using their v3 API.

Usage

var search = require('youtube-search');

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

search('deadmau5', opts, function(err, results) {
  if(err) return console.log(err);

  console.dir(results);
});

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.

Something went wrong with that request. Please try again.