barotube
Info
In short, our module is a tool for extracting video and playlist information from the YouTube platform. Other than that, don't forget to generate the API key from our site. (:
Install
npm install barotube
Usage
const Barotube = require('barotube');
const barotube = new Barotube("API KEY");
.searchVideos();
barotube.searchVideos('URL or search args', function(err, data) {
if (err) throw err;
console.log(data);
});
[
{
title: '',
videoId: '',
url: '',
duration: '',
durationMs: 0,
views: 0,
author: {
name: '',
url: ''
},
thumbnail: ''
},
{
title: '',
videoId: '',
url: '',
duration: '',
durationMs: 0,
views: 0,
author: {
name: '',
url: ''
},
thumbnail: ''
},
and 8 more...
]
.getPlaylist();
barotube.getPlaylist('only playlist URL or playlist ID', function(err, data) {
if (err) throw err;
console.log(data);
});
[
{
id: '',
url: '',
title: '',
videos_size: '',
views: 0,
last_updated: '',
author: {
id: '',
name: '',
avatar: '',
url: ''
}
},
videos: [
{
title: '',
videoId: '',
url: '',
duration: '',
durationMs: 0,
views: 0,
author: {
name: '',
url: ''
},
thumbnail: ''
},
and more...
]
]