{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Frame Extractor — MP4 Frame Extractor & Scene Cuts",
    "description": "Video frame extractor, no login: still frames from TikTok, Facebook and MP4 video links, charged per frame delivered. Every N seconds, a set count, each scene cut or the exact times you list — one row per frame with its time, size and an image link in your run's storage.",
    "version": "1.0",
    "x-build-id": "efYGblP8A8BfNUdc8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyfetch~video-frame-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyfetch-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/steadyfetch~video-frame-extractor/runs": {
      "post": {
        "operationId": "runs-sync-steadyfetch-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/steadyfetch~video-frame-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-steadyfetch-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": "One video per line: a TikTok video link (tiktok.com/@user/video/…, or a vm.tiktok.com share link), a Facebook video or reel link, a Loom, Wistia, Twitch or archive.org video page, or any direct video file address (.mp4, .mov, .webm, .m3u8). YouTube, Vimeo, Instagram and X pages are not read (their direct file links are). Videos up to 30 minutes long. Each video is charged one `video` fee and its started minutes as `video-minute` only when at least one of its frames is delivered.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "How to pick frames",
            "type": "string",
            "description": "interval: a frame every \"Seconds between frames\" from the start · count: \"Number of frames\" spread evenly over the whole video · scenes: the opening frame and one at every scene cut stronger than \"Scene cut sensitivity\" · timestamps: the first frame at or after each time in \"Timestamps\". The `video-minute` fee counts the started minutes the decode reads: the whole video in count and scenes mode, up to the last frame in interval and timestamps mode.",
            "default": "interval"
          },
          "intervalSeconds": {
            "title": "Seconds between frames (interval)",
            "minimum": 0.2,
            "maximum": 600,
            "type": "number",
            "description": "interval mode: one frame every this many seconds, from 0:00, until the video ends or \"Max frames per video\" is reached. 0.2 to 600.",
            "default": 1
          },
          "frameCount": {
            "title": "Number of frames (count)",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "count mode: how many frames to spread evenly over the whole video (never more than \"Max frames per video\").",
            "default": 10
          },
          "sceneThreshold": {
            "title": "Scene cut sensitivity (scenes)",
            "minimum": 0.05,
            "maximum": 0.9,
            "type": "number",
            "description": "scenes mode: how big a change between two frames counts as a cut, 0.05 (every small change) to 0.9 (only hard cuts). 0.3 finds the hard cuts of edited video. Each row carries the cut's `sceneScore`.",
            "default": 0.3
          },
          "timestamps": {
            "title": "Timestamps (timestamps)",
            "type": "array",
            "description": "timestamps mode: the times to take a frame at — seconds (75, \"75s\") or clock times (\"1:15\", \"0:01:15.5\"). A time past the video's end is left out and said on the row.",
            "items": {
              "type": "string"
            }
          },
          "maxFramesPerVideo": {
            "title": "Max frames per video",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "The most frames taken from one video, in any mode (1 to 300). Each delivered frame is charged as one `frame`.",
            "default": 30
          },
          "width": {
            "title": "Frame width",
            "type": "string",
            "description": "360 or 720 px wide (height follows the video's shape), or original: the video's own size, from a version up to 1080 px on its short side. Never upscaled.",
            "default": "360"
          },
          "format": {
            "title": "Image format",
            "type": "string",
            "description": "jpg (small, the default) or png (lossless, several times larger).",
            "default": "jpg"
          },
          "includeContactSheet": {
            "title": "Add a contact sheet",
            "type": "boolean",
            "description": "Also make one grid image per video (up to 12 of its frames, each labelled with its time), linked on every frame row as `contactSheetUrl`. jpg at 360 or 720 px only; no extra fee.",
            "default": false
          },
          "includeSeen": {
            "title": "Read videos again",
            "type": "boolean",
            "description": "Off (the default): a video your account already got frames of, with the same settings, is skipped and not charged. On: read it again and charge it again.",
            "default": false
          },
          "maxRunSeconds": {
            "title": "Max run seconds",
            "minimum": 30,
            "type": "integer",
            "description": "Optional: stop taking frames after this many seconds; videos not reached get their own uncharged row."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}