2.1.0 • Published 6 years ago

youtube-getter v2.1.0

Weekly downloads
15
License
MIT
Repository
github
Last release
6 years ago

youtube-getter

npm version npm downloads dependencies-status

A simple module that let you get information from youtube.

How to use

Get a youtube video id with name

It will return the first video id of the search results with keyword(s) (the first argument)

const yg = require('youtube-getter');
yg.searchId('never gonna give you up')
  .then(console.log)
  .catch(console.error);

Get basic youtube video info with the video id

const yg = require('youtube-getter');
yg.getInfoWithId('dQw4w9WgXcQ')
  .then(info => {
    console.log(info.title);
    console.log(info.author);
    console.log(info.date);
    console.log(info.views);
    console.log(info.regionsAllowed);
    console.log(info.beginDesc);
    console.log(info.description);
  })
  .catch(console.error);

License

MIT

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago