{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Transcripts + AI Summaries: YouTube, TikTok, Reels, X",
    "description": "Get transcripts from YouTube, TikTok, Instagram Reels, X/Twitter videos and podcasts in one run: plain text, timestamped segments, SRT and VTT. Native captions first, AI speech-to-text fallback, optional AI summary, key points and chapters. Failed URLs are free.",
    "version": "1.0",
    "x-build-id": "Mb9Hd6bKjlggITffy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rs-automation-labs~video-transcripts-ai-summaries/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rs-automation-labs-video-transcripts-ai-summaries",
        "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/rs-automation-labs~video-transcripts-ai-summaries/runs": {
      "post": {
        "operationId": "runs-sync-rs-automation-labs-video-transcripts-ai-summaries",
        "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/rs-automation-labs~video-transcripts-ai-summaries/run-sync": {
      "post": {
        "operationId": "run-sync-rs-automation-labs-video-transcripts-ai-summaries",
        "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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "Video, reel, post or podcast URLs",
            "type": "array",
            "description": "One URL per line, any mix of platforms: YouTube videos/Shorts (or a playlist/channel), TikTok videos, Instagram Reels/video posts, X/Twitter posts with video, podcast RSS feeds, Apple Podcasts show or episode links, and direct audio/video files (MP3, M4A, MP4, WAV...). Bare YouTube video IDs work too.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Preferred language (optional)",
            "type": "string",
            "description": "ISO code such as en, es, de, hi or pt-BR. Picks the caption track in this language and hints the speech-to-text model. Leave empty to use the spoken language."
          },
          "translateCaptions": {
            "title": "Translate YouTube captions if the language is missing",
            "type": "boolean",
            "description": "If a YouTube video has no captions in your preferred language, return YouTube's own machine translation (marked translated-captions). Only applies when a preferred language is set.",
            "default": true
          },
          "outputFormats": {
            "title": "Output formats",
            "type": "array",
            "description": "What to include in each dataset row. Plain text is best for AI/LLM pipelines, timestamped segments for search and clipping, SRT/VTT for subtitles.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "segments",
                "srt",
                "vtt"
              ],
              "enumTitles": [
                "Plain text",
                "Timestamped segments (JSON)",
                "SRT subtitles",
                "WebVTT subtitles"
              ]
            },
            "default": [
              "text",
              "segments"
            ]
          },
          "saveSubtitleFiles": {
            "title": "Also save .srt / .vtt / .txt files",
            "type": "boolean",
            "description": "Store downloadable subtitle and text files in the run's key-value store and add their links to each row.",
            "default": false
          },
          "speechToText": {
            "title": "Speech-to-text fallback",
            "enum": [
              "auto",
              "off",
              "always"
            ],
            "type": "string",
            "description": "Auto: use captions/published transcripts when they exist, otherwise transcribe the audio (TikTok, Reels, X and most podcasts need this). Off: captions only, items without captions fail for free. Always: ignore captions and transcribe the audio.",
            "default": "auto"
          },
          "sttModel": {
            "title": "Speech-to-text model",
            "enum": [
              "google/gemini-2.5-flash-lite",
              "google/gemini-2.5-flash",
              "google/gemini-3.1-flash-lite",
              "openai/whisper-large-v3-turbo",
              "openai/whisper-large-v3",
              "openai/gpt-4o-mini-transcribe"
            ],
            "type": "string",
            "description": "Model used only for items without captions. The default, Gemini 2.5 Flash Lite, works through Apify's OpenRouter proxy with no key. It costs about $0.0007–0.0012 per audio minute at OpenRouter prices, billed to your Apify account; Apify bills proxy model usage at 10× on the FREE plan. Whisper models give the most precise timestamps but need your own OpenRouter API key, because Apify's proxy has no transcription endpoint. Without a key they fall back to the default.",
            "default": "google/gemini-2.5-flash-lite"
          },
          "maxAudioMinutes": {
            "title": "Max audio minutes per item",
            "minimum": 1,
            "maximum": 720,
            "type": "integer",
            "description": "Longer items are skipped (free) instead of transcribed. Caps your cost for long podcasts. Does not limit caption-based transcripts.",
            "default": 180
          },
          "aiSummary": {
            "title": "Add AI summary",
            "type": "boolean",
            "description": "Generate a summary, key points and timestamped chapters for every transcript. Charged per summary, plus the model cost at OpenRouter prices (usually under $0.001 per video on paid Apify plans; 10× on the FREE plan unless you add your own OpenRouter key).",
            "default": false
          },
          "aiOutputs": {
            "title": "AI outputs",
            "type": "array",
            "description": "Which AI fields to generate. Chapters use the transcript timestamps (YouTube-style 0:00 stamps).",
            "items": {
              "type": "string",
              "enum": [
                "summary",
                "keyPoints",
                "chapters",
                "quotes",
                "topics"
              ],
              "enumTitles": [
                "Summary",
                "Key points",
                "Chapters with timestamps",
                "Notable quotes",
                "Topics / keywords"
              ]
            },
            "default": [
              "summary",
              "keyPoints",
              "chapters"
            ]
          },
          "aiModel": {
            "title": "AI model (OpenRouter ID)",
            "type": "string",
            "description": "Any OpenRouter chat model ID. Default google/gemini-2.5-flash-lite is cheap with a 1M-token context (long podcasts fit). Alternatives: google/gemini-2.5-flash, openai/gpt-4.1-mini, anthropic/claude-haiku-4.5.",
            "default": "google/gemini-2.5-flash-lite"
          },
          "summaryLanguage": {
            "title": "Summary language (optional)",
            "type": "string",
            "description": "ISO code (en, es, hi...) for the AI output. Empty = same language as the transcript."
          },
          "maxVideosPerChannel": {
            "title": "Max videos per YouTube playlist / channel",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "When you paste a playlist or channel URL, the newest N videos are transcribed.",
            "default": 10
          },
          "maxEpisodesPerFeed": {
            "title": "Max episodes per podcast feed",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "When you paste a podcast RSS feed or Apple Podcasts show link, the newest N episodes are transcribed.",
            "default": 3
          },
          "openRouterApiKey": {
            "title": "Your OpenRouter API key (optional)",
            "type": "string",
            "description": "Leave empty to use Apify's OpenRouter proxy (model cost billed to your Apify account). With your own key, speech-to-text and AI are paid to OpenRouter directly."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy (datacenter) is used first; blocked requests are retried through residential proxy automatically. You don't need to change this.",
            "default": {
              "useApifyProxy": true
            }
          },
          "residentialFallback": {
            "title": "Retry blocked requests via residential proxy",
            "type": "boolean",
            "description": "Recommended. Platforms like YouTube and Instagram sometimes block datacenter IPs; this retries them through residential IPs at no extra charge to you.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel items",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "How many URLs are processed at the same time.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}