1.1.0 • Published 9 years ago

yt-channel-videos v1.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
9 years ago

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