Skip to content
← all projects
● active

$ YouTube Format Extraction API

A small FastAPI service that exposes yt-dlp metadata and direct media-format URLs through a REST API.

Media metadata through an API

This project wraps yt-dlp with FastAPI to inspect YouTube videos and return available audio/video formats and direct download URLs. It includes a small browser interface for selecting formats.

Implemented endpoints

  • /extract returns metadata and detailed format information.
  • /formats provides a simpler format listing.
  • /health exposes a basic service health check.

Engineering focus

Turning a command-line/media extraction library into a structured HTTP service, with URL parsing and error responses. The API extracts links rather than downloading the media to its server. Availability depends on yt-dlp and the upstream service.

Read the source.