{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Video Frame Extractor",
    "description": "Extract timestamped frames from public video files, clear HLS and embedded videos. Get image links, scene scores and contact sheets for visual indexing.",
    "version": "0.1",
    "x-build-id": "qsAsDJf5kXtaOUlsX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fetch_cat~public-video-frame-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fetch_cat-public-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/fetch_cat~public-video-frame-extractor/runs": {
      "post": {
        "operationId": "runs-sync-fetch_cat-public-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/fetch_cat~public-video-frame-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-fetch_cat-public-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": "Public video URLs",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "1–20 public HTTP(S) single-video URLs. Direct media, clear completed HLS VOD and ordinary embedded video pages are supported. HLS byte ranges, discontinuities, live streams and encrypted variants are not supported. Public platform pages are attempted anonymously and may be unavailable or blocked. No channel, playlist or login URLs. Duplicate URLs are processed once.",
            "default": [
              "https://media.w3.org/2010/05/sintel/trailer.mp4"
            ],
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Sampling mode",
            "enum": [
              "interval",
              "scenes",
              "count",
              "timestamps",
              "keyframes",
              "auto"
            ],
            "type": "string",
            "description": "Interval/count/timestamps select real source frames at or after planned times without duplicating a source frame. Scenes select cuts above the threshold. Keyframes use encoded I-frames, not scene recognition. Auto analyzes cuts and fills a bounded storyboard with evenly spaced frames.",
            "default": "interval"
          },
          "intervalSeconds": {
            "title": "Interval (seconds)",
            "minimum": 0.1,
            "maximum": 3600,
            "type": "number",
            "description": "Used by interval mode, starting at the sampling window start.",
            "default": 10
          },
          "frameCount": {
            "title": "Requested frame count",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Used by count and auto modes. Cannot exceed maxFramesPerVideo. Very short/sparse videos or blank filtering can yield fewer distinct frames.",
            "default": 12
          },
          "timestamps": {
            "title": "Requested timestamps",
            "maxItems": 1000,
            "type": "array",
            "description": "Required and nonempty in timestamps mode. JSON array of nonnegative seconds or timecode strings, e.g. [0, 1.5, \"00:00:04.250\"]. Sorted, deduplicated and clipped to the window and frame cap. Several requested positions can resolve to one actual source frame.",
            "default": []
          },
          "sceneThreshold": {
            "title": "Scene-change threshold",
            "minimum": 0.01,
            "maximum": 1,
            "type": "number",
            "description": "Scenes/auto only. Higher values select fewer, stronger cuts. No qualifying cuts is a genuine empty result, not a download failure.",
            "default": 0.3
          },
          "startTime": {
            "title": "Window start",
            "type": "string",
            "description": "Nonnegative seconds or HH:MM:SS(.sss), as text. Inclusive, on the source presentation timeline.",
            "default": "0"
          },
          "endTime": {
            "title": "Window end",
            "type": "string",
            "description": "Exclusive seconds or HH:MM:SS(.sss), as text. Blank means video duration. Must exceed startTime; the source-duration and download caps still apply to the whole video.",
            "default": ""
          },
          "imageFormat": {
            "title": "Image format",
            "enum": [
              "jpg",
              "png",
              "webp"
            ],
            "type": "string",
            "description": "Saved frame format. PNG is lossless and usually larger; imageQuality does not affect PNG.",
            "default": "jpg"
          },
          "imageQuality": {
            "title": "Image quality",
            "minimum": 30,
            "maximum": 100,
            "type": "integer",
            "description": "JPEG/WebP quality setting; not a promise of identical compression across codecs.",
            "default": 85
          },
          "maxWidth": {
            "title": "Maximum image width",
            "minimum": 64,
            "maximum": 1920,
            "type": "integer",
            "description": "Even-width images, no enlargement beyond the source's displayed width. Display rotation and pixel aspect ratio are normalized to square pixels. A single image is limited to 8 MiB.",
            "default": 1280
          },
          "skipBlankFrames": {
            "title": "Skip near-uniform frames",
            "type": "boolean",
            "description": "Except in timestamps mode, discard frames with very low variation in every decoded color plane. Explicit timestamp selections are kept. This is a heuristic, not semantic blank/duplicate detection. Discarded candidates are not replaced or charged; the frame cap counts candidates before filtering.",
            "default": false
          },
          "createContactSheet": {
            "title": "Create labelled contact sheet",
            "type": "boolean",
            "description": "Save a timestamp-labelled JPEG for up to the first 100 delivered frames per video. Individual images and rows are still saved. The sheet link is in the per-video KVS summary; it is not another frame result.",
            "default": false
          },
          "connectionMode": {
            "title": "Connection",
            "enum": [
              "Direct",
              "Automatic"
            ],
            "type": "string",
            "description": "Direct forbids managed proxy use. Automatic is direct-first, with up to three distinct Apify datacenter sessions only for YouTube metadata transport refusals. The selected session also downloads its media. No residential traffic, login, cookies or challenge solving. Datacenter traffic can incur platform costs; availability is conditional.",
            "default": "Automatic"
          },
          "maxFramesPerVideo": {
            "title": "Maximum candidate frames per video",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard candidate cap before blank filtering. Count/auto frameCount must not exceed this cap.",
            "default": 50
          },
          "maxDownloadMb": {
            "title": "Maximum source download (MiB)",
            "minimum": 1,
            "maximum": 512,
            "type": "integer",
            "description": "Per-video binary download ceiling. Exceeding it is an unavailable/failed source, not a successful empty extraction.",
            "default": 100
          },
          "maxDurationSeconds": {
            "title": "Maximum source duration (seconds)",
            "minimum": 1,
            "maximum": 3600,
            "type": "integer",
            "description": "Reject a source longer than this even if a shorter window was requested. Maximum decoded dimensions are 4096 per axis and 4096×2160 pixels. One source has a 180-second operation deadline; the whole run has a 600-second hard ceiling.",
            "default": 900
          },
          "deadlineSeconds": {
            "title": "Optional processing deadline (seconds)",
            "minimum": 0,
            "maximum": 86400,
            "type": "number",
            "description": "Optional customer-requested processing deadline, including initialization. Zero or insufficient useful-work time stops successfully without extraction. Already delivered images/rows are preserved with a truthful limit outcome."
          },
          "maxChargeUsd": {
            "title": "Optional Actor-event allowance (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Optional extra limit on effective Actor event charges, including Apify's synthetic startup event. Zero permits no frame work. Also obeys the platform max total charge. Not a cap on separate platform, storage, transfer or proxy charges; see README."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}