{
  "openapi": "3.0.1",
  "info": {
    "title": "🎬 YouTube Transcript Scraper",
    "description": "Turn any YouTube video, playlist or channel into clean, structured text. Bulk-extract transcripts and captions in 75 languages, plus views, likes, comments, keywords and thumbnails. Text array, plain text, WebVTT or SRT — ready for AI training data, RAG pipelines, summarisation and SEO.",
    "version": "1.1",
    "x-build-id": "ZrjSZ78KzeovkTnAS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data_minds~youtube-transcript-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data_minds-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/data_minds~youtube-transcript-scraper/runs": {
      "post": {
        "operationId": "runs-sync-data_minds-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/data_minds~youtube-transcript-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-data_minds-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": {
          "urls": {
            "title": "🔗 YouTube links",
            "minItems": 0,
            "type": "array",
            "description": "One or many YouTube video, Shorts or youtu.be links, playlist links or channel links (@handle or /channel/..., optionally ending in /videos, /shorts or /streams). Bulk input is supported. Leave empty when you only use search keywords.",
            "items": {
              "type": "string"
            }
          },
          "searchKeywords": {
            "title": "🔎 Search keywords",
            "type": "array",
            "description": "Optional. Each phrase runs a YouTube video search and the transcripts of the matching videos are returned, up to the per-source limit below for each phrase. Works together with links.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max videos per channel, playlist or keyword",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many videos to read for each channel, playlist or search keyword. A direct video link always gives its one video.",
            "default": 10
          },
          "languages": {
            "title": "🌍 Transcript languages",
            "type": "array",
            "description": "Pick languages in priority order. Auto uses the video's original language. Creator captions win over auto-generated ones. If a language is not offered, YouTube's own translation is tried, otherwise the original is returned and the row says so.",
            "items": {
              "type": "string",
              "enum": [
                "auto",
                "en",
                "es",
                "pt",
                "fr",
                "de",
                "it",
                "nl",
                "ru",
                "uk",
                "pl",
                "tr",
                "ar",
                "hi",
                "bn",
                "ur",
                "id",
                "vi",
                "th",
                "ja",
                "ko",
                "zh-Hans",
                "zh-Hant",
                "sv",
                "no",
                "da",
                "fi",
                "cs",
                "el",
                "he",
                "hu",
                "ro",
                "bg",
                "sr",
                "hr",
                "sk",
                "fa",
                "ms",
                "tl",
                "sw"
              ],
              "enumTitles": [
                "Auto (video's original)",
                "English",
                "Spanish",
                "Portuguese",
                "French",
                "German",
                "Italian",
                "Dutch",
                "Russian",
                "Ukrainian",
                "Polish",
                "Turkish",
                "Arabic",
                "Hindi",
                "Bengali",
                "Urdu",
                "Indonesian",
                "Vietnamese",
                "Thai",
                "Japanese",
                "Korean",
                "Chinese (Simplified)",
                "Chinese (Traditional)",
                "Swedish",
                "Norwegian",
                "Danish",
                "Finnish",
                "Czech",
                "Greek",
                "Hebrew",
                "Hungarian",
                "Romanian",
                "Bulgarian",
                "Serbian",
                "Croatian",
                "Slovak",
                "Persian",
                "Malay",
                "Filipino",
                "Swahili"
              ]
            },
            "default": [
              "auto"
            ]
          },
          "transcriptType": {
            "title": "🎯 Transcript type",
            "enum": [
              "any",
              "manual",
              "auto"
            ],
            "type": "string",
            "description": "Which captions to accept. Videos without the chosen kind get a row that says so.",
            "default": "any"
          },
          "scrapeShorts": {
            "title": "✅ Include Shorts",
            "type": "boolean",
            "description": "Shorts found inside channels and playlists are skipped unless this is on. A Shorts link you paste directly is always read.",
            "default": false
          },
          "searchSubtitlesOnly": {
            "title": "🎯 Search: only videos with subtitles",
            "type": "boolean",
            "description": "For search keywords only: keep results that YouTube marks as having subtitles, so fewer rows come back empty.",
            "default": true
          },
          "outputFormat": {
            "title": "📦 Captions format",
            "enum": [
              "captions",
              "textWithTimestamps",
              "singleStringText",
              "srt",
              "vtt",
              "xmlWithoutTimestamps",
              "xmlWithTimestamps"
            ],
            "type": "string",
            "description": "Shape of the captions field. Timed segments and plain text are always available in their own fields.",
            "default": "captions"
          },
          "includeDetails": {
            "title": "✅ Video details and chapters",
            "type": "boolean",
            "description": "Add likes, publish date, category, Short and unlisted flags, and chapters with their transcript text. Turn it off if you only need the transcript.",
            "default": true
          },
          "includeSrt": {
            "title": "✅ SRT subtitles",
            "type": "boolean",
            "description": "Add a ready-to-use SRT subtitle file as text for every video.",
            "default": false
          },
          "includeVtt": {
            "title": "✅ WebVTT subtitles",
            "type": "boolean",
            "description": "Add a ready-to-use WebVTT subtitle file as text for every video.",
            "default": false
          },
          "listOnly": {
            "title": "✅ Only list caption languages",
            "type": "boolean",
            "description": "Skip the transcript and return only the caption and translation languages each video offers. A quick, cheap check.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Optional. The default works for most runs; set your own network settings only if you need them."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}