Easy youtube v3 api
For now only supports search and videoIndo
- maxResults - default 5
- type - id, minimal or full
const youtubeApi = require("easy-youtube-api");
const youtube = new youtubeApi("Your key");
youtube.search("Cat", {maxResults: 5, type: "id"}, data => console.log(data));
const youtubeApi = require("easy-youtube-api");
const youtube = new youtubeApi("Your key");
youtube.search("Cat", {maxResults: 5, type: "id"})
.then(data => console.log(data));
For multiple videos separate it by comma: 0I647GU3Jsc,0I647GU3Jsc,0I647GU3Jsc
const youtubeApi = require("easy-youtube-api");
const youtube = new youtubeApi("Your key");
youtube.videoId("0I647GU3Jsc", data => console.log(data));
const youtubeApi = require("easy-youtube-api");
const youtube = new youtubeApi("Your key");
youtube.search("0I647GU3Jsc")
.then(data => console.log(data));