{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Transcript Scraper",
    "description": "[💰 $4.99 / 1K transcripts] YouTube transcripts of any video, channel, playlist or search, with the video's details on every row · any caption language, as text, timestamps, SRT or WebVTT · videos without captions are free · No account, no proxy. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "kyLdhhpDJjq1Elp0d"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sleepmodesystems~youtube-transcript-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sleepmodesystems-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/sleepmodesystems~youtube-transcript-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sleepmodesystems-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/sleepmodesystems~youtube-transcript-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sleepmodesystems-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": {
          "startUrls": {
            "title": "Videos, channels, playlists or links",
            "type": "array",
            "description": "Any YouTube link (video, Short, live, channel, channel tab, playlist, search results, hashtag), or just a video id, an @handle, a channel id (UC...) or a playlist id. Paste a list of video links to get each one's transcript. Example: https://youtu.be/dQw4w9WgXcQ",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Or search YouTube for",
            "type": "array",
            "description": "Words as you would type them in YouTube's search box, one search per line: transcripts of the videos YouTube shows for them. Example: home espresso review.",
            "items": {
              "type": "string"
            }
          },
          "transcriptLanguage": {
            "title": "Transcript language",
            "type": "string",
            "description": "A language code such as en, es, de or pt. Empty = the video's own language. When a video has no captions in that language, its row lists the languages it has, and it is not charged.",
            "default": ""
          },
          "transcriptFormat": {
            "title": "Transcript format",
            "enum": [
              "text",
              "timestamps",
              "srt",
              "vtt"
            ],
            "type": "string",
            "description": "Plain text, text with timestamps, or subtitle files (SRT, WebVTT).",
            "default": "text"
          },
          "maxResults": {
            "title": "Videos per channel, playlist or search",
            "minimum": 0,
            "type": "integer",
            "description": "How many videos to read for each channel, playlist, search or hashtag (single video links always give that video). 0 = everything.",
            "default": 50
          },
          "maxShorts": {
            "title": "Shorts per search or channel",
            "minimum": 0,
            "type": "integer",
            "description": "How many Shorts to return for each search or channel, on top of the videos above. 0 = none.",
            "default": 0
          },
          "maxLive": {
            "title": "Live streams per search or channel",
            "minimum": 0,
            "type": "integer",
            "description": "How many live streams (live now and past streams) to return for each search or channel. 0 = none.",
            "default": 0
          },
          "dateFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Only videos published on or after this day: a date (2025-01-01) or a span back from today (30 days, 6 months, 2 years). Works the same for searches, channels and playlists."
          },
          "dateTo": {
            "title": "Published until",
            "type": "string",
            "description": "Only videos published on or before this day. Together with the start date, this gives a window such as all of 2025."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "relevance",
              "popular",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Searches: relevance or popularity (YouTube's own search choices). Channels: newest, popular or oldest first.",
            "default": "relevance"
          },
          "duration": {
            "title": "Length (searches)",
            "enum": [
              "any",
              "under3",
              "3to20",
              "over20"
            ],
            "type": "string",
            "description": "YouTube's length filter for searches.",
            "default": "any"
          },
          "features": {
            "title": "Features (searches)",
            "type": "array",
            "description": "Only videos with all of these, as in YouTube's search filters.",
            "items": {
              "type": "string",
              "enum": [
                "live",
                "4k",
                "hd",
                "subtitles",
                "creativeCommons",
                "360",
                "vr180",
                "3d",
                "hdr",
                "location",
                "purchased"
              ],
              "enumTitles": [
                "Live",
                "4K",
                "HD",
                "Subtitles/CC",
                "Creative Commons",
                "360°",
                "VR180",
                "3D",
                "HDR",
                "Location",
                "Purchased"
              ]
            }
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Results as YouTube shows them in this country (two letters: US, GB, DE, IN, BR...). Titles stay as their creators wrote them.",
            "default": "US"
          },
          "onlyNew": {
            "title": "Only new videos",
            "type": "boolean",
            "description": "For scheduled runs: return only videos (with their transcripts) that earlier runs with the same links and searches did not return.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Runs with the same name share their list of videos already returned, even when you change the searches.",
            "default": ""
          },
          "minItems": {
            "title": "Fail below this many rows",
            "minimum": 0,
            "type": "integer",
            "description": "For monitoring: mark the run as failed when it returns fewer rows than this. 0 = never.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}