YTDL API: A Docker image to download YouTube songs, plug and play into any project of yours and download YouTube songs in a simple API call.
Use mbaraa/dankmuzikk-ytdl:latest
- Clone the repo.
git clone https://github.com/dank-stuff/dankmuzikk-ytdl- Create the docker environment file
cp .env.example .env.docker- Create required directories
mkdir -p .serve/{muzikkx,pix} .google-chrome-data-
Copy Google Chrome's data directory into
.google-chrome-data -
Run using Docker compose
docker compose up- Download songs by calling
http://localhost:4321/download/{video_id}
example:
curl http://localhost:4321/download/dQw4w9WgXcQ- You should see the song as mp3 under
<BLOBS_DIR>/muzikkxand its thumbnail under<BLOBS_DIR>/pix.
A DankStuff product!
Made with 🧉 by Baraa Al-Masri