{
  "openapi": "3.0.1",
  "info": {
    "title": "Wicked YouTube Transcript Scraper API",
    "description": "YouTube transcripts from the videos’ own captions. One video or 250 per run, nothing truncated. Plain text, timestamped segments, video facts and caption languages in every result; SRT/WebVTT on request. $0.70 per 1,000, no start fee, failed videos free.",
    "version": "0.1",
    "x-build-id": "nVb3UIwCCOaOAdR9B"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/myworkingmemory~wicked-youtube-transcript-scraper-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-myworkingmemory-wicked-youtube-transcript-scraper-api",
        "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/myworkingmemory~wicked-youtube-transcript-scraper-api/runs": {
      "post": {
        "operationId": "runs-sync-myworkingmemory-wicked-youtube-transcript-scraper-api",
        "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/myworkingmemory~wicked-youtube-transcript-scraper-api/run-sync": {
      "post": {
        "operationId": "run-sync-myworkingmemory-wicked-youtube-transcript-scraper-api",
        "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": {
          "videoUrl": {
            "title": "YouTube video URL or ID (one video)",
            "type": "string",
            "description": "One public YouTube video URL (watch, youtu.be, Shorts, embed, live) or its 11-character ID. For many videos use the list below instead, or as well."
          },
          "videoUrls": {
            "title": "Batch: up to 250 video URLs or IDs",
            "maxItems": 250,
            "uniqueItems": true,
            "type": "array",
            "description": "Up to 250 YouTube video URLs or IDs in one run. Nothing is truncated: a list above 250 is refused before any work and nothing is charged. One result, one charge, per delivered transcript; videos without captions cost nothing.",
            "items": {
              "type": "string"
            }
          },
          "targetLanguage": {
            "title": "Language",
            "enum": [
              "en",
              "pt",
              "es",
              "fr",
              "de",
              "it",
              "ja",
              "ko",
              "zh",
              "ru",
              "ar",
              "hi",
              "nl",
              "pl",
              "tr",
              "vi",
              "id",
              "th",
              "sv",
              "da",
              "no",
              "fi",
              "cs",
              "hu",
              "ro",
              "uk",
              "el",
              "he",
              "fa",
              "bn",
              "ta",
              "te",
              "mr",
              "ur",
              "gu",
              "kn",
              "ml",
              "pa",
              "sr",
              "hr",
              "bg",
              "sk",
              "lt",
              "lv",
              "et",
              "sl",
              "ca",
              "af",
              "sq",
              "am",
              "hy",
              "az",
              "eu",
              "be",
              "bs",
              "my",
              "ceb",
              "zh-Hans",
              "zh-Hant",
              "co",
              "eo",
              "fil",
              "fy",
              "gl",
              "ka",
              "ht",
              "ha",
              "haw",
              "hmn",
              "is",
              "ig",
              "ga",
              "jv",
              "kk",
              "km",
              "rw",
              "ku",
              "ky",
              "lo",
              "la",
              "lb",
              "mk",
              "mg",
              "ms",
              "mt",
              "mi",
              "mn",
              "ne",
              "ny",
              "or",
              "ps",
              "sm",
              "gd",
              "sn",
              "sd",
              "si",
              "so",
              "st",
              "su",
              "sw",
              "tg",
              "tt",
              "tk",
              "ug",
              "uz",
              "cy",
              "xh",
              "yi",
              "yo",
              "zu"
            ],
            "type": "string",
            "description": "ISO 639-1 code of the captions you want. Manual captions in that language first, then auto-generated. For a fallback order use the Language priority list below instead.",
            "default": "en"
          },
          "languages": {
            "title": "Language priority list (optional)",
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Several ISO 639-1 codes in order, e.g. [\"es\",\"en\"]: the first language the video has captions in wins. When set, this replaces Language.",
            "items": {
              "type": "string"
            }
          },
          "captionType": {
            "title": "Caption type",
            "enum": [
              "any",
              "manual",
              "auto"
            ],
            "type": "string",
            "description": "any = manual captions first, then auto-generated. manual = only captions a person uploaded. auto = only YouTube's auto-generated captions.",
            "default": "any"
          },
          "outputFormats": {
            "title": "Subtitle files to add (optional)",
            "type": "array",
            "description": "Add srt and/or vtt subtitle text to every result, at no extra charge. Plain text and timestamped segments are always included.",
            "items": {
              "type": "string",
              "enum": [
                "srt",
                "vtt"
              ],
              "enumTitles": [
                "SRT (SubRip)",
                "VTT (WebVTT)"
              ]
            },
            "default": []
          },
          "listOnly": {
            "title": "List caption languages only (free)",
            "type": "boolean",
            "description": "Return each video's available caption languages and video facts without fetching a transcript. Nothing is written to the dataset and nothing is charged; read the OUTPUT record.",
            "default": false
          },
          "includeMetadata": {
            "title": "Include video facts",
            "type": "boolean",
            "description": "Title, channel, duration, view count, description, keywords and thumbnail on every result. Free: they come with the same request that lists the captions.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}