{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Thumbnail Generator: Poster Frame & Contact Sheet",
    "description": "Make a poster thumbnail and/or contact sheet from video file URLs: auto-picks a sharp, well-lit frame (skips black and flat ones) or cuts the frame at your time. jpg/png/webp, signed links. Direct files only, no YouTube, no face or content AI. Free when a video fails.",
    "version": "0.1",
    "x-build-id": "IdUlPhqQC70h08UxD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data-done-right~video-thumbnail-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data-done-right-video-thumbnail-generator",
        "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/data-done-right~video-thumbnail-generator/runs": {
      "post": {
        "operationId": "runs-sync-data-done-right-video-thumbnail-generator",
        "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/data-done-right~video-thumbnail-generator/run-sync": {
      "post": {
        "operationId": "run-sync-data-done-right-video-thumbnail-generator",
        "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 URLs",
            "type": "array",
            "description": "Direct links to video files (mp4, mov, webm, mkv, avi). Example: https://example.com/clip.mp4. Every video gets the outputs chosen below. YouTube, Vimeo, TikTok and other streaming-site page links are rejected, with no charge.",
            "items": {
              "type": "string"
            }
          },
          "videos": {
            "title": "Videos with their own name or time",
            "type": "array",
            "description": "Optional per-video settings: [{\"url\": \"https://example.com/a.mp4\", \"name\": \"launch-ad\", \"posterTimestamp\": \"00:00:12\"}, ...]. 'name' is used in the file names; 'posterTimestamp' overrides the run-wide poster time for that video. Used in addition to 'Video URLs'."
          },
          "outputs": {
            "title": "What to create",
            "enum": [
              "poster",
              "contactSheet",
              "both"
            ],
            "type": "string",
            "description": "Poster = one image of the best frame (or the frame at your time). Contact sheet = one grid image of evenly spaced frames. The price is per video, the same for any choice.",
            "default": "both"
          },
          "posterTimestamp": {
            "title": "Poster time (optional)",
            "type": "string",
            "description": "Leave empty to let the Actor pick the best frame. Or set the exact time: seconds (12.5), HH:MM:SS (00:01:05) or a percentage of the video (25%). A time past the end uses the last frame and adds a note."
          },
          "imageFormat": {
            "title": "Image format",
            "enum": [
              "jpg",
              "png",
              "webp"
            ],
            "type": "string",
            "description": "File type of the poster and the contact sheet.",
            "default": "jpg"
          },
          "imageQuality": {
            "title": "Image quality (1-100)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "JPG and WebP only. 85 is a good balance; 95 is near-lossless and larger. Ignored for PNG.",
            "default": 85
          },
          "posterWidth": {
            "title": "Poster max width (px)",
            "minimum": 0,
            "maximum": 7680,
            "type": "integer",
            "description": "Shrink the poster to this width, keeping the aspect ratio. 0 = original size. Never upscales. Example: 1280.",
            "default": 1280
          },
          "candidateFrames": {
            "title": "Frames to compare for the auto pick",
            "minimum": 4,
            "maximum": 40,
            "type": "integer",
            "description": "How many evenly spaced frames are scored when you do not set a poster time. More frames find a better one but take longer. Example: 16.",
            "default": 16
          },
          "skipEdgesPercent": {
            "title": "Ignore the start and end (%)",
            "minimum": 0,
            "maximum": 30,
            "type": "number",
            "description": "Frames in the first and last part of the video are not considered (fades, title cards, end credits). 5 = ignore the first and last 5 percent. 0 = use the whole video.",
            "default": 5
          },
          "contactSheetTiles": {
            "title": "Contact sheet tiles",
            "minimum": 1,
            "maximum": 48,
            "type": "integer",
            "description": "Number of frames in the grid, evenly spaced across the whole video. Example: 12 gives 3 rows of 4.",
            "default": 12
          },
          "contactSheetColumns": {
            "title": "Contact sheet columns",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Tiles per row. Rows follow from the tile count. Example: 4.",
            "default": 4
          },
          "contactSheetTileWidth": {
            "title": "Tile width (px)",
            "minimum": 80,
            "maximum": 640,
            "type": "integer",
            "description": "Width of one tile. The sheet is about columns x tile width wide. Example: 320.",
            "default": 320
          },
          "contactSheetTimecodes": {
            "title": "Show timecodes on tiles",
            "type": "boolean",
            "description": "Write the time of each frame in the corner of its tile.",
            "default": true
          },
          "maxVideosPerRun": {
            "title": "Max videos per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on videos processed in one run (and so on what you can be charged). Videos past the cap are listed as skipped.",
            "default": 100
          },
          "maxVideoSizeMb": {
            "title": "Max video file size (MB)",
            "minimum": 1,
            "maximum": 2048,
            "type": "integer",
            "description": "Source files above this size are rejected before the download finishes.",
            "default": 500
          },
          "maxDurationMinutes": {
            "title": "Max video duration (minutes)",
            "minimum": 0.1,
            "type": "number",
            "description": "Longer videos are rejected without charge. Example: 240 = 4 hours.",
            "default": 240
          },
          "videoTimeoutSecs": {
            "title": "Timeout (seconds)",
            "minimum": 10,
            "maximum": 7200,
            "type": "integer",
            "description": "Applies separately to each download and to each ffmpeg step.",
            "default": 600
          },
          "outputStoreName": {
            "title": "Save images in a named store",
            "type": "string",
            "description": "Optional key-value store name. Named stores are kept until you delete them, while a run's own store expires after your plan's retention period. Example: my-thumbnails."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}