1.0.7 • Published 3 years ago

yt-stats v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Yt-stats

Support: discord.gg/wmyjSd9aMz

NPM: npmjs.com/yt-stats

Yt-stats is an open-source package made for people to fetch data from YouTube's API very easily, yt-stats is completely beginner friendly and easy to use.

  • Beginner Friendly - Quick & easy to use!

  • Updated Frequently - yt-stats will be updated frequently!

Usage

Go to https://console.cloud.google.com/ and click ENABLE APIS AND SERVICES, then scroll down and look for YouTube Data API v3 and enable it, once you've done that click Manage and go to Credentials, click Create Credentials and choose API key and copy it.

Example

const  Yt = require('yt-stats');

const  yt = new  Yt('api-key-here');

  

const  subscribers = (await  yt.getChannel('HiddenIpex')).subscribers; // Shows subscriber amount

const  videoCount = (await  yt.getChannel('HiddenIpex')).videos; // Shows the amount of videos the channel has posted

const  thumbnail = (await  yt.getChannel('HiddenIpex')).thumbnail; // Shows the link to the users icon

const  desc = (await  yt.getChannel('HiddenIpex')).description; // Shows the channel's description

const  views = (await  yt.getChannel('HiddenIpex')).views; // Shows how many views the channel has in total

const  joinDate = (await  yt.getChannel('HiddenIpex')).joinDate; // Shows the join date of the channel

  

console.log(`Subs: ${subscribers}\nVid count: ${videoCount}\nThumbnail: ${thumbnail}\nDescription: ${desc}\nViews: ${views}\nJoin Date: ${joinDate}`)

Installing the package

npm i yt-stats

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago