gotcha youtube video status without creaking
-
public (defined by YouTube) ->
accessible
-
unlisted (defined by YouTube) ->
accessible
-
private (defined by YouTube) ->
private
- deleted anyway ->
unavailable
- not exist ->
unavailable
- else ->
unknown
$ npm install youtube-video-status --save
var video = require('youtube-video-status');
video.status('VIDEO_ID').then(function (status) {
var igotcha = status;
console.log(igotcha);
});
import video from 'youtube-video-status';
video.status('VIDEO_ID').then((status) => {
const igotcha = status;
console.log(igotcha);
});