{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Scene Detection & Shot List: Cut Timecodes to CSV",
    "description": "Video scene detection and shot list: find every cut in video URLs, get scene start and end timecodes, frames and durations as CSV, JSON or EDL, with thumbnails and optional clips per scene. No API key.",
    "version": "0.1",
    "x-build-id": "eHqLggtAVA5sOGqlE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data-done-right~video-scene-detection/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data-done-right-video-scene-detection",
        "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/data-done-right~video-scene-detection/runs": {
      "post": {
        "operationId": "runs-sync-data-done-right-video-scene-detection",
        "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/data-done-right~video-scene-detection/run-sync": {
      "post": {
        "operationId": "run-sync-data-done-right-video-scene-detection",
        "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 URLs",
            "type": "array",
            "description": "Direct links to video files (mp4, webm, mov, mkv, avi...). Example: https://example.com/clip.mp4. Page URLs of YouTube, Vimeo, TikTok, Instagram and other streaming sites are rejected: use files you have the rights to.",
            "items": {
              "type": "string"
            }
          },
          "videoKeys": {
            "title": "Or video files in a key-value store",
            "type": "array",
            "description": "Keys of video files already stored in a key-value store (this run's default store, or the one named below). Example: my-clip.mp4.",
            "items": {
              "type": "string"
            }
          },
          "videoStore": {
            "title": "Key-value store of those files",
            "type": "string",
            "description": "Name or ID of the key-value store that holds the keys above. Leave empty for this run's default store."
          },
          "sceneThreshold": {
            "title": "Scene cut threshold",
            "minimum": 0.01,
            "maximum": 0.99,
            "type": "number",
            "description": "How different two frames must look to count as a cut, from 0.01 to 0.99. 0.3 is a good default for hard cuts; 0.1 to 0.2 also catches softer changes (and false cuts); 0.5 or more finds only very hard cuts. Example: 0.3.",
            "default": 0.3
          },
          "minSceneSeconds": {
            "title": "Minimum scene length (seconds)",
            "minimum": 0,
            "maximum": 3600,
            "type": "number",
            "description": "A cut is ignored if the scene before it would be shorter than this. The first cut of a cluster is kept, which also merges the many small detections a fade or dissolve produces. 0 keeps every detection. Example: 1.5.",
            "default": 1
          },
          "maxScenesPerVideo": {
            "title": "Max scenes per video",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on scene rows (and thumbnails) returned per video. The summary row still reports the total found. Example: 200.",
            "default": 500
          },
          "includeSummaryRow": {
            "title": "Add a summary row per video",
            "type": "boolean",
            "description": "Adds one row per video (rowType 'video') with duration, fps, resolution, sceneCount and the export link, before its scene rows. Turn off for scene rows only.",
            "default": true
          },
          "thumbnails": {
            "title": "Save a thumbnail per scene",
            "type": "boolean",
            "description": "Saves the middle frame of every scene as a JPG in the key-value store and puts its link in thumbnailUrl. Free; adds a little run time.",
            "default": true
          },
          "thumbnailWidth": {
            "title": "Thumbnail width (px)",
            "minimum": 32,
            "maximum": 1920,
            "type": "integer",
            "description": "Thumbnails are shrunk to this width, keeping the aspect ratio (never upscaled). Example: 480.",
            "default": 480
          },
          "exportFormat": {
            "title": "Shot list file",
            "enum": [
              "csv",
              "json",
              "edl",
              "none"
            ],
            "type": "string",
            "description": "One shot list file per video is saved in the key-value store and linked as exportUrl. Free. EDL timecodes are non-drop-frame.",
            "default": "csv"
          },
          "exportClips": {
            "title": "Also cut each scene into a clip file",
            "type": "boolean",
            "description": "Saves every scene as its own video file (clipUrl). Billed per clip (event scene-clip-created). Off by default.",
            "default": false
          },
          "clipMode": {
            "title": "Clip cutting method",
            "enum": [
              "streamCopy",
              "accurate"
            ],
            "type": "string",
            "description": "Stream copy does not re-encode, so clips are fast and lossless but can start a little before the scene (at the nearest earlier keyframe). Accurate re-encodes to H.264/AAC MP4 for frame-exact starts.",
            "default": "streamCopy"
          },
          "maxClipsPerVideo": {
            "title": "Max clips per video",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Caps the clips (and clip cost) per video; the first scenes are cut first. Example: 25.",
            "default": 25
          },
          "maxVideoSizeMb": {
            "title": "Max video file size (MB)",
            "minimum": 1,
            "maximum": 2048,
            "type": "integer",
            "description": "Downloads above this size are rejected before they finish. Example: 500.",
            "default": 500
          },
          "maxDurationMinutes": {
            "title": "Max video duration (minutes)",
            "minimum": 0.1,
            "type": "number",
            "description": "Longer videos are rejected without charge. Example: 60.",
            "default": 120
          },
          "videoTimeoutSecs": {
            "title": "Timeout per video (seconds)",
            "minimum": 10,
            "maximum": 7200,
            "type": "integer",
            "description": "Applies separately to the download, the scene scan, the thumbnails and each clip of one video.",
            "default": 600
          },
          "outputStoreName": {
            "title": "Save files in a named store",
            "type": "string",
            "description": "Optional key-value store name. Named stores are kept until you delete them, while a run's own store expires after your plan's retention period. Example: my-shot-lists."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}