mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 16:13:18 +00:00
9 lines
276 B
JavaScript
9 lines
276 B
JavaScript
|
const YouTube = require('simple-youtube-api');
|
||
|
const youtube = new YouTube(' Y o u r A p i K e y ');
|
||
|
|
||
|
youtube.searchVideos('Centuries', 4)
|
||
|
.then(results => {
|
||
|
console.log(`The video's title is ${results[0].title}`);
|
||
|
})
|
||
|
.catch(console.log);
|