2.1.3 • Published 1 year ago

yt-getvideos v2.1.3

Weekly downloads
18
License
MIT
Repository
github
Last release
1 year ago

npm npm npm

yt-getvideos

Simple and complete youtube search API

Installation

npm install yt-getvideos

Easy to use

Searching for videos

const { search } = require('yt-getvideos');

search('Something you want to research').then(result => {
  console.log(result);
});

Channel videos

const { channelVideos } = require('yt-getvideos');

/* 
  Examples of links that are accepted:
    - https://www.youtube.com/c/Fireship/videos
    - https://www.youtube.com/channel/UCsBjURrPoezykLs9EqgamOA/videos
*/

channelVideos('https://www.youtube.com/c/Fireship/videos').then(result => {
  console.log(result);
});

Single video info

const { videoInfo } = require('yt-getvideos');

/* 
  Example:
    Link: https://www.youtube.com/watch?v=WBwfRBdaRiC
    The video hash id is `WBwfRBdaRiC`
*/

videoInfo('VIDEO-HASH-ID').then(result => {
  console.log(result);
});

About

Simple functions to get video information, list videos from a channel and search.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

2.1.2

1 year ago

2.1.1

1 year ago

2.1.3

1 year ago

2.1.0

1 year ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago