A NodeJS Module to interact with the YouTube Data API v3
APACHE-2.0 License
YouTube Data API v3
| Join our Discord Server for supportDisclaimer: This package relies on user feedback. Check out our Contributing guide to see how you can help!
- Stable
npm install apitube
- Developer
npm install github:BurnedBed/apitube#dev
const apitube = require('apitube').default;
const yt = new APITUBE(apikey: string, access_token: string);
yt.fetch('/search/', {
params: {
part: 'snippet',
type: 'videos',
q: 'Monkeys',
maxResults: 5
}
}).then(response => {
const titles = response?.error ?? response?.items.map(v => v.snippet.title);
return console.log(titles);
});
apikey
and an access_token
(if accessing your Google account). You can check out a tutorials on how to receive both by clicking here.