youtubeapiv3

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i youtubeapiv3

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

10.2 kB

Total Files

4

Last publish

Collaborators

  • elitedamyth