{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Transcript Scraper: YouTube, TikTok & Reels, $1.99/1K",
    "description": "From $1.99/1K transcripts, no start fee, failures free. Up to 36x faster than the transcript Actors we timed. No login. YouTube, TikTok, Instagram Reels, Facebook and X: video URLs, channels, playlists or keywords. Speech-to-text when there are no captions. Timestamps, SRT/VTT.",
    "version": "0.2",
    "x-build-id": "SBcjdcZYTEk6ObMdG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laptime~video-transcript-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laptime-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/laptime~video-transcript-scraper/runs": {
      "post": {
        "operationId": "runs-sync-laptime-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/laptime~video-transcript-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-laptime-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": {
          "startUrls": {
            "title": "🎬 Video URLs",
            "type": "array",
            "description": "One link per line. Videos: YouTube (watch, Shorts, youtu.be, live replays or the bare 11-character id), TikTok (also vm.tiktok.com short links), Instagram reels, Facebook reels and videos, X posts, direct .mp3/.mp4 files. Channels, playlists and profiles (youtube.com/@mkbhd, tiktok.com/@nasa, instagram.com/nasa) expand to their newest videos (see \"Max videos per channel\").",
            "items": {
              "type": "string"
            }
          },
          "searchKeywords": {
            "title": "🔎 YouTube search keywords",
            "type": "array",
            "description": "Optional. Search YouTube for each phrase (one per line) and transcribe the top results, e.g. \"how to make sourdough bread\". Use it instead of, or with, video links. Searching is free; each transcript is charged as usual.",
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "🌍 Preferred caption languages",
            "type": "array",
            "description": "Optional. Caption languages in order of preference (ISO codes such as \"en\", \"es\", \"pt-BR\"); the first one the video has wins, creator-made before auto-generated. Empty (default) = the language spoken in the video. Check a video's languages first with \"List caption languages only\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "languageFallback": {
            "title": "Fall back to the original language",
            "type": "boolean",
            "description": "On (default): when the video's captions are all in other languages, return the transcript in its own language. Off: return a free \"no_captions\" row instead. (A video with no captions at all still goes to speech-to-text.)",
            "default": true
          },
          "captionType": {
            "title": "Caption type",
            "enum": [
              "any",
              "manual",
              "auto"
            ],
            "type": "string",
            "description": "Which caption tracks may be used. Any (default): creator-made first, then auto-generated. Creator-made only / Auto-generated only: a video without that kind is transcribed by speech-to-text instead (paid, see Speech-to-text), or returns a free \"no_captions\" row when Speech-to-text is Never.",
            "default": "any"
          },
          "listOnly": {
            "title": "List caption languages only (free)",
            "type": "boolean",
            "description": "On: no transcripts; each row lists the video's caption languages (availableLanguages, captionTracks) and its details, and nothing is charged. Use it to check what a video has before you choose \"languages\". Off (default): transcripts as usual.",
            "default": false
          },
          "speechToText": {
            "title": "🎙️ Speech-to-text",
            "enum": [
              "auto",
              "always",
              "never"
            ],
            "type": "string",
            "description": "Auto (default): videos without captions are transcribed from their audio with Whisper ($3.99 per 1,000 videos, first 3 minutes included, instead of $1.99 for captions). Always: ignore captions and transcribe the audio. Never: captions only; videos without captions return a free \"no_captions\" row.",
            "default": "auto"
          },
          "maxSpeechMinutes": {
            "title": "Max speech-to-text minutes per video",
            "minimum": 1,
            "maximum": 240,
            "type": "integer",
            "description": "Longest video speech-to-text may transcribe; longer videos without captions return a free \"too_long\" row. The first 3 minutes are included in the speech-to-text price; each further started minute costs $0.002 (speech-minute). Default 60.",
            "default": 60
          },
          "maxVideosPerChannel": {
            "title": "📺 Max videos per channel, playlist or profile",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "For YouTube channels and playlists and Instagram and TikTok profiles: how many videos to transcribe, newest first (TikTok shows logged-out visitors only its latest ~10). Default 10. Listing is free; each transcript is charged as usual.",
            "default": 10
          },
          "maxVideosPerSearch": {
            "title": "Max videos per search",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "For each search keyword or YouTube search link: how many top results to transcribe. Default 10.",
            "default": 10
          },
          "onlyNew": {
            "title": "Only new videos (monitoring)",
            "type": "boolean",
            "description": "Skip videos that an earlier run with the same monitor name already delivered. Schedule a channel with this on to get (and pay for) only new uploads; a run with nothing new costs $0. Off by default.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Name of the only-new memory, e.g. \"mkbhd-daily\"; runs with the same name share it. Letters, digits and dashes."
          },
          "maxVideos": {
            "title": "Max videos per run",
            "minimum": 1,
            "type": "integer",
            "description": "Safety cap on the number of videos one run processes, after channels, playlists and searches are expanded. Default 1,000.",
            "default": 1000
          },
          "includeSegments": {
            "title": "⏱️ Timestamped segments",
            "type": "boolean",
            "description": "On (default): add \"segments\", a list of {start, end, duration, text} in seconds, for each caption line.",
            "default": true
          },
          "includeTimestampedText": {
            "title": "[mm:ss] timestamped text",
            "type": "boolean",
            "description": "Add \"timestampedText\": one \"[mm:ss] text\" line per caption, easy to quote in an LLM prompt. Off by default.",
            "default": false
          },
          "includeSrt": {
            "title": "SRT subtitles",
            "type": "boolean",
            "description": "Add the transcript as an SRT subtitle file in \"srt\". Off by default.",
            "default": false
          },
          "includeVtt": {
            "title": "WebVTT subtitles",
            "type": "boolean",
            "description": "Add the transcript as a WebVTT subtitle file in \"vtt\". Off by default.",
            "default": false
          },
          "includeDescription": {
            "title": "Video description",
            "type": "boolean",
            "description": "On (default): include the video description in \"description\". Turn off for smaller rows.",
            "default": true
          },
          "autoChapters": {
            "title": "YouTube chapters (incl. automatic)",
            "type": "boolean",
            "description": "On (default): \"chapters\" on every YouTube row, from the creator's timestamps or YouTube's automatic chapters (videos of 2+ minutes; \"chaptersSource\" says which). Free. Off: only chapters written in the description.",
            "default": true
          },
          "aiSummary": {
            "title": "🤖 AI summary",
            "type": "boolean",
            "description": "Add \"aiSummary\" (2-4 sentences) and \"aiKeyPoints\" (3-7 takeaways) to each transcript, written by Claude Haiku. Off by default. $0.005 per summary on our model; free with your own key. Apify free plan: 10 summaries per run.",
            "default": false
          },
          "aiSummaryLanguage": {
            "title": "Summary language",
            "type": "string",
            "description": "Optional. ISO code of the summary language, e.g. \"en\". Empty = the transcript's language."
          },
          "aiApiKey": {
            "title": "Your own LLM API key (optional)",
            "type": "string",
            "description": "Optional. Your OpenRouter (sk-or-…), OpenAI, Anthropic (sk-ant-…) or Gemini (AIza…) key. With your own key, summaries are not charged. Empty = our hosted model."
          },
          "aiModel": {
            "title": "Model for your key",
            "type": "string",
            "description": "Optional. Model id for your own key or endpoint, e.g. \"gpt-4.1-mini\". Empty = a sensible default for the key type."
          },
          "aiBaseUrl": {
            "title": "Custom OpenAI-compatible endpoint",
            "type": "string",
            "description": "Optional. Base URL of an OpenAI-compatible API (a local Ollama or vLLM server reachable from Apify), used with your own key and model; not charged."
          },
          "maxConcurrency": {
            "title": "Parallel videos",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "How many videos are processed at the same time. Default 10.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}