Back to services

ydl_api_ng

Simple youtube-dl REST API to launch downloads on a distant server.

View alternatives to ydl_api_ng
Suggest edit
Open source
Self-hostable
GPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: The official website could not be fetched when this entry was written. The content below is based on general knowledge of the project and includes only the information we are fairly sure of. For specific features, configuration methods and the license, please refer to the README in the GitHub repository.

Introduction

ydl_api_ng is an open-source project hosted on GitHub (Totonyus/ydl_api_ng). It adds an HTTP API layer on top of yt-dlp, turning the command-line download tool into a service that can be called remotely. You simply send the service a request containing a video link, and the server calls yt-dlp to download the media into a preconfigured directory.

Key Features

  • Downloads via HTTP API: Submit video or audio links through HTTP requests, and the server handles the download.
  • Built on yt-dlp: The sites and formats that yt-dlp supports are, for the most part, usable here too.
  • Preset configurations: You can set up different combinations of download parameters in advance, such as format, quality and save path, and choose one as needed when making a call.
  • Easy to integrate: It plugs easily into browser bookmarklets, phone shortcuts and automation tools, so you can send a download task with one click.

Target Users and Use Cases

  • Users with a NAS or home server who want to save online videos in one place;
  • Users who want to send a video to their server for download with one click from their phone or browser;
  • Developers and tinkerers who want to build video downloads into automated workflows.

Core Strengths

  • Downloads are done on the server, so the client only needs to send a request;
  • Because it relies on yt-dlp, it supports many sites and is actively maintained;
  • It is self-hosted, so your data and downloaded files stay in your own hands.

Deployment

The project is written in Python, and deploying it with Docker is generally recommended: pull the image, mount the download directory and the configuration directory, and map the API port. For the specific image name, environment variables and configuration file format, please see the repository README.

Technical Requirements

  • A server, NAS or personal computer that can run Docker or Python;
  • A network connection to reach the target video sites;
  • Enough disk space to store the downloaded media files.

Notes

  • If the service is exposed to the public internet, it is best to use it together with a reverse proxy and access control to prevent abuse;
  • When downloading content, please comply with the terms of service of the relevant websites and with copyright laws and regulations.