{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Frame Extractor: Scenes, Keyframes, Thumbnails, JPG/PNG",
    "description": "Give direct video file URLs (MP4, WebM, MOV, MKV) and get one JSON row per frame: public image link, timestamp, size and video metadata. Every N seconds, N thumbnails, scene changes, keyframes or exact times. No login or API key. Only new videos mode for schedules. Failed videos are free.",
    "version": "0.1",
    "x-build-id": "IqDl7Lfb94YnbFSEo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ctriolab~video-frame-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ctriolab-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/ctriolab~video-frame-extractor/runs": {
      "post": {
        "operationId": "runs-sync-ctriolab-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/ctriolab~video-frame-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-ctriolab-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, one per line, for example https://example.org/clip.mp4 (MP4, WebM, MOV, MKV, AVI, M4V, OGV and most formats FFmpeg reads). The URL must return the file itself: pages of YouTube, TikTok, Instagram, Vimeo and similar platforms are rejected and not charged. Leave empty to try a 17 second public domain sample.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Which frames",
            "enum": [
              "count",
              "interval",
              "scenes",
              "keyframes",
              "timestamps"
            ],
            "type": "string",
            "description": "How frames are chosen. count (default): N evenly spaced thumbnails, set in frameCount. interval: one frame every N seconds, set in intervalSeconds. scenes: one frame per shot, detected from picture changes. keyframes: the codec keyframes (fastest on long videos). timestamps: exact times you list in timestamps.",
            "default": "count"
          },
          "frameCount": {
            "title": "Number of frames (count mode)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Used only in count mode: how many evenly spaced frames to take from each video, for example 5 for a storyboard. Default 10. Each frame is taken from the centre of its slice, so the first one is not a black opening frame.",
            "default": 10
          },
          "intervalSeconds": {
            "title": "Seconds between frames (interval mode)",
            "minimum": 0.04,
            "maximum": 86400,
            "type": "number",
            "description": "Used only in interval mode: seconds between two frames, for example 1 for one frame per second, 0.5 for two per second, 60 for one per minute. Default 10 seconds.",
            "default": 10
          },
          "timestamps": {
            "title": "Timestamps (timestamps mode)",
            "type": "array",
            "description": "Used only in timestamps mode (and required there): times in seconds (90.5) or mm:ss / hh:mm:ss (1:30, 01:02:03.5), one per line. Times past the end of a video are ignored.",
            "items": {
              "type": "string"
            }
          },
          "sceneThreshold": {
            "title": "Scene sensitivity (scenes mode)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Used only in scenes mode: picture change from 1 to 100 that counts as a new shot. Lower finds more scenes. Default 10 suits most edited videos; try 5 for slow fades, 20 for shaky handheld footage.",
            "default": 10
          },
          "minGapSeconds": {
            "title": "Minimum seconds between frames (scenes and keyframes)",
            "minimum": 0,
            "maximum": 3600,
            "type": "number",
            "description": "Used in scenes and keyframes modes: minimum seconds between two returned frames, for example 30 to get at most one keyframe every 30 seconds. Default 1 avoids bursts of near-identical frames during flashes or fast cuts.",
            "default": 1
          },
          "startTime": {
            "title": "Start at",
            "type": "string",
            "description": "Only use the part of each video after this time, in seconds (20) or mm:ss / hh:mm:ss (0:20). Applies to every mode. Empty (default) means the start of the video."
          },
          "endTime": {
            "title": "End at",
            "type": "string",
            "description": "Only use the part of each video before this time, in seconds (120) or mm:ss / hh:mm:ss (2:00). Must be after Start at. Empty (default) means the end of the video."
          },
          "maxFramesPerVideo": {
            "title": "Max frames per video",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Safety cap on frames per video in every mode, from 1 to 5000. Default 100. You pay only for frames you get.",
            "default": 100
          },
          "maxFileSizeMb": {
            "title": "Max file size (MB)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Largest video file to download, in megabytes. Larger files are skipped and not charged. Default 1000 MB, up to 5000.",
            "default": 1000
          },
          "maxDurationMinutes": {
            "title": "Max video length (minutes)",
            "minimum": 1,
            "maximum": 720,
            "type": "integer",
            "description": "Longest video to process, in minutes. Longer videos are skipped and not charged. Default 180 minutes, up to 720.",
            "default": 180
          },
          "imageFormat": {
            "title": "Image format",
            "enum": [
              "jpg",
              "png",
              "webp"
            ],
            "type": "string",
            "description": "File type of the saved frames: jpg (default) is smallest for photos, png is lossless, webp is small with good quality. The value is also returned in the format column.",
            "default": "jpg"
          },
          "quality": {
            "title": "Quality (JPG and WebP)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Compression quality for jpg and webp, from 1 to 100 (ignored for png). Higher is sharper and larger. Default 85.",
            "default": 85
          },
          "maxWidth": {
            "title": "Max width (px)",
            "minimum": 0,
            "maximum": 8192,
            "type": "integer",
            "description": "Scale frames down to at most this width in pixels, keeping the aspect ratio, for example 768 for AI vision input. 0 (default) keeps the original size. Frames are never scaled up.",
            "default": 0
          },
          "maxHeight": {
            "title": "Max height (px)",
            "minimum": 0,
            "maximum": 8192,
            "type": "integer",
            "description": "Scale frames down to at most this height in pixels, keeping the aspect ratio, for example 720. 0 (default) means no limit. Frames are never scaled up.",
            "default": 0
          },
          "contactSheet": {
            "title": "Contact sheet",
            "type": "boolean",
            "description": "If true, also save one JPG grid image per video with all extracted frames and their timecodes (free, up to 200 tiles); its link is in the contactSheetUrl column. Default false.",
            "default": false
          },
          "contactSheetColumns": {
            "title": "Contact sheet columns",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Tiles per row in the contact sheet, from 1 to 12. Default 5. Used only when Contact sheet is on.",
            "default": 5
          },
          "onlyNew": {
            "title": "Only new videos",
            "type": "boolean",
            "description": "If true, skip video URLs this Actor already processed in an earlier run with the same Monitor name, so scheduled runs over a list only return frames from new URLs. Default false processes every URL.",
            "default": false
          },
          "stateName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the key-value store that remembers processed URLs when Only new videos is on, for example my-video-list. Use a different name per list. Default video-frame-extractor-state.",
            "default": "video-frame-extractor-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}