{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Clipper: Long Video to Shorts, Reels & TikTok",
    "description": "Turn a long video into vertical 9:16 clips for TikTok, Reels and Shorts. Auto-picks the best moments, burns in word-by-word captions with built-in Whisper (no API key), adds a hook title, SRT, thumbnail and post caption. $0.03 per clip.",
    "version": "1.0",
    "x-build-id": "9kmTxifHoZN3v5Jml"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/iveeeeeen~video-clipper-shorts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-iveeeeeen-video-clipper-shorts",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/iveeeeeen~video-clipper-shorts/runs": {
      "post": {
        "operationId": "runs-sync-iveeeeeen-video-clipper-shorts",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/iveeeeeen~video-clipper-shorts/run-sync": {
      "post": {
        "operationId": "run-sync-iveeeeeen-video-clipper-shorts",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "videos": {
            "title": "Video file URLs",
            "type": "array",
            "description": "Direct links to video files you own or have the rights to: MP4, MOV, WebM, MKV, M4V or HLS (.m3u8). Works with S3, Google Cloud Storage, Dropbox/Drive direct-download links, CDN links and Apify key-value store record URLs. Each entry can be a URL string, or an object {\"url\": \"…\", \"clips\": [{\"start\": \"1:05\", \"end\": \"1:40\", \"title\": \"…\"}], \"clipCount\": 5}. YouTube / TikTok / Instagram page links are not supported.",
            "default": [
              "https://upload.wikimedia.org/wikipedia/commons/transcoded/7/72/Astronaut_Moments-_Anne_McClain.webm/Astronaut_Moments-_Anne_McClain.webm.480p.vp9.webm"
            ]
          },
          "mode": {
            "title": "Clip mode",
            "enum": [
              "auto",
              "manual",
              "split"
            ],
            "type": "string",
            "description": "auto = transcribe the video and pick the best moments for you (scored on hook, pace, energy and complete sentences). manual = cut the exact start/end times you give in \"clips\". split = cut the whole video into equal parts.",
            "default": "auto"
          },
          "clipCount": {
            "title": "Number of clips per video (auto mode)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many of the top-scoring, non-overlapping moments to render per video.",
            "default": 2
          },
          "minClipSeconds": {
            "title": "Minimum clip length (seconds)",
            "minimum": 3,
            "maximum": 180,
            "type": "integer",
            "description": "Shortest clip auto mode may pick.",
            "default": 15
          },
          "maxClipSeconds": {
            "title": "Maximum clip length (seconds)",
            "minimum": 5,
            "maximum": 180,
            "type": "integer",
            "description": "Longest clip auto mode may pick (also the default length of a manual clip that has no end). TikTok/Reels sweet spot is 20–60 s.",
            "default": 45
          },
          "focusKeywords": {
            "title": "Focus keywords (optional)",
            "type": "array",
            "description": "Moments that mention these words or phrases score higher in auto mode (e.g. your product name, a topic).",
            "items": {
              "type": "string"
            }
          },
          "clips": {
            "title": "Manual clips (manual mode)",
            "type": "array",
            "description": "Used in manual mode for every video that has no own \"clips\" list. Each item: {\"start\": \"0:30\", \"end\": \"1:05\", \"title\": \"Optional hook text\"}. Times accept seconds (75.5) or mm:ss / hh:mm:ss."
          },
          "splitSeconds": {
            "title": "Part length (split mode, seconds)",
            "minimum": 5,
            "maximum": 600,
            "type": "integer",
            "description": "Split mode cuts the video into parts of this length.",
            "default": 60
          },
          "aspectRatio": {
            "title": "Output aspect ratio",
            "enum": [
              "9:16",
              "1:1",
              "4:5",
              "16:9"
            ],
            "type": "string",
            "description": "9:16 for TikTok, Reels and YouTube Shorts; 1:1 and 4:5 for feed posts; 16:9 keeps landscape.",
            "default": "9:16"
          },
          "reframe": {
            "title": "Reframe style",
            "enum": [
              "blur",
              "crop",
              "pad"
            ],
            "type": "string",
            "description": "blur = whole picture on a blurred, zoomed copy of itself (nothing cut off, the popular podcast-clip look). crop = fill the frame by cropping the sides (use Crop position to aim). pad = whole picture with black bars.",
            "default": "blur"
          },
          "cropPosition": {
            "title": "Crop position (crop mode)",
            "type": "string",
            "description": "Horizontal aim of the crop, from 0 (left edge) through 0.5 (center) to 1 (right edge). Example: 0.3 if the speaker sits left of center.",
            "default": "0.5"
          },
          "resolution": {
            "title": "Resolution",
            "enum": [
              "720p",
              "1080p"
            ],
            "type": "string",
            "description": "720p (720×1280 for 9:16) is faster and plenty for phones. 1080p (1080×1920) takes about twice as long to render.",
            "default": "720p"
          },
          "captions": {
            "title": "Burn in captions",
            "type": "boolean",
            "description": "Transcribe speech with Whisper (runs inside the Actor, no API key needed) and burn TikTok-style captions into the video. An SRT file is saved either way when there is speech.",
            "default": true
          },
          "captionStyle": {
            "title": "Caption style",
            "enum": [
              "highlight",
              "pop",
              "plain"
            ],
            "type": "string",
            "description": "highlight = 2–4 words on screen, the spoken word lights up. pop = one big word at a time. plain = classic subtitle lines.",
            "default": "highlight"
          },
          "captionFont": {
            "title": "Caption font",
            "enum": [
              "montserrat",
              "anton",
              "dejavu"
            ],
            "type": "string",
            "description": "Montserrat ExtraBold, Anton (condensed, very bold) or DejaVu Sans.",
            "default": "montserrat"
          },
          "captionWordsPerLine": {
            "title": "Words on screen (highlight style)",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many words are shown at once in highlight style.",
            "default": 3
          },
          "captionUppercase": {
            "title": "Uppercase captions",
            "type": "boolean",
            "description": "Show captions in CAPITALS.",
            "default": true
          },
          "captionColor": {
            "title": "Caption colour",
            "type": "string",
            "description": "Hex colour, e.g. #FFFFFF.",
            "default": "#FFFFFF"
          },
          "captionHighlightColor": {
            "title": "Highlight colour",
            "type": "string",
            "description": "Hex colour of the word being spoken (highlight style), e.g. #FFE000.",
            "default": "#FFE000"
          },
          "captionPosition": {
            "title": "Caption position",
            "enum": [
              "top",
              "middle",
              "lower",
              "bottom"
            ],
            "type": "string",
            "description": "Vertical placement of captions.",
            "default": "lower"
          },
          "hookTitle": {
            "title": "Show hook title",
            "type": "boolean",
            "description": "Show the clip's title (auto-written in auto mode, or your manual title) in a white box at the top for the first seconds.",
            "default": true
          },
          "hookTitleSeconds": {
            "title": "Hook title duration (seconds)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "How long the hook title stays on screen. Set it to the clip length to keep it the whole time.",
            "default": 4
          },
          "language": {
            "title": "Spoken language (optional)",
            "type": "string",
            "description": "ISO code such as en, es, de, pt, fr. Leave empty to auto-detect (99 languages)."
          },
          "whisperModel": {
            "title": "Speech model",
            "enum": [
              "base",
              "tiny"
            ],
            "type": "string",
            "description": "base = better accuracy (default). tiny = about 2× faster transcription, a little less accurate.",
            "default": "base"
          },
          "thumbnails": {
            "title": "Save a thumbnail per clip",
            "type": "boolean",
            "description": "Save a JPG cover frame for each clip.",
            "default": true
          },
          "maxVideoMinutes": {
            "title": "Max minutes used per video",
            "minimum": 1,
            "maximum": 240,
            "type": "integer",
            "description": "Longer videos are only analysed and split up to this point. Protects your budget.",
            "default": 120
          },
          "maxFileSizeMb": {
            "title": "Max file size (MB)",
            "minimum": 10,
            "maximum": 8192,
            "type": "integer",
            "description": "Downloads larger than this are skipped (not charged).",
            "default": 2048
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}