youtube-api-wok
v1.0.7
Published
Youtube Data API without API key
Downloads
4
Readme
youtube-api-wok
YouTube Data API without API key.
Adapted from youtube-search by @appit-online and youtube-scrape by @HermanFassett
Installation
Yarn
yarn add youtube-api-wok
NPM
npm install youtube-api-wok --save
Usage
Search
import * as yt from 'youtube-api-wok';
const search = await yt.search({q: 'BTS'});
console.log('Search videos:\n', search.items);
const searchMore = await yt.search({
q: 'BTS',
key: search.innertubeApiKey,
pageToken: search.nextPageToken,
});
console.log('More videos:\n', searchMore.items);
Videos
const videoDetail = await yt.videos({id: 'CuklIb9d3fI'});
console.log('Video detail:\n', videoDetail);
TODO
- [x] Search
- [x] Videos
- [ ] Channels
- [ ] Comments
- [ ] CommentThreads
- [ ] Playlists
- [ ] Subscriptions
- [ ] Activities