{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Frame Extractor: Thumbnails, Scenes & Contact Sheets",
    "description": "Extract frames and thumbnails from your own video files for $1.50 per 1,000: evenly spaced, every N seconds, at scene changes or set timestamps. JPG, PNG or WebP, contact sheet, animated preview and video metadata.",
    "version": "0.1",
    "x-build-id": "17JrEqEqyYVUxoMZL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/plotpointtech~video-frame-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-plotpointtech-video-frame-extractor",
        "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/plotpointtech~video-frame-extractor/runs": {
      "post": {
        "operationId": "runs-sync-plotpointtech-video-frame-extractor",
        "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/plotpointtech~video-frame-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-plotpointtech-video-frame-extractor",
        "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",
            "type": "array",
            "description": "Direct links to video files you own or are allowed to use: .mp4, .mov, .webm, .mkv (also .m4v, .avi, .ts, .ogv and most other formats ffmpeg reads). Cloud storage links work (S3, Google Cloud Storage, Azure Blob, Dropbox ?dl=1, signed URLs). YouTube, Vimeo, TikTok, Instagram, Facebook, X and other platform pages are refused, as are HLS/DASH playlists. Leave empty to process a 26-second public-domain sample video.",
            "items": {
              "type": "string"
            }
          },
          "videoFile": {
            "title": "Upload a video file",
            "type": "string",
            "description": "Or upload one video file directly from your computer."
          },
          "keyValueStoreId": {
            "title": "Apify key-value store with videos",
            "type": "string",
            "description": "Process every video file stored in an Apify key-value store (for example uploads from another Actor). Pick one of your storages or paste its ID."
          },
          "keyValueStorePrefix": {
            "title": "Key prefix filter",
            "type": "string",
            "description": "Optional: only records whose key starts with this text."
          },
          "mode": {
            "title": "What frames to extract",
            "enum": [
              "count",
              "interval",
              "scene",
              "timestamps"
            ],
            "type": "string",
            "description": "Evenly spaced: the number of frames you set, spread across the video (good for thumbnails and previews). Every N seconds: a fixed interval. Scene changes: a frame at each cut, found with ffmpeg's scene score (billed per video minute scanned as well). Timestamps: the exact times you list.",
            "default": "count"
          },
          "frameCount": {
            "title": "Number of frames (evenly spaced)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Used in evenly spaced mode. Frames are taken from the middle of equal segments, so the black first and last frames are avoided.",
            "default": 12
          },
          "intervalSeconds": {
            "title": "Interval in seconds (every N seconds)",
            "minimum": 0.05,
            "maximum": 86400,
            "type": "number",
            "description": "Used in interval mode, e.g. 1 = one frame per second, 0.5 = two per second, 60 = one per minute. The first frame is at the start time.",
            "default": 10
          },
          "sceneThreshold": {
            "title": "Scene change threshold",
            "minimum": 0.01,
            "maximum": 0.99,
            "type": "number",
            "description": "Used in scene mode. 0 to 1: how different a frame must be from the previous one. 0.3 suits most edited videos; use 0.15-0.2 for subtle cuts or dissolves and 0.4-0.5 to keep only hard cuts.",
            "default": 0.3
          },
          "sceneMinGapSeconds": {
            "title": "Minimum seconds between scene frames",
            "minimum": 0,
            "maximum": 3600,
            "type": "number",
            "description": "Used in scene mode. Ignores further cuts within this many seconds of the last kept frame (stops flashes and fast montages from producing bursts).",
            "default": 1
          },
          "sceneIncludeFirstFrame": {
            "title": "Include the first frame in scene mode",
            "type": "boolean",
            "description": "Also return the opening shot (scene mode only finds cuts, so without this the first scene has no frame).",
            "default": true
          },
          "timestamps": {
            "title": "Timestamps",
            "type": "array",
            "description": "Used in timestamps mode. Seconds (12.5), mm:ss (1:30), hh:mm:ss.ms (00:01:30.250) or a percentage of the duration (50%).",
            "items": {
              "type": "string"
            }
          },
          "startTime": {
            "title": "Start time",
            "type": "string",
            "description": "Optional: ignore everything before this point (seconds, mm:ss, hh:mm:ss or %)."
          },
          "endTime": {
            "title": "End time",
            "type": "string",
            "description": "Optional: ignore everything after this point (seconds, mm:ss, hh:mm:ss or %)."
          },
          "maxFramesPerVideo": {
            "title": "Maximum frames per video",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on frames returned for each video, whatever the mode. Protects your budget on long videos.",
            "default": 200
          },
          "outputFormat": {
            "title": "Image format",
            "enum": [
              "jpg",
              "png",
              "webp"
            ],
            "type": "string",
            "description": "Format of the frame images and the contact sheet.",
            "default": "jpg"
          },
          "quality": {
            "title": "Quality (JPG/WebP)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "1-100. 85 is visually lossless for most videos.",
            "default": 85
          },
          "width": {
            "title": "Maximum width (px)",
            "minimum": 0,
            "maximum": 8192,
            "type": "integer",
            "description": "Resize frames to at most this width, keeping the aspect ratio. 0 = original size. Frames are never enlarged.",
            "default": 0
          },
          "height": {
            "title": "Maximum height (px)",
            "minimum": 0,
            "maximum": 8192,
            "type": "integer",
            "description": "Resize frames to at most this height, keeping the aspect ratio. 0 = original size.",
            "default": 0
          },
          "contactSheet": {
            "title": "Create a contact sheet",
            "type": "boolean",
            "description": "One grid image per video with all extracted frames (up to 100, sampled evenly) and their timecodes, plus a header with duration, resolution, fps and codec. Free.",
            "default": true
          },
          "contactSheetColumns": {
            "title": "Contact sheet columns",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Thumbnails per row.",
            "default": 4
          },
          "contactSheetThumbWidth": {
            "title": "Contact sheet thumbnail width (px)",
            "minimum": 80,
            "maximum": 1024,
            "type": "integer",
            "description": "Width of each thumbnail in the grid.",
            "default": 320
          },
          "animatedPreview": {
            "title": "Animated preview",
            "enum": [
              "none",
              "gif",
              "webp"
            ],
            "type": "string",
            "description": "A short looping preview per video. Free.",
            "default": "none"
          },
          "previewType": {
            "title": "Preview type",
            "enum": [
              "slideshow",
              "clip"
            ],
            "type": "string",
            "description": "Slideshow: the extracted frames played in sequence. Clip: a few seconds of real motion from the video.",
            "default": "slideshow"
          },
          "previewClipStart": {
            "title": "Clip start",
            "type": "string",
            "description": "Where the moving clip starts (seconds, mm:ss or %). Default: 10% into the video."
          },
          "previewClipSeconds": {
            "title": "Clip length (seconds)",
            "minimum": 1,
            "maximum": 15,
            "type": "number",
            "description": "Length of the moving clip.",
            "default": 4
          },
          "previewWidth": {
            "title": "Preview width (px)",
            "minimum": 64,
            "maximum": 960,
            "type": "integer",
            "description": "Width of the animated preview.",
            "default": 320
          },
          "previewFps": {
            "title": "Preview frames per second",
            "minimum": 0,
            "maximum": 30,
            "type": "number",
            "description": "0 = automatic (2 for a slideshow, 10 for a clip).",
            "default": 0
          },
          "maxFileSizeMb": {
            "title": "Maximum video file size (MB)",
            "minimum": 1,
            "maximum": 20480,
            "type": "integer",
            "description": "Videos larger than this are skipped (not charged). The size is checked before anything is downloaded.",
            "default": 2048
          },
          "downloadBelowMb": {
            "title": "Download files smaller than (MB)",
            "minimum": 0,
            "maximum": 4096,
            "type": "integer",
            "description": "Files up to this size are downloaded once for fast, reliable seeking. Larger files are streamed with HTTP range requests, so only the parts needed are read (if the server supports ranges). 0 = always stream.",
            "default": 300
          },
          "maxVideoMinutes": {
            "title": "Maximum minutes to scan (scene mode)",
            "minimum": 1,
            "maximum": 1440,
            "type": "integer",
            "description": "Scene detection decodes the whole video; longer videos are scanned only up to this many minutes.",
            "default": 240
          },
          "timeoutSecondsPerVideo": {
            "title": "Time limit per video (seconds)",
            "minimum": 30,
            "maximum": 7200,
            "type": "integer",
            "description": "ffmpeg is stopped if one video takes longer than this. The video is then skipped and not charged.",
            "default": 900
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}