{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Frame Extractor — Scene Detection, Keyframes & Thumbnails",
    "description": "Extract frames, keyframes and thumbnails from any MP4, MOV or other video file link: one per scene with timecodes, a fixed number evenly spread, one every N seconds, or exact times. Black frames and repeats skipped for free, contact sheet included, image links ready for AI vision models.",
    "version": "1.0",
    "x-build-id": "3NN0tEh3fK7TUz4hW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~video-frame-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-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/steadyscrape~video-frame-extractor/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-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/steadyscrape~video-frame-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-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",
        "required": [
          "videoUrls"
        ],
        "properties": {
          "videoUrls": {
            "title": "Video file links",
            "maxItems": 1000,
            "type": "array",
            "description": "Direct links to video files: mp4, mov, webm, mkv, avi, m4v, ts and anything else FFmpeg decodes, up to 2 GB each. A link that opens a web page (YouTube, TikTok, a Google Drive share page) is not a file and comes back as a free row that says so.",
            "items": {
              "type": "string",
              "pattern": "^\\s*[hH][tT][tT][pP][sS]?://[^\\s/?#]+([/?#].*)?\\s*$"
            }
          },
          "mode": {
            "title": "Which frames",
            "enum": [
              "scenes",
              "count",
              "interval",
              "timestamps"
            ],
            "type": "string",
            "description": "scenes: finds every cut and saves a frame from the middle of each scene, with the scene list and its timecodes. count: a fixed number of frames spread evenly. interval: one frame every N seconds. timestamps: the exact times you list.",
            "default": "scenes"
          },
          "frameCount": {
            "title": "Frames per video (mode count)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many frames to spread evenly over each video.",
            "default": 12
          },
          "intervalSeconds": {
            "title": "Seconds between frames (mode interval)",
            "minimum": 0.1,
            "type": "number",
            "description": "One frame every this many seconds, starting at 0. Decimals work: 0.5 is two frames a second.",
            "default": 10
          },
          "timestamps": {
            "title": "Times (mode timestamps)",
            "type": "array",
            "description": "Seconds (95.5) or timecodes (1:35.5, 00:01:35.500). Each gives the first frame shown at or after it.",
            "items": {
              "type": "string"
            }
          },
          "sceneThreshold": {
            "title": "Scene cut sensitivity (mode scenes)",
            "minimum": 0.02,
            "maximum": 0.6,
            "type": "number",
            "description": "How much the picture must change from one frame to the next to count as a cut, from 0.02 (every camera move is a cut) to 0.6 (only hard cuts between very different shots). 0.1 finds the cuts of an edited video without splitting fast action.",
            "default": 0.1
          },
          "minSceneSeconds": {
            "title": "Shortest scene, in seconds (mode scenes)",
            "minimum": 0,
            "maximum": 600,
            "type": "number",
            "description": "Cuts closer than this count as one, the strongest: a flash or a whip pan trips several frames in a row.",
            "default": 0.5
          },
          "framesPerScene": {
            "title": "Frames per scene (mode scenes)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "1 saves the middle of each scene. 2 to 5 spread that many frames inside it, never on the cut itself.",
            "default": 1
          },
          "maxFramesPerVideo": {
            "title": "Most frames per video",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "A cap on what each video can cost. When a video has more scenes than this, the longest scenes are kept; in mode interval, the first frames.",
            "default": 50
          },
          "skipBlankFrames": {
            "title": "Step past black and blank frames",
            "type": "boolean",
            "description": "A frame of one flat colour (black, white, a fade) is replaced by the first frame with content in the next 2 seconds of its scene; if there is none it is dropped and not charged. Titles on black are kept.",
            "default": true
          },
          "skipDuplicateFrames": {
            "title": "Skip repeated pictures",
            "type": "boolean",
            "description": "A frame that shows the same picture as the frame kept before it is dropped and not charged: a slide held for a minute, a paused screen. The same frame of the video is never delivered twice either way.",
            "default": true
          },
          "imageFormat": {
            "title": "Image format",
            "enum": [
              "jpg",
              "webp",
              "png"
            ],
            "type": "string",
            "description": "jpg is the smallest for photos and what every AI model reads; webp is smaller still; png is lossless.",
            "default": "jpg"
          },
          "imageQuality": {
            "title": "Image quality (jpg and webp)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "From 1 to 100.",
            "default": 85
          },
          "maxWidth": {
            "title": "Largest image width, in pixels",
            "minimum": 0,
            "maximum": 7680,
            "type": "integer",
            "description": "Wider frames are shrunk to this width, keeping their shape; 0 keeps the video's own size. 1280 is a YouTube thumbnail and plenty for an AI vision model.",
            "default": 1280
          },
          "contactSheet": {
            "title": "Contact sheet",
            "type": "boolean",
            "description": "Also save one image with every frame of the video in a grid, each labelled with its time. Free.",
            "default": true
          },
          "maxMinutesPerVideo": {
            "title": "Minutes read per video",
            "minimum": 0,
            "type": "integer",
            "description": "Reads only the first minutes of each video; 0 reads the whole video. A video cut short says so in its row.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}