API para download de vídeos
- YouTube
- TikTok
- SoundCloud
git clone https://github.com/joaoandrejs/downloader-api
cd downloader-api
npm install
node index.js
curl http://localhost:3000/
- Resposta: App is running...
curl http://localhost:3000/api/getinfo?url=...
- JSON retornado com as informações do vídeo
{
author: {
name: "",
id: "",
description: ""
},
video: {
url: "",
title: "",
description: "",
thumbnail: "",
lengthSeconds: "",
viewCount: ""
}
}
curl http://localhost:3000/api/download?url=...
- Retorna um arquivo ".mp4" para vídeos e ".mp3" para áudios