{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Keyframe Extractor: Scene Frames from Files",
    "description": "Video keyframe extractor for video files you may process: scene keyframes with timestamps and a contact sheet, blurred and blank frames rejected. Direct file links or stored files only, no YouTube or TikTok. USD 0.002 per keyframe, plus scan and data fees.",
    "version": "0.1",
    "x-build-id": "u6Y0pHMz20E7iYaF8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bardach_technologies~video-keyframe-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bardach_technologies-video-keyframe-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/bardach_technologies~video-keyframe-extractor/runs": {
      "post": {
        "operationId": "runs-sync-bardach_technologies-video-keyframe-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/bardach_technologies~video-keyframe-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-bardach_technologies-video-keyframe-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 keyframe extractor: direct video file links",
            "maxItems": 100,
            "type": "array",
            "description": "Direct links to MP4, MOV, M4V, WebM or MKV files, one per line, up to 100. AVI files are not read (free row); convert them to MP4 first. Only use files you are entitled to process. YouTube, TikTok, Instagram and other platform links are refused with a free row. Playlists and streams are not read. Default: empty.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "fileKeys": {
            "title": "Stored files (key-value store keys)",
            "maxItems": 100,
            "type": "array",
            "description": "Keys of video files in a key-value store, one per line, up to 100, each at most 100 MB. Default: empty.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keyValueStoreId": {
            "title": "Key-value store with your files",
            "type": "string",
            "description": "Store that holds the files named above. Leave empty to use this run's own store."
          },
          "useSample": {
            "title": "Use the free bundled sample",
            "type": "boolean",
            "description": "Processes a built-in 8-second generated test video, free of charge. It also runs when no links or files are given, unless this is switched off; then the run writes one free nothingGiven note row."
          },
          "maxFrames": {
            "title": "Maximum keyframes per video",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "At most this many frames are delivered per video, the strongest scene changes first. Each delivered frame is one charged event. Default: 12.",
            "default": 12
          },
          "sceneThreshold": {
            "title": "Scene change sensitivity",
            "minimum": 0.02,
            "maximum": 0.6,
            "type": "number",
            "description": "How much the picture must change to count as a new scene, from 0.02 (very sensitive) to 0.6. Default: 0.12.",
            "default": 0.12
          },
          "minSceneSeconds": {
            "title": "Shortest scene (seconds)",
            "minimum": 0.5,
            "maximum": 600,
            "type": "number",
            "description": "Changes closer together than this do not start a new scene. Default: 1.",
            "default": 1
          },
          "rejectBlurry": {
            "title": "Reject blurred frames",
            "type": "boolean",
            "description": "Drops chosen frames much less sharp than the video's other chosen frames. Default: on.",
            "default": true
          },
          "maxWidth": {
            "title": "Maximum frame width (pixels)",
            "minimum": 160,
            "maximum": 1920,
            "type": "integer",
            "description": "Frames wider than this are scaled down; smaller videos are not enlarged. Default: 1280.",
            "default": 1280
          },
          "contactSheet": {
            "title": "Create a contact sheet",
            "type": "boolean",
            "description": "Adds one overview image of the delivered frames, at no extra event. Default: on.",
            "default": true
          },
          "maxFileMb": {
            "title": "Maximum file size (MB)",
            "minimum": 1,
            "maximum": 2048,
            "type": "integer",
            "description": "Larger files are refused with a free row. Default: 500.",
            "default": 500
          },
          "maxMinutes": {
            "title": "Maximum video length (minutes)",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "Longer videos are refused with a free row. Analysis may take at most 1,500 seconds per video, so dense 1080p footage over about 20 minutes can end as a free timeLimit row. Default: 60.",
            "default": 60
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}