{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Transcript Scraper · captions + AI fallback, no API key",
    "description": "Transcript of any TikTok video. Uses TikTok's own auto-captions when they exist (fast, $0.002) and built-in Whisper AI when they don't, so every spoken-word video gets text. No API key. Quality-gated: empty or garbage results are never returned or charged.",
    "version": "0.1",
    "x-build-id": "bpfYjozo3zXFGG5tH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blue59~tiktok-transcript-ai/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blue59-tiktok-transcript-ai",
        "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/blue59~tiktok-transcript-ai/runs": {
      "post": {
        "operationId": "runs-sync-blue59-tiktok-transcript-ai",
        "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/blue59~tiktok-transcript-ai/run-sync": {
      "post": {
        "operationId": "run-sync-blue59-tiktok-transcript-ai",
        "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": "TikTok video URLs",
            "type": "array",
            "description": "Accept known public TikTok video links (full or short); TikTok profiles, hashtags and searches are not expanded. Examples: https://www.tiktok.com/@EXAMPLE_USER/video/1234567890123456789, https://vm.tiktok.com/EXAMPLE_CODE/, https://vt.tiktok.com/EXAMPLE_CODE/. Not a video-list collector: https://www.tiktok.com/@EXAMPLE_USER or https://www.tiktok.com/tag/EXAMPLE_TAG. Other yt-dlp sources also pass through; YouTube channels/playlists are expanded up to maxItems, e.g. https://www.youtube.com/@EXAMPLE_CHANNEL/videos or https://www.youtube.com/playlist?list=EXAMPLE_LIST. This is not a TikTok domain allowlist. Unsupported or inaccessible links may fail.",
            "items": {
              "type": "string"
            }
          },
          "aiTranscription": {
            "title": "AI transcription when the video has no captions",
            "type": "boolean",
            "description": "Built-in AI, no API key needed; on by default. AI runs when the yt-dlp path selects no usable caption formats, not after a selected caption fails download/validation. TikTok first attempts native captions, then yt-dlp on native-fetch failure or no track; native text rejected by validation is a failed item. Turn off for captions only; no selected captions then means a logged failure with no result/minute events. FREE and BRONZE fixed-rate AI subtotals for 1/5/10 started audio minutes: $0.04/$0.08/$0.13 = $0.03 per video + minutes × $0.01. Start: $0.00005 per event, one per GB of Actor memory, minimum one, separate from subtotals. Source: public/tiktok-transcript-ai.json, pricingInfos latest startedAt, pricingPerEvent.actorChargeEvents ai-transcript/ai-minute/apify-actor-start; no tier-specific rates supplied. Optional own Groq key: $0.01 per successful AI video, no Actor minute event; separate Groq charges may apply.",
            "default": true
          },
          "languageHint": {
            "title": "Spoken language (optional)",
            "type": "string",
            "description": "Optional spoken-language code, e.g. en, zh, ja or es, sent only to AI. Leave empty for AI auto-detection. Output language is the hint or literal auto, not a detected-language guarantee; this does not choose a caption track. Chinese cleanup with chineseScript=auto: zh/zh-CN/zh-Hans use Simplified; zh-TW/zh-Hant/zh-HK use Traditional with Taiwan usage. Without a hint, confirmed Chinese uses Simplified. chineseScript can override the script for Chinese only. 中文整理預設：zh/zh-CN/zh-Hans 與自動判中用簡體；zh-TW/zh-Hant/zh-HK 用繁體與台灣用語；可用 chineseScript 覆寫中文字體。"
          },
          "subtitleFormats": {
            "title": "Subtitle files (SRT / VTT)",
            "type": "array",
            "description": "Optional SRT and/or WebVTT strings in dataset fields, with segments (start/end seconds and text); no extra Actor event. Requested files appear only with usable timing. Otherwise segments is empty and subtitleNote explains why. Empty formats keep plain output.",
            "items": {
              "type": "string",
              "enum": [
                "srt",
                "vtt"
              ],
              "enumTitles": [
                "SRT (.srt)",
                "WebVTT (.vtt)"
              ]
            },
            "default": []
          },
          "maxMinutes": {
            "title": "Max minutes per video for AI",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "AI media-duration ceiling (schema default 30 minutes), including with your own key; captions are not duration-limited. Checked before AI and again after download if needed; unknown duration cannot reliably enforce it. This is not a processing-time, batch-total or total-charge limit. Configure the Apify run timeout separately. Finished results remain; early-stop finalization may save validated completed audio chunks as partial text without result/minute events. Forced termination may prevent final writes. Raw input omitting this field uses the entry-point fallback of 60 minutes.",
            "default": 30
          },
          "groqApiKey": {
            "title": "Your own Groq API key (optional, cheaper)",
            "type": "string",
            "description": "Optional own Groq key from console.groq.com, preferred over the built-in key; no key is needed for the default full workflow. Successful own-key AI costs $0.01 per video in FREE and BRONZE, with no Actor minute event; your Groq account charges are separate. maxMinutes still applies."
          },
          "preferredLanguages": {
            "title": "Caption language priority",
            "type": "array",
            "description": "Caption preferences, not translation. TikTok native captions use this order with language-code mapping, falling back to the first available track. In yt-dlp, metadata language or a title/description language guess comes first, then this list; manual tracks are tried before automatic tracks. An unmatched manual track can still be selected.",
            "default": [
              "en",
              "zh-Hant",
              "zh-TW",
              "zh-Hans",
              "zh",
              "ja",
              "ko",
              "es",
              "fr",
              "de",
              "pt",
              "vi",
              "id",
              "th"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max videos",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum URLs selected per run, including expanded YouTube channels/playlists; not a promise of successful outputs. Social profiles/hashtags/searches are not expanded by the entry point. Completion also depends on the separately configured run timeout. Schema default 100; raw input omitting this field uses 50.",
            "default": 100
          },
          "minChars": {
            "title": "Min transcript length",
            "minimum": 1,
            "type": "integer",
            "description": "Default 20. Blank text, text shorter than this threshold, or recognized error/verification-page text fails validation and produces no normal transcript or result/minute events. This is not a guarantee of accuracy or completeness. Start events remain separate.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Schema default enables Apify Proxy. Nonempty input creates the primary proxy; omitted/empty raw input starts direct. Residential and additional datacenter configurations are still attempted when the primary is absent or disabled. TikTok native captions try primary/direct, datacenter, residential on matching blocked/timeout errors, then fall back to yt-dlp on native-fetch failure or no track. yt-dlp metadata tries primary/direct, then residential android/ios and residential default only for matching bot-check errors. Downloads use the successful metadata route. No proxy is passed to YouTube list expansion; access is not guaranteed.",
            "default": {
              "useApifyProxy": true
            }
          },
          "chineseTranscriptCleanup": {
            "title": "中文 AI 轉錄整理 / Chinese AI transcript cleanup",
            "type": "boolean",
            "description": "預設開：中文 AI 加繁簡與標點提示詞，並移除段首／段尾完整符合清單的已知幻覺句，移除數寫入 log。自動模式多一次最多 30 秒的語言辨識請求（Groq 每次至少計 10 秒）；正式英文轉錄欄位不變。關閉保留原始 AI 路徑，不加提示詞、不探測、不過濾。字幕來源與 Actor 計費不變。On by default: Chinese AI style/punctuation prompts and exact edge-only known-phrase removal, with counts in logs. Auto mode adds one language probe of up to 30 seconds (Groq minimum 10 seconds per request). English production fields are unchanged. Off keeps the original AI path with no prompt, probe or filter. Caption sources and Actor billing are unchanged.",
            "default": true
          },
          "chineseScript": {
            "title": "中文 AI 字體 / Chinese AI script",
            "enum": [
              "auto",
              "simplified",
              "traditional"
            ],
            "type": "string",
            "description": "預設 auto：自動判中或 languageHint=zh/zh-CN/zh-Hans 用簡體與標點；只有明確 zh-TW/zh-Hant/zh-HK 用繁體與台灣用語。香港、台灣客人可選 traditional 強制繁體，或維持 auto 並指定上述繁體語言碼；simplified 強制簡體。強制選項優先於中文 languageHint，但不強制語言、不翻譯英文等其他語言。只影響 AI，不改平台字幕；chineseTranscriptCleanup=false 時此欄無效。 Default auto: detected Chinese and zh/zh-CN/zh-Hans use Simplified with punctuation; explicit zh-TW/zh-Hant/zh-HK use Traditional with Taiwan usage. Hong Kong/Taiwan users can select traditional, or keep auto and set a Traditional language hint. simplified forces Simplified. Overrides Chinese hint script only, never language or non-Chinese text. AI only; captions are unchanged. Ignored when chineseTranscriptCleanup=false.",
            "default": "auto"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}