yt-channel-videos
v1.1.0
Published
Retrieve snippet data for YouTube channel uploads
Downloads
3
Maintainers
Readme
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