{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Frame Extractor - MP4, Google Drive & Dropbox to JPG/PNG",
    "description": "Turn any video link into still images: evenly spaced frames, one every N seconds, every scene change or exact times. Works with direct MP4/MOV/WEBM links and Google Drive or Dropbox share links. Each frame is a JPG, PNG or WebP with a ready-to-open link, its timestamp and size.",
    "version": "0.1",
    "x-build-id": "gSfV9cMnMB0wBSlGt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~video-frame-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-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/neverempty~video-frame-extractor/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-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/neverempty~video-frame-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-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 links",
            "type": "array",
            "description": "Public links to video files: direct links (MP4, MOV, WEBM, MKV, AVI, M4V and more), or Google Drive and Dropbox share links set to \"Anyone with the link\". One link per line. Empty = a short public-domain NASA video as an example. Links to YouTube, TikTok, Instagram and other video platforms are not downloaded.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "How to pick frames",
            "enum": [
              "count",
              "interval",
              "scenes",
              "timestamps"
            ],
            "type": "string",
            "description": "\"Evenly spaced\" spreads a fixed number of frames over the whole video. \"Every N seconds\" takes one frame at a fixed interval. \"Scene changes\" takes the first frame of every new shot. \"At exact times\" takes frames at the times you list.",
            "default": "count"
          },
          "frameCount": {
            "title": "Number of frames (evenly spaced)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Used with \"Evenly spaced\": how many frames to take from each video. They are spread evenly between Start time and End time.",
            "default": 10
          },
          "intervalSeconds": {
            "title": "Seconds between frames (every N seconds)",
            "minimum": 1,
            "maximum": 3600,
            "type": "integer",
            "description": "Used with \"Every N seconds\": one frame every this many seconds, starting at Start time.",
            "default": 10
          },
          "sceneThreshold": {
            "title": "Scene change sensitivity",
            "enum": [
              "0.1",
              "0.2",
              "0.3",
              "0.4",
              "0.5"
            ],
            "type": "string",
            "description": "Used with \"Scene changes\": how different a frame must be from the one before it to count as a new scene. Lower values catch softer cuts and return more frames.",
            "default": "0.3"
          },
          "timestamps": {
            "title": "Timestamps (at exact times)",
            "type": "array",
            "description": "Used with \"At exact times\": one time per line, in seconds (90 or 90.5) or as a time (1:30 or 00:01:30.5).",
            "items": {
              "type": "string"
            }
          },
          "startTime": {
            "title": "Start time",
            "type": "string",
            "description": "Optional. Ignore the video before this time. Seconds (30) or a time (0:30)."
          },
          "endTime": {
            "title": "End time",
            "type": "string",
            "description": "Optional. Ignore the video after this time. Seconds (300) or a time (5:00)."
          },
          "maxFramesPerVideo": {
            "title": "Max frames per video",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "A cap on the frames returned (and charged) for each video, in every mode.",
            "default": 100
          },
          "skipBlankFrames": {
            "title": "Skip blank frames",
            "type": "boolean",
            "description": "Black, white or flat single-color frames (fades, title gaps) are not returned and not charged. In the evenly spaced, interval and exact-time modes, a frame up to 2 seconds later is tried first.",
            "default": true
          },
          "imageFormat": {
            "title": "Image format",
            "enum": [
              "jpg",
              "png",
              "webp"
            ],
            "type": "string",
            "description": "JPG is small and works everywhere. PNG is lossless (larger files). WebP is the smallest at the same look.",
            "default": "jpg"
          },
          "maxWidth": {
            "title": "Max image width (px)",
            "minimum": 0,
            "maximum": 3840,
            "type": "integer",
            "description": "Frames wider than this are scaled down, keeping the aspect ratio. Smaller frames are never enlarged. 0 = keep the original size.",
            "default": 1280
          },
          "imageQuality": {
            "title": "Image quality (JPG and WebP)",
            "minimum": 30,
            "maximum": 100,
            "type": "integer",
            "description": "30 to 100. Higher looks better and makes larger files. PNG is always lossless.",
            "default": 85
          },
          "maxVideoSizeMb": {
            "title": "Max video size (MB)",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Videos larger than this are skipped with a free row that says so.",
            "default": 1000
          },
          "maxDurationMinutes": {
            "title": "Max video length (minutes)",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Videos longer than this are skipped with a free row that says so.",
            "default": 240
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}