Welcome to the yt-api a light weight, easy, and super fast way of interacting with the YouTube Data API v3.
Setup
To use the api you need a api key from google and you can get that here
Once you have created the api key you need to enable the Youtube Data API v3
by clicking on the libraries tab and clicking on the Youtube Data API v3
then click on enable and your almost done!
Need support?
You can join the official support discord here
Defining the api
const api = ;const API = "PASTE_API_KEY_HERE";
Getting video info
API; //Returns Promise<VideoInfo>
Getting playlists
API;
Searching for a video
API; //Returns Promise<SearchedVideoInfo>/*NOTE: You can use the getVideoByID function to get more info about this video*/
Searching for multiple videos
API; //Returns Promise<SearchedVideoInfo> as a array