simple-youtube-api
simple-youtube-api is a library that wraps the YouTube Data API.
Install
npm
npm install simple-youtube-api
yarn
yarn add simple-youtube-api
Usage
const YouTube = require('simple-youtube-api');
const youtube = new YouTube('YOUTUBE-API-KEY');
youtube.searchVideos('Centuries', 4)
.then(results => {
console.log(`The video's title is ${results[0].title}`);
})
.catch(console.log);
Author
👤 Tyler Richards
License
Copyright © 2020 Tyler Richards and contributors. All rights reserved.
Released under the Apache License, version 2.0.