1.0.2 • Published 6 years ago

youtubeapiv3 v1.0.2

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

Build Status

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));
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago