{
  "openapi": "3.0.1",
  "info": {
    "title": "Social Video Transcript - TikTok, Reels, YouTube to Text",
    "description": "Transcribe public TikTok, Instagram Reels, YouTube, Facebook and X videos to text, SRT and VTT with timestamps. YouTube captions first, speech-to-text (Whisper) when a video has none. Scraper datasets in, watch mode, flat rows. $0.01 per video incl. the first 2 minutes.",
    "version": "1.3",
    "x-build-id": "0AReEtotJg5UiORrQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kantolabs~social-video-transcript/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kantolabs-social-video-transcript",
        "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~social-video-transcript/runs": {
      "post": {
        "operationId": "runs-sync-kantolabs-social-video-transcript",
        "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~social-video-transcript/run-sync": {
      "post": {
        "operationId": "run-sync-kantolabs-social-video-transcript",
        "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 per line. PUBLIC TikTok videos, Instagram reels/posts, YouTube videos and Shorts, Facebook videos/reels and X posts with a video (one video per link - no profiles, channels or playlists), or direct links to video files (MP4, MOV, WEBM: your storage, S3, a CDN, Dropbox / Google Drive share links). Private, removed, age-restricted or blocked videos are free error rows.",
            "default": [
              "https://api.apify.com/v2/key-value-stores/aXcXwfChlioPWAUJv/records/sample-creative-ad.mp4?signature=1yQpP7ggbJGjS4rGodq21"
            ],
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Scraper dataset (optional) - transcribe a scraper's videos",
            "type": "string",
            "description": "Pick a scraper run's dataset: every video in it is transcribed in order, with the post's author, caption, views, likes and date in flat columns. Reads clockworks and kantolabs TikTok scrapers, apify Instagram scrapers (profile, reel, post), apify/facebook-ads-scraper, Meta Ad Library scrapers (jmlp/meta-ad-library-scraper, automation-lab/facebook-ads-library), streamers/youtube-scraper, or any dataset with a video link in videoUrl / webVideoUrl / url. In an integration chain pass {{resource.defaultDatasetId}}."
          },
          "maxItems": {
            "title": "Max videos from the dataset",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many videos from the dataset (rows without a video do not count). Keeps a first try cheap.",
            "default": 20
          },
          "language": {
            "title": "Spoken language",
            "pattern": "^(auto|[a-zA-Z]{2,3})$",
            "type": "string",
            "description": "'auto' detects the spoken language. Or a 2-letter ISO 639-1 code (en, es, de, fr, pt, ja, zh...) - recommended for very short clips, where detection has little speech to go on. With a code, only YouTube captions in that language are used.",
            "default": "auto"
          },
          "preferCaptions": {
            "title": "Use YouTube's own captions first",
            "type": "boolean",
            "description": "When a YouTube video has captions in its spoken language (the creator's, else YouTube's automatic ones), they are used: fast, and long videos cost no extra minutes. Turn off to always run speech-to-text (punctuated Whisper text). Other platforms always use speech-to-text.",
            "default": true
          },
          "outputFormats": {
            "title": "Transcript formats",
            "type": "array",
            "description": "Which transcript columns to fill: plain text (paragraphs at pauses), SRT subtitles, WebVTT subtitles. Unselected columns stay empty.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "srt",
                "vtt"
              ],
              "enumTitles": [
                "Plain text",
                "SRT subtitles",
                "WebVTT subtitles"
              ]
            },
            "default": [
              "text",
              "srt",
              "vtt"
            ]
          },
          "includeTimestamps": {
            "title": "Timestamped segments",
            "type": "boolean",
            "description": "Add `segments`: a list of {start, end, text} lines in seconds (good for chapters, search and AI tools).",
            "default": true
          },
          "includeWordTimestamps": {
            "title": "Word timestamps",
            "type": "boolean",
            "description": "Add `words`: every word with its start and end second (speech-to-text and YouTube automatic captions; creator captions have line timings only).",
            "default": false
          },
          "maxDurationMinutes": {
            "title": "Max video length for speech-to-text (minutes)",
            "minimum": 1,
            "maximum": 240,
            "type": "integer",
            "description": "Longer videos are skipped and not charged when they need speech-to-text. Every started minute after the first 2 is billed as an extra minute. YouTube captions have no length limit.",
            "default": 60
          },
          "includeOnScreenText": {
            "title": "On-screen text (OCR): captions, titles, text overlays",
            "type": "boolean",
            "description": "Also read the text shown IN the video (burned-in captions, hook titles, lists, prices, CTAs) with OCR. Adds onScreenText, onScreenSegments (start/end/text) and hookOnScreenText (first 3 s). $0.027 per started minute read, max 3 per video, only when text is found.",
            "default": false
          },
          "onScreenTextLanguage": {
            "title": "On-screen text script",
            "enum": [
              "auto",
              "en",
              "latin",
              "cyrillic",
              "korean",
              "arabic",
              "devanagari",
              "greek",
              "thai"
            ],
            "type": "string",
            "description": "Script of the on-screen text. 'auto' follows the spoken language (Spanish -> Latin with accents, Russian -> Cyrillic, Korean -> Korean...). `en` also reads Chinese and Japanese.",
            "default": "auto"
          },
          "onlyNewVideos": {
            "title": "Only new videos (watch mode)",
            "type": "boolean",
            "description": "Remember every video transcribed in a named key-value store in your account and leave it out of later runs (not charged again). Schedule a scraper + this Actor and you pay only for new posts. A TikTok / Instagram / YouTube / Facebook / X video is recognised by its video ID.",
            "default": false
          },
          "watchlistName": {
            "title": "Watchlist name",
            "type": "string",
            "description": "Separate memory per watchlist (e.g. one per creator or client). Stored as kanto-transcript-watch-<name>. Delete that store to start over.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}