Skip to content

dank-stuff/dankmuzikk-ytdl

Repository files navigation

YTDL API

A Docker image to download YouTube songs.

About

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.

Usage

Pull Image

Use mbaraa/dankmuzikk-ytdl:latest

Build image

  1. Clone the repo.
git clone https://github.com/dank-stuff/dankmuzikk-ytdl
  1. Create the docker environment file
cp .env.example .env.docker
  1. Create required directories
mkdir -p .serve/{muzikkx,pix} .google-chrome-data
  1. Copy Google Chrome's data directory into .google-chrome-data

  2. Run using Docker compose

docker compose up
  1. Download songs by calling http://localhost:4321/download/{video_id}

example:

curl http://localhost:4321/download/dQw4w9WgXcQ
  1. You should see the song as mp3 under <BLOBS_DIR>/muzikkx and its thumbnail under <BLOBS_DIR>/pix.

A DankStuff product!

Made with 🧉 by Baraa Al-Masri

About

YouTube songs donwload utility for DankMuzikk.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors