{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok & YouTube Transcript Scraper",
    "description": "Transcribe TikTok & YouTube videos — even ones with no captions. Clean transcripts with per-phrase timestamps and automatic language detection, or a cheaper metadata-only mode.",
    "version": "0.1",
    "x-build-id": "mamtWOIh5aaMJ5epP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/paintedwinter~tiktok-youtube-transcript/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-paintedwinter-tiktok-youtube-transcript",
        "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/paintedwinter~tiktok-youtube-transcript/runs": {
      "post": {
        "operationId": "runs-sync-paintedwinter-tiktok-youtube-transcript",
        "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/paintedwinter~tiktok-youtube-transcript/run-sync": {
      "post": {
        "operationId": "run-sync-paintedwinter-tiktok-youtube-transcript",
        "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",
            "uniqueItems": true,
            "type": "array",
            "description": "TikTok or YouTube video links to transcribe (full URLs, one per line). Works on videos with no captions — the audio itself is transcribed. Instagram support is coming soon.",
            "items": {
              "type": "string"
            }
          },
          "profileUrls": {
            "title": "Profiles / channels / playlists",
            "maxItems": 10,
            "uniqueItems": true,
            "type": "array",
            "description": "TikTok usernames (@user) or profile URLs, YouTube channel URLs (youtube.com/@handle, /channel/, /c/, /user/) or YouTube playlist URLs. Each one expands into its newest videos, up to 'Videos per source'.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "YouTube search queries",
            "maxItems": 10,
            "uniqueItems": true,
            "type": "array",
            "description": "Keyword searches (YouTube only — TikTok does not expose keyword search). Each query expands into the top matching videos, up to 'Videos per source'.",
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerSource": {
            "title": "Videos per source",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many videos to take from each profile, channel, playlist, or search query (a whole run is capped at 1,000 videos).",
            "default": 30
          },
          "postedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "Only include discovered videos posted on or after this date (YYYY-MM-DD). Applies to profiles/channels/searches, not to direct video URLs. Videos whose post date the platform listing doesn't expose are skipped."
          },
          "postedBefore": {
            "title": "Posted before",
            "type": "string",
            "description": "Only include discovered videos posted on or before this date (YYYY-MM-DD). Applies to profiles/channels/searches, not to direct video URLs."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Only include discovered videos with at least this many views. Videos whose view count the platform listing doesn't expose are skipped. Applies to profiles/channels/searches, not to direct video URLs."
          },
          "sourceSorting": {
            "title": "Source video sorting",
            "enum": [
              "newest",
              "mostViewed"
            ],
            "type": "string",
            "description": "Order in which each source's videos are taken before the per-source cap is applied: newest first (the platform's feed order) or most viewed first.",
            "default": "newest"
          },
          "transcribe": {
            "title": "Transcribe audio (speech-to-text)",
            "type": "boolean",
            "description": "ON: transcribes the spoken audio (per-phrase timestamps included). OFF: metadata only — title, description/caption, duration — at a fraction of the price, no transcription fee. Note: free Apify accounts are limited to 5 videos and 1 transcription per month — any paid Apify plan unlocks everything.",
            "default": true
          },
          "translateTo": {
            "title": "Translate transcript to",
            "enum": [
              "none",
              "en",
              "ar",
              "es",
              "fr",
              "de",
              "pt",
              "tr",
              "hi",
              "id"
            ],
            "type": "string",
            "description": "Optionally add a translation of each transcript, returned in the item's `translation` field ($0.01 per video, charged only when a translation is actually delivered — if translation fails, the item simply has no translation field and nothing is charged). Requires 'Transcribe audio' to be ON.",
            "default": "none"
          },
          "subtitleFormat": {
            "title": "Subtitle file format",
            "enum": [
              "none",
              "srt",
              "vtt"
            ],
            "type": "string",
            "description": "Also render each transcript as a ready-to-save subtitle file in the chosen format, returned in the item's `subtitles` field. Free — no extra charge.",
            "default": "none"
          },
          "includeSegments": {
            "title": "Include timestamped segments",
            "type": "boolean",
            "description": "Include timestamped segments ({start, end, text}) in each result when the transcription backend provides them.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many videos to transcribe in parallel.",
            "default": 4
          },
          "perVideoTimeoutSecs": {
            "title": "Per-video timeout",
            "minimum": 60,
            "maximum": 3600,
            "type": "integer",
            "description": "Give up on a single video after this many seconds. A typical video finishes in 15-60 seconds; the default leaves plenty of headroom for queue spikes.",
            "default": 900
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}