Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iamwinner422/yt-clip-downloader-v1

Youtube Clip Downloader is a Node.js-based tool that allows users to download specific video clips from YouTube by providing a video URL, start time, and clip duration.
https://github.com/iamwinner422/yt-clip-downloader-v1

api-rest clip express-js ffmpeg fluent-ffmpeg shorts tiktok video youtube youtube-dl youtube-downloader ytdl-core

Last synced: 3 days ago
JSON representation

Youtube Clip Downloader is a Node.js-based tool that allows users to download specific video clips from YouTube by providing a video URL, start time, and clip duration.

Awesome Lists containing this project

README

        

# 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](https://github.com/fent/node-ytdl-core), [fluent-ffmep](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg) and [ffmpeg-static](https://github.com/eugeneware/ffmpeg-static)

## Demo link:
https://yt-clip-downloader.onrender.com

## Usage

### Download a clip
1. **Endpoint**: ```GET /download-clip```

2. **Query Parameters**:

| Parameter | Type | Description | Required |
|-----------|--------|--------------------------|----------|
|url | string | YouTube video URL | yes |
|start | number | Start time in seconds | yes |
|duration | number | Clip duration in seconds | yes |

3. **Example**:
```
curl "http://localhost:3000/download-clip?url=https://youtu.be/dQw4w9WgXcQ&start=500&duration=60"
```

### Get Video Informations
1. **Endpoint**: ```GET /video-infos```

2. **Query Parameters**:

| Parameter | Type | Description | Required |
|-----------|--------|--------------------------|----------|
|url | string | YouTube video URL | yes |

3. **Example**:
```
curl "http://localhost:3000/video-infos?url=https://youtu.be/dQw4w9WgXcQ&start=500&duration=60"
```