{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Scene Detection & Splitter – Cut Video into Clips",
    "description": "Video scene detection & splitter: finds every shot boundary (scene cut) in MP4, MOV, WebM or MKV files and splits the video into one MP4 clip per scene. Timestamps, thumbnails, CSV, EDL & JSON export. Frame-accurate or fast cuts. From $0.005 per video minute.",
    "version": "0.1",
    "x-build-id": "FGx81fZIFnAbhf853"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~video-scene-detector/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-video-scene-detector",
        "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/gazidev~video-scene-detector/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-video-scene-detector",
        "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/gazidev~video-scene-detector/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-video-scene-detector",
        "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": {
          "videoUrls": {
            "title": "Video file URLs (direct links)",
            "type": "array",
            "description": "Direct links to video FILES: MP4, MOV, M4V, WebM, MKV, AVI, MPEG-TS (your CDN, S3/R2/GCS bucket, Dropbox/Drive direct-download link, archive.org…). Every video is scanned for scene cuts and split into one clip per scene. Pages of YouTube, TikTok, Instagram, Vimeo etc. are refused (this is a splitter, not a downloader). Files up to 2 GB are downloaded first, so MP4s with the index at the end work too. Empty input runs a small demo.",
            "default": [
              "https://test-videos.co.uk/vids/sintel/mp4/h264/360/Sintel_360_10s_1MB.mp4"
            ],
            "items": {
              "type": "string"
            }
          },
          "bulkText": {
            "title": "Bulk list (paste text or CSV)",
            "type": "string",
            "description": "Optional: paste many URLs, one per line, or a CSV with a `url` column. Added to the list above."
          },
          "threshold": {
            "title": "Scene sensitivity (threshold)",
            "type": "string",
            "description": "ffmpeg scene-change score (0.02–0.95) a frame needs to start a new scene. Lower = more sensitive (more, shorter scenes, may split on fast motion or flashes); higher = only hard cuts. 0.3 suits most edited videos; try 0.2 for dark or soft footage, 0.4–0.5 for shaky handheld video.",
            "default": "0.3"
          },
          "minSceneSeconds": {
            "title": "Minimum scene length (seconds)",
            "type": "string",
            "description": "Scenes shorter than this are merged into the previous scene (avoids 3-frame clips from flashes or quick cutaways). 0 = keep every cut.",
            "default": "1"
          },
          "maxScenesPerVideo": {
            "title": "Max scenes per video",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Safety cap: only the first N scenes of each video get rows, thumbnails and clips.",
            "default": 500
          },
          "maxDurationMinutes": {
            "title": "Max minutes per video",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Only the first N minutes of each video are scanned and split (0 = no limit, default 240 = 4 hours). Protects you from surprise costs on very long files. The built-in demo video is always limited to its first minute.",
            "default": 240
          },
          "splitClips": {
            "title": "Split into clips (one MP4 per scene)",
            "type": "boolean",
            "description": "Cut every scene into its own MP4 file with a public download link. Turn off to get only timestamps, thumbnails and the CSV/EDL/JSON exports (then you pay only the scan).",
            "default": true
          },
          "fastCut": {
            "title": "Fast cut (stream copy, no re-encode)",
            "type": "boolean",
            "description": "On (default): clips are copied without re-encoding — original quality, ~20× faster and FREE; each clip starts at the keyframe at or before the cut, so it can begin with a few frames of the previous scene. Off: clips are re-encoded (H.264 veryfast, CRF 23, AAC) and start on the exact first frame of the scene (charged per clip minute).",
            "default": true
          },
          "maxResolution": {
            "title": "Max clip resolution (re-encode)",
            "enum": [
              "1080",
              "720",
              "480",
              "360"
            ],
            "type": "string",
            "description": "Re-encoded clips keep the source resolution up to this limit (short side; portrait videos are handled). Never upscales. Lower = smaller files and cheaper clip minutes (see pricing). Ignored with fast cut.",
            "default": "1080"
          },
          "thumbnails": {
            "title": "Scene thumbnails (JPG)",
            "type": "boolean",
            "description": "Save one JPG of the first frame of every scene, captured during the scan (free).",
            "default": true
          },
          "thumbnailWidth": {
            "title": "Thumbnail width (px)",
            "minimum": 64,
            "maximum": 1920,
            "type": "integer",
            "description": "Maximum thumbnail width; never upscales.",
            "default": 640
          },
          "maxConcurrency": {
            "title": "Videos in parallel",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many videos are processed at the same time. Encoding is CPU-bound, so more than 1 only helps with more memory (CPU).",
            "default": 1
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Only needed if a host blocks Apify datacenter IPs (HTTP 403). Usually leave off.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}