{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Transcript Extractor: Captions, SRT & AI Summary",
    "description": "Get the full transcript of any public TikTok video with timestamps (SRT/VTT), language, hashtags, stats and author. Uses TikTok's own captions first and speech-to-text only when needed.",
    "version": "0.1",
    "x-build-id": "gEWkPcrG4x1R0nluf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/the_coder_senior~tiktok-transcript-subtitles-srt/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-the_coder_senior-tiktok-transcript-subtitles-srt",
        "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/the_coder_senior~tiktok-transcript-subtitles-srt/runs": {
      "post": {
        "operationId": "runs-sync-the_coder_senior-tiktok-transcript-subtitles-srt",
        "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/the_coder_senior~tiktok-transcript-subtitles-srt/run-sync": {
      "post": {
        "operationId": "run-sync-the_coder_senior-tiktok-transcript-subtitles-srt",
        "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": {
          "videoUrls": {
            "title": "Video URLs",
            "type": "array",
            "description": "Public TikTok video links, e.g. https://www.tiktok.com/@user/video/1234567890123456789. Short links (vm.tiktok.com) work too. This is the most reliable input.",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "title": "Profiles (beta)",
            "type": "array",
            "description": "Usernames or profile URLs (e.g. @tiktok). The Actor lists the profile's latest public videos, up to 'Max videos per source'. Listing depends on what TikTok shows publicly and can be blocked: if it is, the run tells you and you can paste video URLs instead.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags (beta)",
            "type": "array",
            "description": "Hashtags without the #, e.g. receitas. Same limits as profiles.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries (beta)",
            "type": "array",
            "description": "Keyword searches, e.g. 'easy dinner recipes'. Same limits as profiles.",
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerSource": {
            "title": "Max videos per profile, hashtag or search",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many videos to take from each profile, hashtag or search (1-100).",
            "default": 10
          },
          "maxVideos": {
            "title": "Max videos in this run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on the total number of videos processed in the run. Free plan runs are capped at 10 videos regardless of this value.",
            "default": 50
          },
          "transcriptionMode": {
            "title": "Transcription mode",
            "enum": [
              "auto",
              "captions-only",
              "speech-to-text-only"
            ],
            "type": "string",
            "description": "Auto uses TikTok's own captions when they exist (cheaper) and falls back to speech-to-text only when needed.",
            "default": "auto"
          },
          "language": {
            "title": "Preferred caption language",
            "type": "string",
            "description": "'auto' returns the video's original language. Set a code such as en, pt or es to get TikTok's machine-translated captions when available.",
            "default": "auto"
          },
          "aiSummary": {
            "title": "Add AI summary and hook",
            "type": "boolean",
            "description": "Adds a 2-3 sentence summary, the opening hook and topic tags for each transcript. Billed as a separate event per video.",
            "default": false
          },
          "summaryLanguage": {
            "title": "Summary language",
            "type": "string",
            "description": "'auto' writes the summary in the video's language. Or type a language name, e.g. English.",
            "default": "auto"
          },
          "forceSpeechToText": {
            "title": "Transcribe music-only videos too",
            "type": "boolean",
            "description": "By default, videos that TikTok flags as having no original audio (music-only) are skipped with status 'no_speech' and not charged. Turn on to run speech-to-text anyway.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "TikTok blocks many datacenter IPs. If you see 'blocked' results, switch to residential proxies.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}