{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Transcript Scraper: TikTok, Instagram, YouTube & X",
    "description": "Get transcripts from TikTok, Instagram Reels, YouTube videos and Shorts, and X videos. Native subtitles first, Whisper speech-to-text when a video has none. Timestamped segments, language, author, caption and stats. Pay only for transcripts.",
    "version": "1.0",
    "x-build-id": "HgM8AO8usCEaSLuTN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrape-lads~video-transcript-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrape-lads-video-transcript-scraper",
        "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/scrape-lads~video-transcript-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrape-lads-video-transcript-scraper",
        "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/scrape-lads~video-transcript-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrape-lads-video-transcript-scraper",
        "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": {
          "urls": {
            "title": "Video URLs",
            "type": "array",
            "description": "TikTok videos, Instagram Reels and video posts, YouTube videos and Shorts, and X (Twitter) posts with a video. Short links (vm.tiktok.com, youtu.be) work too. Direct links to audio or video files (mp3, m4a, wav, mp4, mov, webm, ogg) are transcribed too. One transcript row per video. Provide video URLs, profiles below, or both.",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "title": "Profiles or channels (latest videos)",
            "type": "array",
            "description": "Get transcripts for the latest videos of a creator: tiktok.com/@name, instagram.com/name, youtube.com/@channel (add /shorts for the Shorts tab). Instagram serves at most the 12 newest posts without a login.",
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerProfile": {
            "title": "Latest videos per profile",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many of the newest videos to transcribe from each profile or channel.",
            "default": 10
          },
          "datasetId": {
            "title": "Dataset ID (optional)",
            "type": "string",
            "description": "Transcribe the videos listed in another run's dataset, for example the output of a TikTok, Instagram or YouTube scraper. Rows with a url, postUrl, webVideoUrl, permalink, link or shortCode field that points to a supported video are used; other rows are skipped."
          },
          "maxDatasetItems": {
            "title": "Max videos from the dataset",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many videos to read from that dataset.",
            "default": 100
          },
          "speechToText": {
            "title": "Speech-to-text",
            "enum": [
              "fallback",
              "replaceAutoCaptions",
              "always",
              "never"
            ],
            "type": "string",
            "description": "When to transcribe the audio with Whisper. Subtitle transcripts cost $2 per 1,000 and speech-to-text transcripts $5 per 1,000 (first minute of audio included, then $0.0025 per started minute), at list price.<br><br><b>Fallback</b> (default):the platform's own subtitles when a video has them (TikTok, YouTube), speech-to-text otherwise (always for Instagram and X).<br><b>Replace automatic captions</b>: like Fallback, but videos whose captions are machine-made are transcribed with speech-to-text and billed at the speech-to-text price. In our test of 500 videos, automatic captions missed about 1 meaningful word in 120, and 5% or more of the words in 7% of videos; YouTube's also censor swearing. Captions written by the creator are kept. If speech-to-text fails, you get the captions at the subtitle price.<br><b>Always</b>: speech-to-text for every video, at the speech-to-text price.<br><b>Never</b>: subtitles only; videos without them are skipped for free.",
            "default": "fallback"
          },
          "language": {
            "title": "Language (optional)",
            "type": "string",
            "description": "Two-letter language code such as en, es or fr. Picks the subtitle track in that language when a video has several, and tells speech-to-text which language is spoken. Leave empty to detect it automatically."
          },
          "includeSegments": {
            "title": "Include timestamped segments",
            "type": "boolean",
            "description": "Add the transcript split into segments with start and end times in seconds. Turn off to get the plain text only.",
            "default": true
          },
          "outputFormats": {
            "title": "Subtitle files (SRT / VTT)",
            "type": "array",
            "description": "Also add the transcript as ready-to-use subtitle text in the srt and/or vtt field of each row, for video editors and players. No extra charge.",
            "items": {
              "type": "string",
              "enum": [
                "srt",
                "vtt"
              ],
              "enumTitles": [
                "SRT (SubRip)",
                "WebVTT"
              ]
            },
            "default": []
          },
          "postedWithinDays": {
            "title": "Only videos from the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Profile videos only: skip videos older than this many days, for free. Empty or 0 = no limit."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Profile videos only: skip videos with fewer views, for free. Empty or 0 = no minimum."
          },
          "onlyNew": {
            "title": "Only new videos",
            "type": "boolean",
            "description": "Skip videos this actor already returned to you in an earlier run, for free: no row and no charge. Turn it on in a scheduled task to get only the new videos each time. Videos that failed are tried again.",
            "default": false
          },
          "watchlistName": {
            "title": "Watchlist name (optional)",
            "type": "string",
            "description": "Keeps a separate list of delivered videos under this name, so two scheduled tasks do not skip each other's videos. Empty = one list for your account."
          },
          "resetWatchlist": {
            "title": "Start the list over",
            "type": "boolean",
            "description": "Forget the delivered videos of this watchlist before the run, so every video counts as new again.",
            "default": false
          },
          "maxAiMinutes": {
            "title": "Speech-to-text budget (minutes)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop sending videos to speech-to-text once this many minutes of audio have been transcribed in the run. After that, videos that have subtitles still get them at the subtitle price, and videos without come back free with the reason budget_reached. Empty or 0 = no cap."
          },
          "maxSpeechToTextSec": {
            "title": "Longest video for speech-to-text (seconds)",
            "minimum": 10,
            "maximum": 7200,
            "type": "integer",
            "description": "Videos longer than this are not sent to speech-to-text (they still get subtitles when they have them). Protects you from paying for a 3 hour livestream by mistake.",
            "default": 1800
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many videos are processed at the same time.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}