1.0.7 • Published 3 years ago
youtube-api-wok v1.0.7
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);
comment: <> (## Methods)
comment: <> (### Search)
comment: <> (#### Parameters)
comment: <> (#### Return)
comment: <> (### Videos)
comment: <> (#### Parameters)
comment: <> (#### Return)
TODO
- Search
- Videos
- Channels
- Comments
- CommentThreads
- Playlists
- Subscriptions
- Activities