yt-stats

    1.0.7 • Public • Published

    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

    Getting the API key

    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

    Install

    npm i yt-stats

    DownloadsWeekly Downloads

    16

    Version

    1.0.7

    License

    ISC

    Unpacked Size

    5.93 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar