Skip to content

Youtube Clip Downloader is a NodeJS/NestJS-based tool that allows you to download specific video clips from YouTube by providing a video URL, start time, and clip duration.

Notifications You must be signed in to change notification settings

iamwinner422/yt-clip-downloader

Repository files navigation

Youtube Clip Downloader API

This API allows you to download specific segments of YouTube videos by specifying a start timestamp and duration. It's based on ytdl-core (DisTube version), fluent-ffmep, ffmpeg-static and Nest Framework

Demo link:

https://yt-clip-downloader.koyeb.app

Project setup

$ npm install

Compile and run the project

# development
$ npm run start

# watch mode
$ npm run dev

# production mode
$ npm run start:prod

Usage

The Swagger definition for this API is available here

Download a clip

  1. Endpoint: GET /download-clip

  2. Query Parameters:

Parameter Type Description Required
videoURL string YouTube video URL yes
start number Start time in seconds yes
duration number Clip duration in seconds yes
  1. Example:
curl -X 'GET' \
  'http://localhost:3000/download-clip?videoURL=https://youtu.be/dQw4w9WgXcQ&start=60&duration=30' \
  -H 'accept: application/json'

Get Video Informations

  1. Endpoint: GET /video-infos

  2. Query Parameters:

Parameter Type Description Required
videoURL string YouTube video URL yes
  1. Example:
curl -X 'GET' \
  'http://localhost:3000/video-info?videoURL=https://youtu.be/dQw4w9WgXcQ' \
  -H 'accept: application/json'

About

Youtube Clip Downloader is a NodeJS/NestJS-based tool that allows you to download specific video clips from YouTube by providing a video URL, start time, and clip duration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published