youtube-random-video

The easiest way to get a random video from YouTube.


Keywords
youtube, random, video, api, search, data
License
ISC
Install
npm install youtube-random-video@1.0.1

Documentation

YouTube Data API does not provide a possibility to get a random video. This module aims to solve this problem.

Istall:

npm install -g youtube-random-video

Usage:

var youtube = require('youtube-random-video');


youtube.getRandomVid(key, function(err , data){
  //key is your youtube api key
  //data is a JSON object 
})