1.0.7 • Published 2 years ago

youtube-channel-live-stream v1.0.7

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

youtube-channel-live-stream

You could fetch all live stream status in youtube channel. You could get data for videoId, videoTitle, liveStatus.

Installation

npm install youtube-channel-live-stream

Usage

First of all, you need to find your youtube channel address. If your channel address name is given name. Your first parameter is your channel name. Your second parameter is true. If your channel address name is ID. Your first parameter is your channel ID. Your second parameter is false.

Example 1

var ytChLiveStream = require('youtube-channel-live-stream')

ytChLiveStream.getLiveStream('trthaber',true)
.then((res)=>console.log(res));

Result:

[
  {
    videoId: 'Rc5qrxlJZzc',
    videoTitle: 'TRT Haber Canlı Yayını',
    liveStatus: 'live'
  }
]

Example 2

var ytChLiveStream = require('youtube-channel-live-stream')

ytChLiveStream.getLiveStream('UCNlfGuzOAKM1sycPuM_QTHg',false)
.then((res)=>console.log(res));

Result:

[
  {
    videoId: 't5WhjYYM6dM',
    videoTitle: 'Deep Focus Music To Improve',
    liveStatus: 'live'
  },
  {
    videoId: '8yRgYiNH39E',
    videoTitle: '🔴 Deep Focus 24/7 - Ambient Music For Studying',
    liveStatus: 'live'
  },
  .
  .
  .
  {
    videoId: 'Voh11CtTn4M',
    videoTitle: '🔴 Deep Focus 24/7 - Ambient Music For Studying',
    liveStatus: 'live'
  }
]
1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago