youtube-random-video

1 min read Original article ↗

skip to:contentpackage searchsign in

npm

1.0.5 • Public • Published

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

Beerpay Flattr

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

})