{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube, Instagram Reels & TikTok Transcript Scraper",
    "description": "YouTube, Instagram Reels & TikTok to text: transcripts with timestamps, language and metadata. YouTube from captions in ~1 second ($4 per 1,000), Reels and TikToks with Whisper AI ($10 per 1,000). Channels and profiles, optional AI summary. Failed, private and music-only videos are never charged.",
    "version": "0.1",
    "x-build-id": "N15zNCdSm8nZ3Y3dw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vikasmaur13~video-transcript-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vikasmaur13-video-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/vikasmaur13~video-transcript-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vikasmaur13-video-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/vikasmaur13~video-transcript-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vikasmaur13-video-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": {
          "urls": {
            "title": "Video URLs",
            "type": "array",
            "description": "Public video links, one per line (optional if you use Profiles or Dataset IDs). Supported: YouTube videos and Shorts, Instagram reels/video posts, TikTok videos, X (Twitter) posts with video, Facebook videos/reels. Profile, hashtag and search pages go in Profiles / Dataset IDs.",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "title": "Profiles (YouTube channels, TikTok @handles, Instagram usernames)",
            "type": "array",
            "description": "Transcribe a creator's latest videos. YouTube: channel URL or @handle URL (up to 15 newest uploads). TikTok: @handle or profile URL (up to Max videos per profile). Instagram: username or profile URL, best effort, because Instagram usually rate-limits logged-out profile requests from cloud servers. Use Dataset IDs with apify/instagram-reel-scraper for a reliable route. Profiles that can't be read return one free error row.",
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerProfile": {
            "title": "Max videos per profile",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many of the newest videos to take from each profile (YouTube max 15, Instagram max 12).",
            "default": 20
          },
          "newerThan": {
            "title": "Only videos newer than",
            "type": "string",
            "description": "Skip profile videos posted before this date (YYYY-MM-DD) or relative period (e.g. 7 days)."
          },
          "datasetId": {
            "title": "Dataset IDs (two-step workflow)",
            "type": "array",
            "description": "Transcribe the videos listed in other Actors' datasets, e.g. the output of apify/instagram-reel-scraper or clockworks/tiktok-scraper. Reads the url / webVideoUrl / shortCode columns (up to 5,000 items per dataset)."
          },
          "language": {
            "title": "Spoken language",
            "type": "string",
            "description": "\"auto\" detects the spoken language. Or give a 2-letter ISO 639-1 code (en, es, pt, hi, de, fr, ...) to improve accuracy. This is the language spoken in the video; it does not translate.",
            "default": "auto"
          },
          "includeTimestamps": {
            "title": "Include timestamped segments",
            "type": "boolean",
            "description": "Add a `segments` array with start/end seconds for each sentence or caption line.",
            "default": true
          },
          "includeMetadata": {
            "title": "Include post metadata",
            "type": "boolean",
            "description": "Add caption/description, author, view/like/comment counts, post date and thumbnail.",
            "default": true
          },
          "summarize": {
            "title": "AI summary (extra charge)",
            "type": "boolean",
            "description": "Add an AI summary per transcript: 1-3 sentence summary, opening hook, key topics and a suggested caption. Charged as a separate 'summary' event, only when a summary is delivered.",
            "default": false
          },
          "preferPlatformCaptions": {
            "title": "Use platform captions when available",
            "type": "boolean",
            "description": "Use the video's own captions/subtitles (YouTube, TikTok) when they exist - cheaper and usually accurate. Turn off to always run speech-to-text.",
            "default": true
          },
          "maxItems": {
            "title": "Max videos",
            "minimum": 1,
            "type": "integer",
            "description": "Process at most this many URLs from the list (leave empty for all)."
          },
          "maxDurationMinutes": {
            "title": "Max video length for speech-to-text (minutes)",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Videos longer than this are skipped (not charged) unless platform captions exist. Audio beyond the first 3 minutes is billed per started minute.",
            "default": 15
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many audio-transcription videos to process in parallel (YouTube caption fetches run separately, up to 8 at a time).",
            "default": 5
          },
          "requestIntervalSeconds": {
            "title": "Min seconds between requests per platform",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Politeness delay between request starts to the same platform (minimum 1).",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy for Instagram, TikTok, X and Facebook. Default: direct connection (fastest in our tests). Turn on Apify Proxy (datacenter) if a platform starts rejecting requests. YouTube always uses its own built-in route (datacenter, then residential retries) at no extra charge.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}