This is an API that can be used to download youtube videos, shorts and also the links from the YouTube App.
Run the following command to clone the repository and install the dependencies.
$ git clone https://github.com/Sayan-Ghosh/youtube-dl-api.git
$ cd youtube-dl-api
$ npm install
/download - To download the file.
Go to localhost:4000 and paste your video link and then add itag=18&type. type = mp4 or mp3.
http://localhost:4000/download?title={add-title}&videoId=https://www.youtube.com&itag=18&type={give-type}