{
  "openapi": "3.0.1",
  "info": {
    "title": "Video to Slides - Extract Unique Slides to PDF + Text (OCR)",
    "description": "Video to slides converter: turn a lecture, webinar or screen recording file into its unique slides - one image per slide with start/end timestamps, OCR text and a combined PDF. Duplicates and slide builds merged. $4 per 1,000 slides + $0.001 per video minute.",
    "version": "1.0",
    "x-build-id": "vPRMaamWe0nc7BFbm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kantolabs~video-to-slides/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kantolabs-video-to-slides",
        "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/kantolabs~video-to-slides/runs": {
      "post": {
        "operationId": "runs-sync-kantolabs-video-to-slides",
        "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/kantolabs~video-to-slides/run-sync": {
      "post": {
        "operationId": "run-sync-kantolabs-video-to-slides",
        "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 file URLs",
            "type": "array",
            "description": "Direct links to lecture, webinar, meeting or screen-recording files (MP4, MOV, WEBM, MKV, AVI, M4V, MPEG-TS...), one per line. Your own storage, S3/R2/GCS, CDNs, an Apify key-value store, Dropbox or Google Drive share links (shared as 'anyone with the link') all work. Pages of video platforms (YouTube, Vimeo, TikTok...) are not supported.",
            "default": [
              "https://api.apify.com/v2/key-value-stores/aXcXwfChlioPWAUJv/records/sample-slides-webinar.mp4?signature=13u4YK5fJsZFm70P8hE8I"
            ],
            "items": {
              "type": "string"
            }
          },
          "sensitivity": {
            "title": "Sensitivity",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "How small a change counts as a new slide. `medium` suits most decks. `low` merges more (fewer slides, ignores small highlights and pop-ups). `high` keeps subtle changes such as one changed number on an otherwise identical slide.",
            "default": "medium"
          },
          "minSlideSeconds": {
            "title": "Minimum slide duration (seconds)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "A picture must stay still at least this long to count as a slide. Skips transitions, flashes and scrolling. Videos longer than 2 hours are sampled every 2 seconds, so values below 4 act as 4 there.",
            "default": 2
          },
          "cropBox": {
            "title": "Slide area (crop, optional)",
            "type": "object",
            "description": "Only look at this part of the frame, in percent: {\"x\": 0, \"y\": 0, \"width\": 75, \"height\": 100} keeps the left 75 % (drops a speaker camera on the right). Use it for side-by-side layouts or burned-in subtitles. Small webcam overlays are ignored automatically. Leave empty for the full frame. The saved slide images are cropped the same way."
          },
          "ocr": {
            "title": "Read slide text (OCR)",
            "type": "boolean",
            "description": "Read the text on every slide (free, included in the slide price) and return it per slide plus an `allText` block per video, ready for an LLM, notes or search.",
            "default": true
          },
          "ocrLanguage": {
            "title": "Slide language (OCR)",
            "enum": [
              "en",
              "latin",
              "cyrillic",
              "korean",
              "arabic",
              "devanagari",
              "greek",
              "thai"
            ],
            "type": "string",
            "description": "Script of the slide text. `en` also reads Chinese and Japanese. Use `latin` for French, German, Spanish, Czech, Polish and other accented Latin languages, `cyrillic` for Russian, Ukrainian, Bulgarian.",
            "default": "en"
          },
          "outputPdf": {
            "title": "Combine slides into a PDF",
            "type": "boolean",
            "description": "Save all slides of a video as one PDF (one page per slide, free). Its link is in the video's summary row (`pdfUrl`).",
            "default": true
          },
          "contactSheet": {
            "title": "Contact sheet",
            "type": "boolean",
            "description": "Also save one overview image with every slide and its start time (free).",
            "default": true
          },
          "imageFormat": {
            "title": "Slide image format",
            "enum": [
              "jpg",
              "png",
              "webp"
            ],
            "type": "string",
            "description": "Format of the slide images. The PDF always uses JPEG pages.",
            "default": "jpg"
          },
          "maxWidth": {
            "title": "Max slide width (px)",
            "minimum": 0,
            "maximum": 7680,
            "type": "integer",
            "description": "Wider slides are scaled down (aspect ratio kept). 0 keeps the video's full resolution.",
            "default": 1920
          },
          "imageQuality": {
            "title": "JPEG/WEBP quality",
            "minimum": 30,
            "maximum": 100,
            "type": "integer",
            "description": "Compression quality of JPEG/WEBP slides and PDF pages.",
            "default": 85
          },
          "maxSlidesPerVideo": {
            "title": "Max slides per video",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Upper limit per video (the first N slides in time order are kept), so a long screen recording cannot return thousands of slides.",
            "default": 300
          },
          "maxVideoMinutes": {
            "title": "Max video length (minutes)",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Longer videos are refused (free).",
            "default": 240
          },
          "maxVideoSizeMb": {
            "title": "Max video size (MB)",
            "minimum": 1,
            "maximum": 4000,
            "type": "integer",
            "description": "Larger files are refused (free).",
            "default": 2000
          },
          "downloadTimeoutSecs": {
            "title": "Download timeout (seconds)",
            "minimum": 10,
            "maximum": 3600,
            "type": "integer",
            "description": "Give up on a video that does not download within this time (free).",
            "default": 600
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}