{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Frame Extractor — TikTok, Reels, YouTube & MP4 to Images",
    "description": "Turn TikTok, Instagram Reel, YouTube, Facebook, X and Vimeo videos or any MP4 link into still images: one frame per scene change, evenly spaced frames, one every N seconds or exact timestamps, plus a contact sheet. Image links ready for AI vision, thumbnails and datasets.",
    "version": "1.0",
    "x-build-id": "DPyQ2TxiWFJfR9XeB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~video-frame-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-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/memo23~video-frame-extractor/runs": {
      "post": {
        "operationId": "runs-sync-memo23-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/memo23~video-frame-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-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",
        "required": [
          "videoUrls"
        ],
        "properties": {
          "videoUrls": {
            "title": "Video links",
            "type": "array",
            "description": "One per line: a TikTok video (share links work), an Instagram reel or video post, a YouTube video or Short, a Facebook video or reel, an X post with a video, a Vimeo video, or a direct link to a video file (.mp4, .mov, .webm, .m3u8 …) on any host. Profiles, playlists and photo posts are skipped with a reason and are not charged.",
            "items": {
              "type": "string"
            }
          },
          "frameMode": {
            "title": "Frame selection",
            "enum": [
              "auto",
              "scenes",
              "evenly",
              "interval",
              "timestamps"
            ],
            "type": "string",
            "description": "Auto: the first frame and every scene change, filled up with evenly spaced frames when the video has few cuts (good default for ads, reels and trailers). Scene changes only: one frame per cut. Evenly spaced: Frames per video spread over the whole video, ideal for an AI vision model. Every N seconds: lectures, screen recordings, long takes. Exact timestamps: the moments you list.",
            "default": "auto"
          },
          "framesPerVideo": {
            "title": "Frames per video (auto, evenly spaced)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many frames Auto and Evenly spaced take from each video. 8 to 16 is enough for an AI model to follow a short video.",
            "default": 12
          },
          "secondsBetweenFrames": {
            "title": "Seconds between frames (every N seconds)",
            "minimum": 0.1,
            "type": "number",
            "description": "Used by Every N seconds: one frame at the start, then one every this many seconds. 0.5 works for fast cuts, 10 or more for long recordings.",
            "default": 5
          },
          "timestamps": {
            "title": "Timestamps (exact timestamps)",
            "type": "array",
            "description": "Used by Exact timestamps: one moment per line, in seconds (90, 12.5) or as a clock time (1:30, 00:01:30.500). The same list is used for every video; times past a video's end are listed in timestampsSkipped and not charged.",
            "items": {
              "type": "string"
            }
          },
          "sceneSensitivity": {
            "title": "Scene change sensitivity",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "High also counts softer changes such as a quick zoom or a new angle on the same scene; Low counts only hard cuts.",
            "default": "medium"
          },
          "maxFramesPerVideo": {
            "title": "Max frames per video",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Upper limit per video in every mode, so a long video or a fast-cut one cannot return thousands of frames. When there are more scene changes than this, they are thinned evenly.",
            "default": 60
          },
          "fromTime": {
            "title": "Start at",
            "type": "string",
            "description": "Optional. Take frames from this point on, in seconds (30) or a clock time (0:30). Leave empty to start at the beginning."
          },
          "toTime": {
            "title": "Stop at",
            "type": "string",
            "description": "Optional. Take frames up to this point. Leave empty to go to the end."
          },
          "skipBlankFrames": {
            "title": "Skip blank frames",
            "type": "boolean",
            "description": "A frame that is black, white or one flat colour (a fade, an empty intro) is moved forward by up to 2 seconds to the first frame with something in it, and dropped if there is none. Dropped frames are not charged. Exact timestamps are always kept as asked.",
            "default": true
          },
          "imageFormat": {
            "title": "Image format",
            "enum": [
              "jpg",
              "png",
              "webp"
            ],
            "type": "string",
            "description": "File type of every frame.",
            "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. 1280 suits AI vision models and previews; 0 keeps the video's full resolution (up to 1080p).",
            "default": 1280
          },
          "imageQuality": {
            "title": "Image quality (JPEG, WEBP)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "1 to 100. Higher is sharper and larger.",
            "default": 85
          },
          "contactSheet": {
            "title": "Contact sheet",
            "type": "boolean",
            "description": "Also save one grid image per video with up to 48 of its frames and their timecodes, for a quick look at the whole video. Not charged.",
            "default": true
          },
          "oneRowPerFrame": {
            "title": "One row per frame",
            "type": "boolean",
            "description": "Off: one row per video with a frames list. On: one video row followed by one row per frame, easier to use in a spreadsheet, Make, Zapier or n8n. Same frames, same price.",
            "default": false
          },
          "maxVideoMinutes": {
            "title": "Max video length (minutes)",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "Longer videos are skipped and not charged. The first 3 minutes of each video are in the video price; every started minute after that adds an Extra video minute charge.",
            "default": 20
          },
          "maxConcurrency": {
            "title": "Videos in parallel",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many videos are worked on at once.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}