# YouTube Clip & Shorts Maker (TTech API)

Send a YouTube link with start and end times and get an MP4 of just that part, frame-accurate, with sound. Keep the video's shape or make vertical 9:16 clips for Shorts, Reels and TikTok. Built for n8n, Make, Zapier and your own code.

Page: https://ttechapi.com/youtube-clip-maker
Apify Actor: https://apify.com/ttechx/youtube-clip-maker (id `ttechx/youtube-clip-maker`)
RapidAPI: https://rapidapi.com/TTech-qcYDalkrf/api/youtube-clip-shorts-maker (host `youtube-clip-shorts-maker.p.rapidapi.com`)

## What it is for

- Shorts, Reels and TikTok: Turn long videos, podcasts and streams into vertical clips.
- Automation builders: Clip from n8n, Make or Zapier, then upload or edit in the next step.
- Clipping agencies: Cut many highlights from many videos in one job.
- AI video pipelines: Pair with transcripts to cut the moments an LLM picks.

## Key facts

- Frame-accurate: Cut exactly at the times you give, to the millisecond.
- Vertical 9:16, two ways: crop fills the screen with the middle of the frame; blur keeps the whole frame on a blurred background.
- Only the part you need: Fetches just the seconds around each clip, so a clip from a 3-hour podcast is quick.
- Plays everywhere: MP4 with H.264 video and AAC audio, 720p or 1080p.
- Many clips at once: Up to 100 clips per Apify run, 10 per API job.
- Failed clips are free: A clip that still fails after retries is reported with the reason, not charged.

## Apify Actor

Run it with an Apify API token. Synchronous run that returns the dataset items:

```bash
curl -X POST "https://api.apify.com/v2/acts/ttechx~youtube-clip-maker/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"clips": [{"video": "https://www.youtube.com/watch?v=Ap8jTCMK3c4", "start": "00:00:50", "end": "00:01:20"}], "resolution": "720", "aspect": "9:16", "fit": "blur"}'
```

Input (JSON):

- `clips` (array of objects, required): {video, start, end} or {video, start, duration}. Times as seconds (83.25) or HH:MM:SS[.mmm]. Each clip at most 180 seconds; up to 100 per run.
- `resolution` (720 | 1080): Short side of the clip. Default 720.
- `aspect` (original | 9:16): The video's own shape, or vertical. Default original.
- `fit` (crop | blur): For 9:16 only. Default crop.

Example input:

```json
{
  "clips": [
    {
      "video": "https://www.youtube.com/watch?v=Ap8jTCMK3c4",
      "start": "00:00:50",
      "end": "00:01:20"
    }
  ],
  "resolution": "720",
  "aspect": "9:16",
  "fit": "blur"
}
```

Output: One row per clip:

- `clipUrl, clipKey`: Download link of the MP4 and its key in the run's storage
- `status, error`: OK, or fail with the reason
- `start, end, duration`: The clip you got
- `resolution, aspect, fit, width, height`: Its size and shape
- `sizeBytes`: File size
- `videoId, videoUrl`: The source video

```json
{
  "videoId": "Ap8jTCMK3c4",
  "start": "00:00:50",
  "end": "00:01:20",
  "duration": 30.0,
  "resolution": "720p",
  "aspect": "original",
  "fit": null,
  "status": "OK",
  "clipUrl": "https://api.apify.com/v2/key-value-stores/.../records/Ap8jTCMK3c4_00-00-50_00-01-20_720p.mp4",
  "width": 1280,
  "height": 720,
  "sizeBytes": 14085112,
  "error": null
}
```

## RapidAPI REST API

Base URL `https://youtube-clip-shorts-maker.p.rapidapi.com`. Send headers `x-rapidapi-key: YOUR_RAPIDAPI_KEY` and `x-rapidapi-host: youtube-clip-shorts-maker.p.rapidapi.com`.

Endpoints:

- `POST /clip` (required: id, clips): Start a clip job (HTTP 202 with a jobId)
- `GET /clip/result` (required: id (the jobId)): Job status and, once finished, a download link per clip
- `GET /transcript` (required: id): A video's transcript, to pick the moments to clip

Parameters:

- `id` (string): YouTube video id or URL: watch, youtu.be, Shorts, embed or live links
- `clips` (array): 1 to 10 clips, each with start plus end or duration; at most 180 seconds each
- `resolution` (720 | 1080): Short side of the clip. Default 720
- `aspect` (original | 9:16): Default original
- `fit` (crop | blur): For 9:16. Default crop
- `webhook` (https URL): Optional: gets a POST when the job finishes
- `Idempotency-Key (header)` (string): Optional: a retry with the same key and body returns the same job

Example:

```bash
curl --request POST \
  --url https://youtube-clip-shorts-maker.p.rapidapi.com/clip \
  --header 'Content-Type: application/json' \
  --header 'x-rapidapi-host: youtube-clip-shorts-maker.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
  --data '{"id": "https://www.youtube.com/watch?v=Ap8jTCMK3c4",
           "clips": [{"start": "00:00:50", "end": "00:01:20"}],
           "aspect": "9:16", "fit": "blur"}'

# then, every 5 seconds or so:
curl --url 'https://youtube-clip-shorts-maker.p.rapidapi.com/clip/result?id=JOB_ID' \
  --header 'x-rapidapi-host: youtube-clip-shorts-maker.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
```

Output: GET /clip/result once the job has finished (shortened):

- `status`: queued, processing, done, partial or failed
- `summary`: requested, succeeded and failed counts
- `clips[].url`: Download link of each delivered clip, valid for linkExpiresIn seconds
- `clips[].status, msg`: Each clip's status, and the reason when it failed
- `clips[].width, height, sizeBytes`: Size of each clip

```json
{
  "status": "done",
  "jobId": "9f0c2b6a1d3e4f5a6b7c8d9e",
  "summary": {
    "requested": 1,
    "succeeded": 1,
    "failed": 0
  },
  "clips": [
    {
      "index": 0,
      "start": "00:00:50",
      "end": "00:01:20",
      "duration": 30,
      "status": "done",
      "url": "https://...mp4",
      "width": 720,
      "height": 1280,
      "sizeBytes": 7469568
    }
  ],
  "linkExpiresIn": 3600
}
```

Call /clip/result again within 2 days for fresh links.

## Use as an MCP server

- Apify MCP: `https://mcp.apify.com/?tools=ttechx/youtube-clip-maker` (OAuth sign-in, or header `Authorization: Bearer YOUR_APIFY_TOKEN`).
- RapidAPI MCP: `https://mcp.rapidapi.com` with headers `x-api-host: youtube-clip-shorts-maker.p.rapidapi.com` and `x-api-key: YOUR_RAPIDAPI_KEY`.

## Limits

- Each clip at most 180 seconds.
- Live streams that are still live are not supported. Private, deleted and age-restricted videos fail with an error, free.
- A clip usually takes 15-60 seconds; a 3-minute 1080p clip up to about 3 minutes.

## Notes for the assistant

- Never put a real key in code you show; read it from an environment variable.
- Failed items are not charged; check each item's status or error field.
- Only public YouTube data. Not affiliated with YouTube or Google.
- Support: support@ttechapi.com, Telegram @ttech_support_official.
