barotube
Discord
Mr BARO#4957
Install
npm install barotube
Usage
const Barotube = require('barotube');
const barotube = new Barotube();
.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...
]
.getVideoInfo();
barotube.getVideoInfo('URL', function(err, data) {
if (err) throw err;
console.log(data);
});
{
title: '',
videoId: '',
url: '',
duration: '',
durationMs: 0,
views: 0,
author: {
name: '',
url: ''
},
thumbnail: ''
}
.getPlaylist();
barotube.getPlaylist('only playlist URL or playlist ID', function(err, data) {
if (err) throw err;
console.log(data);
});
[
{
id: '',
url: '',
title: '',
songs_size: '',
views: 0,
last_updated: '',
author: {
id: '',
name: '',
avatar: '',
url: ''
}
}
songs: [
{
title: '',
videoId: '',
url: '',
duration: '',
durationMs: 0,
views: 0,
author: {
name: '',
url: ''
},
thumbnail: ''
},
and more...
]
]