{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Transcript Scraper: Merged Transcript Export",
    "description": "YouTube Transcript Scraper extracts full transcripts from public YouTube videos with ease. Quickly retrieve spoken content for research, summarization, SEO, or accessibility—just enter a video URL and get clean, structured text. No login or API key required.",
    "version": "0.1",
    "x-build-id": "jI5vy891voq1e25dz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scraper-engine~youtube-transcript-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scraper-engine-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/scraper-engine~youtube-transcript-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scraper-engine-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/scraper-engine~youtube-transcript-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scraper-engine-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": {
          "discoveryMode": {
            "title": "🔎 Discovery Mode",
            "enum": [
              "urls",
              "channel",
              "playlist",
              "search"
            ],
            "type": "string",
            "description": "'urls' = use the YouTube Video URLs list below (default, base behavior). 'channel' = expand each entry in Container URLs into that channel's videos. 'playlist' = expand each entry in Container URLs into that playlist's videos. 'search' = expand each entry in Search Queries into matching videos. Default: urls.",
            "default": "urls"
          },
          "containerUrls": {
            "title": "📦 Container URLs (Channel / Playlist)",
            "type": "array",
            "description": "Used when discoveryMode is 'channel' or 'playlist'. Add one or more channel URLs (e.g. https://www.youtube.com/@channelname) or playlist URLs (e.g. https://www.youtube.com/playlist?list=...). Each is expanded to its member videos, capped by Max Videos Per Container.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "🔍 Search Queries",
            "type": "array",
            "description": "Used when discoveryMode is 'search'. Add one or more keyword/search queries (e.g. 'apify web scraping tutorial'). Each query is expanded into matching videos, capped by Max Videos Per Container.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerContainer": {
            "title": "🔢 Max Videos Per Container",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Caps how many videos are expanded from EACH channel/playlist/search query (parents are the containers, not counted against this; this bounds the children per container). Example: 2 container URLs + maxVideosPerContainer=10 -> up to 20 videos total. Default is 10.",
            "default": 10
          },
          "sortBy": {
            "title": "↕️ Sort By",
            "enum": [
              "date",
              "popularity"
            ],
            "type": "string",
            "description": "Order videos are expanded in for channel/search discovery before filters/cap are applied. 'date' = most recent first. 'popularity' = most viewed first. Playlists keep their own owner-defined order for 'date' and are re-sorted locally for 'popularity'. Default: date.",
            "default": "date"
          },
          "minDurationSeconds": {
            "title": "⏱️ Min Duration (seconds)",
            "minimum": 0,
            "type": "integer",
            "description": "Only applies to discovery modes (channel/playlist/search) — direct URL mode ignores this. Skip discovered videos shorter than this many seconds. 0 = no minimum. Default: 0.",
            "default": 0
          },
          "maxDurationSeconds": {
            "title": "⏱️ Max Duration (seconds)",
            "minimum": 0,
            "type": "integer",
            "description": "Only applies to discovery modes (channel/playlist/search). Skip discovered videos longer than this many seconds. 0 = no maximum. Default: 0.",
            "default": 0
          },
          "minViews": {
            "title": "👍 Min Views",
            "minimum": 0,
            "type": "integer",
            "description": "Only applies to discovery modes (channel/playlist/search). Skip discovered videos with fewer views than this. 0 = no minimum. Default: 0.",
            "default": 0
          },
          "publishedAfter": {
            "title": "📅 Published After",
            "type": "string",
            "description": "Only applies to discovery modes (channel/playlist/search). Only keep discovered videos published after this date. Accepts an absolute date (e.g. 2024-01-01) or a relative window (e.g. '30 days', '6 months'). Leave blank for no date filter.",
            "default": ""
          },
          "directVideoUrls": {
            "title": "🎯 Direct Video URLs",
            "type": "array",
            "description": "Used when discoveryMode is 'urls' (default). Add one or more YouTube links to extract transcripts from directly. Each completed video appears in your dataset automatically. (Also accepts the base actor's `urls` field name for backward compatibility.) ⚡",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeAutoGeneratedCaptions": {
            "title": "🤖 Include Auto-Generated Captions",
            "type": "boolean",
            "description": "Include YouTube's auto-generated English captions when a manually-created English transcript isn't available. Default is true. (Also accepts the base field name `includeEnglishAG`.)"
          },
          "includeNonEnglishTranscripts": {
            "title": "🌐 Include Non-English Transcripts",
            "type": "boolean",
            "description": "Include transcripts in languages other than English. Default is false. (Also accepts the base field name `includeNonEnglish`.)"
          },
          "transcriptOutputFormat": {
            "title": "📝 Transcript Output Format",
            "enum": [
              "timestamp",
              "text"
            ],
            "type": "string",
            "description": "Choose transcript style: 'timestamp' includes time markers, while 'text' returns clean plain text. Default is 'text'. (Also accepts the base field name `outputFormat`.)"
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration 🌐",
            "type": "object",
            "description": "Optional proxy setup for stable access. Uses Apify Residential Proxy by default when needed.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}