{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Frame & Storyboard Extractor — Frames at Any Timestamp",
    "description": "Extract still frames from YouTube videos, Shorts, playlists and channels at exact timestamps, every N seconds, chapter starts or scene changes. Storyboard mode slices official preview sprites fast; full-resolution mode cuts frames with ffmpeg.",
    "version": "1.0",
    "x-build-id": "aj47NrGve06TfcWJm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~youtube-frame-storyboard-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-youtube-frame-storyboard-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/xyrelith-data~youtube-frame-storyboard-extractor/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-youtube-frame-storyboard-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/xyrelith-data~youtube-frame-storyboard-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-youtube-frame-storyboard-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, Shorts, playlist or channel URLs",
            "type": "array",
            "description": "YouTube links or bare 11-character video IDs. Watch, youtu.be, Shorts, embed, live, playlist and channel URLs are accepted. Playlists and channels expand to their most recent videos.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Frame selection mode",
            "enum": [
              "storyboard",
              "timestamps",
              "everyNSeconds",
              "evenlySpaced",
              "sceneChanges",
              "chapterStarts"
            ],
            "type": "string",
            "description": "How timestamps are chosen. Storyboard mode samples every native preview interval; timestamps mode uses the exact times below.",
            "default": "storyboard"
          },
          "timestamps": {
            "title": "Exact timestamps",
            "type": "array",
            "description": "(mode=timestamps) Times such as 83, 1:23, 01:02:03 or 1:23.5. One frame is returned at each time.",
            "items": {
              "type": "string"
            }
          },
          "intervalSeconds": {
            "title": "Interval seconds",
            "minimum": 1,
            "maximum": 3600,
            "type": "integer",
            "description": "(mode=everyNSeconds) One frame every this many seconds.",
            "default": 10
          },
          "frameCount": {
            "title": "Number of evenly spaced frames",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "(mode=evenlySpaced) How many frames to spread across each video.",
            "default": 10
          },
          "sceneThreshold": {
            "title": "Scene change threshold",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "(mode=sceneChanges) Pixel-difference score from 1 (very sensitive) to 100 (only hard cuts).",
            "default": 28
          },
          "minSceneGapSeconds": {
            "title": "Minimum gap between scene frames",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "(mode=sceneChanges) Do not return two scene frames closer than this many seconds.",
            "default": 2
          },
          "quality": {
            "title": "Frame quality",
            "enum": [
              "storyboard",
              "fullResolution"
            ],
            "type": "string",
            "description": "Storyboard slices official preview sprites without downloading the video. Full resolution cuts real video frames with ffmpeg and may fall back to a storyboard frame when a stream cannot be cut.",
            "default": "storyboard"
          },
          "storyboardLevel": {
            "title": "Storyboard level",
            "enum": [
              "auto",
              "low",
              "medium",
              "high",
              "max"
            ],
            "type": "string",
            "description": "Preview sprite resolution. Auto uses the highest level available for the video; max prefers the 320x180 level when present.",
            "default": "auto"
          },
          "maxResolution": {
            "title": "Maximum full-resolution height",
            "enum": [
              "360",
              "480",
              "720",
              "1080",
              "1440",
              "2160",
              "best"
            ],
            "type": "string",
            "description": "(quality=fullResolution) Upper bound for the source video stream.",
            "default": "720"
          },
          "imageFormat": {
            "title": "Image format",
            "enum": [
              "jpg",
              "png",
              "webp"
            ],
            "type": "string",
            "description": "Format of the frame files saved to the key-value store.",
            "default": "jpg"
          },
          "imageQuality": {
            "title": "Image quality",
            "minimum": 40,
            "maximum": 100,
            "type": "integer",
            "description": "Compression quality for JPEG and WebP frames.",
            "default": 90
          },
          "maxItems": {
            "title": "Maximum frames",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on frames across all videos in the run.",
            "default": 50
          },
          "maxVideosPerSource": {
            "title": "Maximum videos per playlist or channel",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many recent videos to expand from each playlist or channel URL.",
            "default": 10
          },
          "includeTranscript": {
            "title": "Include transcript line",
            "type": "boolean",
            "description": "Add the caption line spoken at each frame when a caption track exists.",
            "default": false
          },
          "transcriptLanguage": {
            "title": "Transcript language",
            "enum": [
              "en",
              "es",
              "pt",
              "fr",
              "de",
              "it",
              "nl",
              "pl",
              "tr",
              "ru",
              "uk",
              "ar",
              "hi",
              "bn",
              "id",
              "vi",
              "th",
              "ja",
              "ko",
              "zh",
              "zh-Hant",
              "he",
              "fa",
              "sv",
              "no",
              "da",
              "fi",
              "cs",
              "sk",
              "ro",
              "hu",
              "el",
              "bg",
              "hr",
              "sr",
              "ml",
              "ta",
              "te",
              "mr",
              "gu",
              "ur"
            ],
            "type": "string",
            "description": "Preferred caption language. Falls back to another available track when the exact language is missing.",
            "default": "en"
          },
          "includeAutoGeneratedCaptions": {
            "title": "Allow auto-generated captions",
            "type": "boolean",
            "description": "Use automatic speech-recognition tracks when a human caption track is unavailable.",
            "default": true
          },
          "includeThumbnails": {
            "title": "Include official thumbnails",
            "type": "boolean",
            "description": "Add every available official YouTube thumbnail size to each frame (maxres, sd, hq720, hq, mq, default and hq1-3).",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}