youtubeapiv3
v1.0.2
Published
An Api wrapper for the youtube v3 data API
Downloads
14
Readme
YoutubeAPIV3
The YoutubeAPIV3 NPM package is an API wrapper for youtube v3 data api.
Usage
You can use YoutubeAPIV3 like this:
var ytapi = require('youtubeapiv3')
ytapi.getSubCount('UC-lHJZR3Gqxm24_Vd_AJ5Yw', 'AIzaSyAaLW64E5dEBte9qnypunY10sQt0qeOBQ8')
.then((res) => console.log(res))
.catch((err) => console.error(err));
ytapi.getViewsCount('UC-lHJZR3Gqxm24_Vd_AJ5Yw', 'AIzaSyAaLW64E5dEBte9qnypunY10sQt0qeOBQ8')
.then((res) => console.log(res))
.catch((err) => console.error(err));
ytapi.getCommentCount('UC-lHJZR3Gqxm24_Vd_AJ5Yw', 'AIzaSyAaLW64E5dEBte9qnypunY10sQt0qeOBQ8')
.then((res) => console.log(res))
.catch((err) => console.error(err));
ytapi.getVideoCount('UC-lHJZR3Gqxm24_Vd_AJ5Yw', 'AIzaSyAaLW64E5dEBte9qnypunY10sQt0qeOBQ8')
.then((res) => console.log(res))
.catch((err) => console.error(err));
ytapi.getAllStats('UC-lHJZR3Gqxm24_Vd_AJ5Yw', 'AIzaSyAaLW64E5dEBte9qnypunY10sQt0qeOBQ8')
.then((res) => console.log(res))
.catch((err) => console.error(err));
ytapi.getSnippet('UC-lHJZR3Gqxm24_Vd_AJ5Yw', 'AIzaSyAaLW64E5dEBte9qnypunY10sQt0qeOBQ8')
.then((res) => console.log(res))
.catch((err) => console.error(err));