{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Frame Extractor with Transcript: Keyframes for LLMs",
    "description": "Extract keyframes from your MP4, MOV or WEBM file links with the words spoken at each frame: scene changes plus evenly spaced frames, a free contact sheet and an optional Whisper transcript aligned to every frame, ready for GPT, Claude or Gemini. $0.002 per frame; failed videos free.",
    "version": "0.1",
    "x-build-id": "eazp07fWQDV2TDeQl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/webstack-labs~video-frame-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-webstack-labs-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/webstack-labs~video-frame-extractor/runs": {
      "post": {
        "operationId": "runs-sync-webstack-labs-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/webstack-labs~video-frame-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-webstack-labs-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": "One link per line: a video file (MP4, MOV, WEBM, MKV, AVI, M4V, anything FFmpeg reads) or a web page with a video player, such as a product, course or blog page (the file it plays is found and used). Each video gives one row. Dropbox and Google Drive share links work. Pages of YouTube, TikTok, Vimeo, Instagram and similar platforms are not supported (their terms do not allow downloading). Empty = free 12-second sample.",
            "items": {
              "type": "string"
            }
          },
          "findVideoInPages": {
            "title": "Find the video on web pages",
            "type": "boolean",
            "description": "When a link opens a web page instead of a file, look on that page for the video file it plays (Open Graph video tags, <video> players, links to .mp4/.mov/.webm files) and use that file. The row then has mediaUrl. Pages of YouTube, Vimeo and similar platforms are never used. Default: on. Turn off to get a free not_a_media_file row instead.",
            "default": true
          },
          "framesPerVideo": {
            "title": "Frames per video",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "The most frames to return per video (1-200, default 20). Each returned frame is one charged event. Short videos may get fewer frames (see Minimum seconds between frames).",
            "default": 20
          },
          "mode": {
            "title": "How to pick frames",
            "enum": [
              "auto",
              "scenes",
              "interval",
              "count"
            ],
            "type": "string",
            "description": "auto (default) = the opening frame and the strongest scene changes, with evenly spaced frames filling long shots, so every part of the video is covered; scenes = only the opening frame and scene changes; interval = one frame every 'Seconds between frames'; count = 'Frames per video' evenly spaced frames.",
            "default": "auto"
          },
          "intervalSecs": {
            "title": "Seconds between frames (interval mode)",
            "minimum": 0.5,
            "maximum": 3600,
            "type": "number",
            "description": "Used only with mode interval: one frame every this many seconds (default 10), up to 'Frames per video'.",
            "default": 10
          },
          "sceneThreshold": {
            "title": "Scene change sensitivity",
            "minimum": 0.05,
            "maximum": 0.95,
            "type": "number",
            "description": "How different two pictures must be to count as a scene change, from 0.05 (very sensitive) to 0.95 (only hard cuts). Default 0.3 suits most videos; use 0.15-0.2 for slides and screen recordings.",
            "default": 0.3
          },
          "sceneDetection": {
            "title": "Scene detection speed",
            "enum": [
              "auto",
              "fast",
              "accurate"
            ],
            "type": "string",
            "description": "accurate decodes every frame (best for short videos); fast looks only at the video's key frames, which encoders place at most cuts (much quicker for long videos). auto (default) = accurate up to 2 minutes of video, fast above.",
            "default": "auto"
          },
          "minSecondsBetweenFrames": {
            "title": "Minimum seconds between frames",
            "minimum": 0.1,
            "maximum": 600,
            "type": "number",
            "description": "Frames closer than this are not both returned (default 1 second), so you do not pay for near-identical pictures. Lower it for very short clips.",
            "default": 1
          },
          "frameWidth": {
            "title": "Frame width (pixels)",
            "minimum": 0,
            "maximum": 3840,
            "type": "integer",
            "description": "Frames wider than this are scaled down, keeping the aspect ratio (default 1280; 512-768 is enough for most AI vision models and cheaper to send). 0 = original size.",
            "default": 1280
          },
          "imageFormat": {
            "title": "Image format",
            "enum": [
              "jpeg",
              "png"
            ],
            "type": "string",
            "description": "File format of the frames (default jpeg). The contact sheet is always JPEG.",
            "default": "jpeg"
          },
          "contactSheet": {
            "title": "Contact sheet",
            "type": "boolean",
            "description": "Also make one JPEG grid with all frames of the video and their timecodes (free; default on). Handy to show a whole video to an AI model in a single image.",
            "default": true
          },
          "includeTranscript": {
            "title": "Transcript aligned to the frames",
            "type": "boolean",
            "description": "Transcribe the speech with Whisper (run on Apify, no third-party AI API) and attach to each frame what is said while it is on screen. Charged per started minute of transcribed audio. Default off.",
            "default": false
          },
          "whisperModel": {
            "title": "Whisper model (transcript)",
            "enum": [
              "base",
              "tiny"
            ],
            "type": "string",
            "description": "Speech model for the transcript: base (default, more accurate) or tiny (faster). Same price.",
            "default": "base"
          },
          "transcriptLanguage": {
            "title": "Spoken language (transcript)",
            "type": "string",
            "description": "Language code of the speech (en, ja, de, es, fr, ...), or empty to detect it.",
            "default": ""
          },
          "maxTranscriptMinutes": {
            "title": "Max transcript minutes per video",
            "minimum": 1,
            "maximum": 240,
            "type": "integer",
            "description": "Only the first this many minutes of speech (from the start time) are transcribed and charged (default 60).",
            "default": 60
          },
          "startSecs": {
            "title": "Start time (seconds)",
            "minimum": 0,
            "type": "number",
            "description": "Take frames (and the transcript) from this time on (default 0 = the beginning).",
            "default": 0
          },
          "endSecs": {
            "title": "End time (seconds)",
            "minimum": 0,
            "type": "number",
            "description": "Optional. Take frames only up to this time. Empty = until the end of the video."
          },
          "maxFileSizeMb": {
            "title": "Max file size (MB)",
            "minimum": 1,
            "maximum": 4000,
            "type": "integer",
            "description": "Larger files are skipped (free row with an error), default 1000 MB.",
            "default": 1000
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Skip files whose site disallows automated access in robots.txt (default on). Turn off only for files you own or may download.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}