Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamwinner422/yt-clip-downloader
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
api-rest clip express-js ffmpeg fluent-ffmpeg shorts tiktok video youtube youtube-dl youtube-downloader ytdl-core
Last synced: about 1 month 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.
- Host: GitHub
- URL: https://github.com/iamwinner422/yt-clip-downloader
- Owner: iamwinner422
- Created: 2024-12-26T15:47:30.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-27T22:02:08.000Z (about 1 month ago)
- Last Synced: 2024-12-27T23:32:49.101Z (about 1 month ago)
- Topics: api-rest, clip, express-js, ffmpeg, fluent-ffmpeg, shorts, tiktok, video, youtube, youtube-dl, youtube-downloader, ytdl-core
- Language: JavaScript
- Homepage: https://yt-clip-downloader.onrender.com/
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/distubejs/ytdl-core) (DisTube version), [fluent-ffmep](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg), [ffmpeg-static](https://github.com/eugeneware/ffmpeg-static) and [Nest](https://nestjs.com) Framework
## Demo link:
https://yt-clip-downloader.koyeb.app## Project setup
```bash
$ npm install
```## Compile and run the project
```bash
# 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](https://yt-clip-downloader.koyeb.app)
### 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 |3. **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 |3. **Example**:
```
curl -X 'GET' \
'http://localhost:3000/video-info?videoURL=https://youtu.be/dQw4w9WgXcQ' \
-H 'accept: application/json'
```