{
  "openapi": "3.0.1",
  "info": {
    "title": "Douyin 抖音 AI Transcript, Subtitles (SRT/VTT) & Speech-to-Text",
    "description": "Zero-cookie Douyin (Chinese TikTok) AI speech-to-text, SRT/VTT subtitles & transcript extractor powered by built-in SenseVoiceSmall (ZH/EN/YUE/JA/KO) + Silero VAD. Accepts URLs, v.douyin.com short links, share copy, or IDs. No API key needed.",
    "version": "1.0",
    "x-build-id": "O3ZDWKbg5bnQaahuB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/flowery_bluebird_jay~douyin-ai-transcript-subtitles/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-flowery_bluebird_jay-douyin-ai-transcript-subtitles",
        "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/flowery_bluebird_jay~douyin-ai-transcript-subtitles/runs": {
      "post": {
        "operationId": "runs-sync-flowery_bluebird_jay-douyin-ai-transcript-subtitles",
        "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/flowery_bluebird_jay~douyin-ai-transcript-subtitles/run-sync": {
      "post": {
        "operationId": "run-sync-flowery_bluebird_jay-douyin-ai-transcript-subtitles",
        "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": {
          "inputs": {
            "title": "Douyin URLs, share text or numeric IDs",
            "maxItems": 1000,
            "type": "array",
            "description": "Up to 1000 strings. Accepts public douyin.com video/note URLs, v.douyin.com short links, share text containing one allowed URL, or a complete 15–22 digit ID. Empty arrays do no work.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Speech Language Hint",
            "enum": [
              "auto",
              "zh",
              "en",
              "yue",
              "ja",
              "ko"
            ],
            "type": "string",
            "description": "Language hint for local SenseVoiceSmall or supported cloud Whisper. auto lets the engine detect the spoken language; this does not translate speech.",
            "default": "auto"
          },
          "includeSrt": {
            "title": "Generate SRT Subtitles",
            "type": "boolean",
            "description": "Include subtitles_srt as inline SubRip text. False omits this output key; timing follows ASR segments and is approximate.",
            "default": true
          },
          "includeVtt": {
            "title": "Generate WebVTT Subtitles",
            "type": "boolean",
            "description": "Include subtitles_vtt as inline WebVTT text. False omits this output key; timing follows ASR segments and is approximate.",
            "default": true
          },
          "includeSegments": {
            "title": "Include Timestamped JSON Segments",
            "type": "boolean",
            "description": "Include the segments array with start_sec, end_sec and text. False omits the array; segments_count remains available.",
            "default": true
          },
          "maxAudioDurationSec": {
            "title": "Max Audio Duration to Transcribe (Seconds)",
            "minimum": 15,
            "maximum": 1800,
            "type": "integer",
            "description": "Transcribe at most this many seconds from the beginning of each video. Range 15–1800; default 600. This caps extracted audio, not source video download size (80 MiB maximum).",
            "default": 600
          },
          "whisperApiKey": {
            "title": "Optional Whisper provider API key",
            "type": "string",
            "description": "Optional secret API key for your configured OpenAI-compatible provider. Leave blank for local SenseVoiceSmall in the Docker image. Cloud uploads share extracted audio with that provider and can incur separate provider charges."
          },
          "whisperApiBaseUrl": {
            "title": "Optional BYOK Whisper Base URL",
            "type": "string",
            "description": "Used only with whisperApiKey. Public HTTPS OpenAI-compatible base URL on port 443, such as https://api.openai.com/v1 or https://api.groq.com/openai/v1. Custom public providers and custom base paths are supported. Credentials in URLs, query strings, fragments, non-public DNS answers and all upload redirects are refused. Only use a provider you trust with your API key and audio.",
            "default": "https://api.openai.com/v1"
          },
          "whisperModel": {
            "title": "Optional BYOK Whisper Model",
            "type": "string",
            "description": "Provider-specific speech model name used only with whisperApiKey. Default whisper-1 for OpenAI; for Groq select a model available in your provider account, such as whisper-large-v3-turbo. Availability is not checked in advance.",
            "default": "whisper-1"
          },
          "requestDelayMs": {
            "title": "Polite Delay Between Videos (ms)",
            "minimum": 100,
            "maximum": 5000,
            "type": "integer",
            "description": "Minimum spacing in milliseconds between metadata requests. Range 100–5000; transient 429, 5xx and timeout failures also use bounded exponential retry delays.",
            "default": 450
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify proxy configuration, including custom proxyUrls. Public HTTP CONNECT proxy hosts and ports 1–65535 are supported with pinned public DNS addresses. Internal/private proxies and HTTPS proxy transport are refused. Proxy charges and access success depend on the provider/account.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}