{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Transcripts in Bulk — whole channels, playlists",
    "description": "Transcripts of whole YouTube channels (no 200-video cap), playlists and video lists, with timestamps, your language or the next one available, manual vs auto-generated marked. Charged only per transcript delivered.",
    "version": "1.0",
    "x-build-id": "1gmA6vWjfgDh7ZOr0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pampadata~youtube-transcripts-bulk/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pampadata-youtube-transcripts-bulk",
        "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/pampadata~youtube-transcripts-bulk/runs": {
      "post": {
        "operationId": "runs-sync-pampadata-youtube-transcripts-bulk",
        "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/pampadata~youtube-transcripts-bulk/run-sync": {
      "post": {
        "operationId": "run-sync-pampadata-youtube-transcripts-bulk",
        "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": {
          "videos": {
            "title": "Videos",
            "type": "array",
            "description": "One per line: a video link (youtube.com/watch?v=…, youtu.be/…, /shorts/…, /live/…) or an 11-character video id.",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "Channels (whole channel, no 200-video cap)",
            "type": "array",
            "description": "One per line: @handle, youtube.com/@handle, /channel/UC…, /c/name or /user/name. The channel's list is read to the end, however many videos it has. Use 'Maximum transcripts per channel or playlist' for a quick test.",
            "items": {
              "type": "string"
            }
          },
          "playlists": {
            "title": "Playlists",
            "type": "array",
            "description": "One per line: a youtube.com/playlist?list=… link or a playlist id (PL…). Read to the end. Mixes (RD…), Watch later and Liked videos are personal lists and are not supported.",
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "Languages, in order of preference",
            "type": "array",
            "description": "Language codes: en, es, pt, de, fr, ja… The first one the video has is used ('es' also takes es-419 or es-ES). Inside a language, subtitles written by a person come before auto-generated ones.",
            "default": [
              "en"
            ],
            "items": {
              "type": "string"
            }
          },
          "fallbackToAnyLanguage": {
            "title": "If none of those languages exist, take the video's own subtitles",
            "type": "boolean",
            "description": "On: a video without your languages still gives its transcript in the language it has (marked fallbackUsed: true). Off: such a video gives no transcript and is not charged.",
            "default": true
          },
          "allowAutoGenerated": {
            "title": "Accept auto-generated subtitles",
            "type": "boolean",
            "description": "YouTube's automatic subtitles (speech recognition). Every row says kind: manual or auto-generated. Off: only subtitles written by a person; videos with only automatic ones give no transcript and are not charged.",
            "default": true
          },
          "includeTimestamps": {
            "title": "Timestamps per line",
            "type": "boolean",
            "description": "Adds segments: [{start, duration, text}] in seconds. The full plain text is always in 'text'.",
            "default": true
          },
          "channelContent": {
            "title": "What to read from each channel",
            "type": "array",
            "description": "The channel tabs to read, each to the end.",
            "items": {
              "type": "string",
              "enum": [
                "videos",
                "shorts",
                "streams"
              ],
              "enumTitles": [
                "Videos tab",
                "Shorts tab",
                "Live tab (past streams)"
              ]
            },
            "default": [
              "videos"
            ]
          },
          "maxVideosPerSource": {
            "title": "Maximum transcripts per channel or playlist",
            "minimum": 0,
            "type": "integer",
            "description": "0 = all. Newest first on channels, list order on playlists. You pay per transcript, so set a limit for quick tests.",
            "default": 0
          },
          "includeVideosWithoutTranscript": {
            "title": "Also list videos without a transcript (free rows)",
            "type": "boolean",
            "description": "Off: videos without subtitles, private, deleted or age-restricted are listed with the reason in the SUMMARY record only. On: they also get a dataset row with status and reason. Those rows are never charged.",
            "default": false
          },
          "onlyNew": {
            "title": "Only videos not delivered in earlier runs",
            "type": "boolean",
            "description": "For monitoring channels or playlists: the run remembers which transcripts it delivered (one memory per state name, shared by all inputs, in a key-value store of your account; the last 100,000) and skips them next time. Videos that had no transcript yet are tried again (YouTube adds automatic subtitles some hours after upload).",
            "default": false
          },
          "stateName": {
            "title": "State name (for 'only new')",
            "type": "string",
            "description": "Separate memories for separate monitors: runs with the same name share what was already delivered.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "Videos read at the same time (at most)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "The run slows down by itself when YouTube refuses requests; this is the ceiling.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave off: the run uses its own IP and, when YouTube refuses it, moves to residential IPs by itself (that traffic is included in the price). Set a proxy here only to force your own.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}