yt-channel-videos

1.1.0 • Public • Published

Build Status

yt-channel-videos

Retrieve snippet data for all of a channel's videos

Install

npm install -S yt-channel-videos

Example

var channelVids = require('yt-channel-videos')('YOUTUBE-API-KEY-HERE');
 
channelVids.allUploads('YOUTUBE-CHANNEL-NAME-HERE')
.then(function(videos) {
  console.log(videos); // { videoCount: X, pageCount: Y, items: [...] }
});
 
channelVids.uploadsAfterDate('CHANNEL-NAME', new Date(2015, 0, 1))
.then(function(newVideos) {
  // use new videos
});

License

MIT

Package Sidebar

Install

npm i yt-channel-videos

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • crockagile