{
  "openapi": "3.0.1",
  "info": {
    "title": "Douyin Transcript Scraper: Text, SRT & English, $1.99/1K",
    "description": "From $1.99/1K transcripts (first minute included), no start fee, songs and failures free. No login. Paste Douyin (抖音) links, share text, ids, creators or collections: Chinese text, timestamps, SRT, chapters, likes, shares; optional English translation.",
    "version": "0.1",
    "x-build-id": "AyntlyeadYMU1DrIH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laptime~douyin-transcript-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laptime-douyin-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~douyin-transcript-scraper/runs": {
      "post": {
        "operationId": "runs-sync-laptime-douyin-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~douyin-transcript-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-laptime-douyin-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": "🎬 Douyin links / 抖音链接（视频、作者、合集）",
            "type": "array",
            "description": "One per line: video links (douyin.com/video/…, /note/…, any page with ?modal_id=…, iesdouyin.com/share/video/…), v.douyin.com share links or the whole share text copied from the app, bare 19-digit video ids; creator pages (douyin.com/user/MS4wLjABAAAA…, or the bare sec_uid): their latest ~18 videos, then their collections (合集); collections (douyin.com/collection/…) in episode order; sounds (douyin.com/music/…). Douyin has no public caption files, so every transcript comes from our speech-to-text. 每行一个：视频链接、分享口令（整段粘贴即可）、视频 ID、作者主页或合集链接。",
            "items": {
              "type": "string"
            }
          },
          "translateToEnglish": {
            "title": "🌐 English translation (optional, paid) / 英文翻译（可选，收费）",
            "type": "boolean",
            "description": "Also translate the transcript into English with AI: \"translation\" (full text), \"translatedSegments\" (same timestamps) and \"translatedSrt\" (English subtitles, with SRT on), plus \"titleTranslation\". Off by default. Charged $0.0015 per started 1,000 characters of transcript (translation event; a 2-minute video is about 700 characters). Free plan: 100 videos per run. 默认关闭；中文文字稿始终免费附带。",
            "default": false
          },
          "includeOnScreenText": {
            "title": "🔤 On-screen text (optional, paid) / 画面文字（可选，收费）",
            "type": "boolean",
            "description": "Also read the text shown in the video (burned-in subtitles, titles, stickers) with an AI vision model: \"onScreenText\", one line each, in order. Works on music-only videos too. Adds a few seconds per video. Charged $0.0018 per video where text is found (on-screen-text event); free with your own key; Apify free plan: 100 videos per run.",
            "default": false
          },
          "maxSpeechMinutes": {
            "title": "Max minutes per video / 每个视频最长分钟数",
            "minimum": 1,
            "maximum": 240,
            "type": "integer",
            "description": "Longest video to transcribe; longer videos return a free \"too_long\" row. The first minute of audio is included in the $1.99 per 1,000 price; each further started minute costs $0.0015 (speech-minute). Default 60.",
            "default": 60
          },
          "speechLanguage": {
            "title": "Spoken language / 视频语言",
            "enum": [
              "zh",
              "auto",
              "en",
              "yue",
              "ja",
              "ko"
            ],
            "type": "string",
            "description": "Language hint for speech-to-text. \"zh\" (default) suits almost all Douyin videos and is the most accurate; \"auto\" lets the model detect it (for mixed-language channels); pick another when you know the videos are in it.",
            "default": "zh"
          },
          "maxVideosPerChannel": {
            "title": "📺 Max videos per creator or collection / 每个作者或合集最多视频数",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "For creator, collection and sound links: how many videos to transcribe. Creators: Douyin shows logged-out visitors the latest ~18 posts, then we continue with the creator's collections (合集) episode by episode. Default 10. Listing is free; each transcript is charged as usual.",
            "default": 10
          },
          "includeCollections": {
            "title": "Creators: continue with their collections / 继续转写作者的合集",
            "type": "boolean",
            "description": "After a creator's latest posts, transcribe the videos of their public collections, episode by episode, until \"Max videos per creator\" is reached. Off = latest posts only.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new videos / 只要新视频",
            "type": "boolean",
            "description": "Skip videos that an earlier run with the same monitor name already delivered. Schedule a creator with this on to receive (and pay for) only new videos; a run with nothing new costs $0.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Name of the only-new memory, e.g. \"car-tips-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 / SRT 字幕",
            "type": "boolean",
            "description": "On (default): add the transcript as an SRT subtitle file in \"srt\" (the 时间轴 column of the \"转写 (中文)\" view). Turn off for smaller rows.",
            "default": true
          },
          "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": "Include the video caption (the post text with hashtags) in \"description\". Turn off for smaller rows.",
            "default": true
          },
          "aiSummary": {
            "title": "🤖 AI summary (optional, paid) / AI 摘要（可选，收费）",
            "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: \"en\" (the prefill) = an English summary of a Chinese video. 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, AI summaries and on-screen text are not charged (the English translation always runs on our model). Empty = our hosted models."
          },
          "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}