{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Transcript Scraper — Multi-Language + Translation",
    "description": "Extract transcripts from YouTube videos. Batch URLs, channel mode, 100+ languages, auto-translation, SRT/WebVTT export. $2.00/1K — 60% cheaper than competitors.",
    "version": "3.0",
    "x-build-id": "XBNAdssIUkEkbWpXs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/celebrated-quadraphonic~youtube-transcript-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-celebrated-quadraphonic-youtube-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/celebrated-quadraphonic~youtube-transcript-scraper/runs": {
      "post": {
        "operationId": "runs-sync-celebrated-quadraphonic-youtube-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/celebrated-quadraphonic~youtube-transcript-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-celebrated-quadraphonic-youtube-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "url",
              "channel",
              "playlist"
            ],
            "type": "string",
            "description": "URL = specific videos, Channel = all videos from a channel, Playlist = all videos from a playlist.",
            "default": "url"
          },
          "urls": {
            "title": "Video URLs (one per line)",
            "type": "string",
            "description": "YouTube video or Shorts URLs. Supports watch, shorts, youtu.be formats.",
            "default": ""
          },
          "channels": {
            "title": "Channels (one per line)",
            "type": "string",
            "description": "Channel handles (without @) or URLs. Gets recent videos and extracts transcripts.",
            "default": ""
          },
          "playlists": {
            "title": "Playlist URLs (one per line)",
            "type": "string",
            "description": "YouTube playlist URLs. Extracts video IDs from each playlist and fetches their transcripts.",
            "default": ""
          },
          "maxVideos": {
            "title": "Max Videos (Channel / Playlist mode)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Max videos to process from each channel or playlist.",
            "default": 20
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of videos to process in parallel (1-20). Higher values are faster but may hit rate limits.",
            "default": 5
          },
          "language": {
            "title": "Transcript Language",
            "type": "string",
            "description": "ISO 639-1 code: en, ja, es, fr, de, zh, ko, pt, ru, ar, etc. Leave empty for auto-detect (picks first available).",
            "default": ""
          },
          "translateTo": {
            "title": "Translate To",
            "type": "string",
            "description": "Translate transcript to this language (ISO 639-1). Leave empty for no translation. Example: en, ja, zh.",
            "default": ""
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "timestamped",
              "text",
              "srt",
              "webvtt"
            ],
            "type": "string",
            "description": "timestamped = [{text, start, duration}], text = plain text, srt = SRT subtitle format, webvtt = WebVTT format.",
            "default": "timestamped"
          },
          "chunkSize": {
            "title": "RAG Chunk Size (words)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Split transcript into overlapping word chunks for RAG/AI pipelines. Set to 0 to disable. Each chunk is output as a separate dataset item with character offsets.",
            "default": 0
          },
          "chunkOverlap": {
            "title": "RAG Chunk Overlap (words)",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Number of overlapping words between consecutive chunks. Only used when chunkSize > 0.",
            "default": 50
          },
          "includeMetadata": {
            "title": "Include Rich Video Metadata",
            "type": "boolean",
            "description": "Fetch view count, likes, comments, duration, published date, description, keywords, thumbnail, channel info, and geo-restriction status.",
            "default": true
          },
          "listAvailableLanguages": {
            "title": "List Available Languages",
            "type": "boolean",
            "description": "Show all available transcript languages for each video (adds one extra API call per video).",
            "default": false
          },
          "since": {
            "title": "Since (YYYY-MM-DD)",
            "type": "string",
            "description": "Only videos published after this date (Channel mode).",
            "default": ""
          },
          "until": {
            "title": "Until (YYYY-MM-DD)",
            "type": "string",
            "description": "Only videos published before this date (Channel mode).",
            "default": ""
          },
          "proxyUrl": {
            "title": "Custom Proxy URL",
            "type": "string",
            "description": "HTTP proxy URL for fetching rich metadata. Leave empty to auto-use Apify residential proxy (recommended). Format: http://user:pass@host:port",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}