barotube
Discord
baris#0001
Install
npm install barotube
Get API Key
https://www.barotube.cf/
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: '',
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...
]
]