node package manager


Search for youtube videos


Easily search for videos on Youtube using their v3 API.

var search = require('youtube-search');
var opts = {
  maxResults: 10,
  key: 'yourkey'
search('deadmau5', opts, function(err, results) {
  if(err) return console.log(err);

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

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.