Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

4uss/youtube-stream-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

youtube-stream-status

A node module to check if YouTube channel is live

preview

Installation

Node.js required

npm install @3xanax/youtube-stream-status

Usage

Require YouTube channel-id. Example: https://www.youtube.com/channel/UCiaoRUmpQ0mH05w9PVQzYPw UCiaoRUmpQ0mH05w9PVQzYPw is the channel-id string from the above url

const yt = require('@3xanax/youtube-stream-status');

yt.getStream("UCiaoRUmpQ0mH05w9PVQzYPw")
    .then(data => {
      console.log(data)
    })

Example output when Live:

  {
      "stream": {
          "_id": "UCiaoRUmpQ0mH05w9PVQzYPw"
      }
  }

Example output when Offline:

  {
      "stream": null
  }

Support & Issues

IMPORTANT: Help me beeing efficient, please! I am developing in my free time for no money. Contribute to the project by posting complete, structured and helpful issues which I can reproduce quickly without asking for missing information.

ko-fi

LICENSE

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published