{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Transcript Scraper",
    "description": "Get TikTok video transcripts without login. Paste video links and get timestamped text from TikTok's own captions, or Whisper AI speech-to-text when a video has none, with plays, likes, author and music. Videos without speech are not charged.",
    "version": "1.0",
    "x-build-id": "yYTufy0xDNSxb0iWT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/axlymxp~tiktok-transcript-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-axlymxp-tiktok-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/axlymxp~tiktok-transcript-scraper/runs": {
      "post": {
        "operationId": "runs-sync-axlymxp-tiktok-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/axlymxp~tiktok-transcript-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-axlymxp-tiktok-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": {
          "videoUrls": {
            "title": "TikTok videos",
            "type": "array",
            "description": "Video URLs (`tiktok.com/@user/video/…`), short links (`vm.tiktok.com/…`, `tiktok.com/t/…`), mobile links or bare numeric video IDs. Optional when **Trending US videos** is on.",
            "items": {
              "type": "string"
            }
          },
          "trendingVideos": {
            "title": "Trending US videos",
            "type": "boolean",
            "description": "Also transcribe this week's top US videos from TikTok Creative Center (about 80 per week: views, engagement, creator followers and the email address from the creator's bio when there is one). US only: Creative Center doesn't show other countries without login.",
            "default": false
          },
          "trendingWeeks": {
            "title": "Weeks of trending videos",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "1 = the latest weekly ranking; up to 5 adds earlier weeks (distinct videos only).",
            "default": 1
          },
          "trendingCategories": {
            "title": "Trending categories",
            "type": "array",
            "description": "Only trending videos from these categories. Empty = the overall lists plus all five categories.",
            "items": {
              "type": "string",
              "enum": [
                "Beauty & Care",
                "Fashion",
                "Food & Beverage",
                "Lifestyle & Leisure",
                "Technology & Finance"
              ]
            },
            "default": []
          },
          "creatorProfiles": {
            "title": "Creator profiles (contacts)",
            "type": "array",
            "description": "TikTok profile URLs or @handles. Each becomes a creator row: followers, likes, videos, bio, bio link, seller/organization flags and the email addresses found in the bio and on the bio-link page (Linktree and similar).",
            "items": {
              "type": "string"
            }
          },
          "creatorsFromVideos": {
            "title": "Add a creator row for each video's author",
            "type": "boolean",
            "description": "Also look up the author of every processed video (including trending videos) and add their creator row with bio-link emails.",
            "default": false
          },
          "scanBioLinks": {
            "title": "Scan bio-link pages for emails",
            "type": "boolean",
            "description": "Open the creator's bio link (Linktree, msha.ke, …) and collect email addresses from it. Pages that redirect to another site are ignored.",
            "default": true
          },
          "maxCreators": {
            "title": "Max creators",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper bound for creator rows in one run.",
            "default": 100
          },
          "transcriptSource": {
            "title": "Transcript source",
            "enum": [
              "auto",
              "captions",
              "ai"
            ],
            "type": "string",
            "description": "`auto` uses TikTok's own caption track when the video has one and falls back to AI speech-to-text (Whisper) otherwise. `captions` never runs AI (videos without captions come back as free `no_captions` rows). `ai` always transcribes the audio, e.g. for translation.",
            "default": "auto"
          },
          "languages": {
            "title": "Preferred caption languages",
            "type": "array",
            "description": "2-letter codes in order of preference (`en`, `es`, `pt`, …) for picking among TikTok's caption tracks. AI transcription always auto-detects the spoken language.",
            "default": [
              "en"
            ],
            "items": {
              "type": "string"
            }
          },
          "fallbackToAnyLanguage": {
            "title": "Fall back to the video's own caption language",
            "type": "boolean",
            "description": "When no caption track matches your languages, use the video's original-language track instead of AI.",
            "default": true
          },
          "translateToEnglish": {
            "title": "Translate AI transcripts to English",
            "type": "boolean",
            "description": "For AI transcripts: output English text for non-English speech (Whisper translate). Use with source `ai` to translate every video.",
            "default": false
          },
          "outputFormat": {
            "title": "Transcript format",
            "enum": [
              "segments",
              "text",
              "both"
            ],
            "type": "string",
            "description": "`segments`: `transcript` is an array of `{start, end, text}` (seconds). `text`: one joined string. `both`: segments in `transcript`, the string in `transcriptText`.",
            "default": "segments"
          },
          "maxVideos": {
            "title": "Max videos",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Upper bound for one run. You pay only for videos that return a transcript.",
            "default": 100
          },
          "maxAudioMinutes": {
            "title": "Skip AI transcription above (minutes)",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "Longer videos without captions are listed free with `error: too_long` instead of being AI-transcribed.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed: the actor connects directly and falls back to Apify proxies on its own. Set your own proxy only if you see `blocked` rows."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}