{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Transcript Scraper : $5 per 1,000 Videos",
    "description": "Give it a YouTube channel handle, playlist, or list of video URLs and get every video's transcript as clean JSON: segments, plain text, or SRT, with language selection and channel metadata, at $5 per 1,000 videos. Bundles the per-video transcript job into one channel, every transcript, in one run.",
    "version": "0.0",
    "x-build-id": "ykt9wx9gKCqZpjD5a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/workware~youtube-channel-transcript-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-workware-youtube-channel-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/workware~youtube-channel-transcript-scraper/runs": {
      "post": {
        "operationId": "runs-sync-workware-youtube-channel-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/workware~youtube-channel-transcript-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-workware-youtube-channel-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",
        "required": [
          "sources"
        ],
        "properties": {
          "sources": {
            "title": "Sources",
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "description": "The channels, playlists, or explicit video lists to transcribe: one run handles the whole batch, one source at a time. Each entry needs exactly one of `channel`, `playlist`, or `videos`.",
            "items": {
              "type": "object",
              "properties": {
                "channel": {
                  "title": "Channel",
                  "type": "string",
                  "description": "A channel handle (`@mkbhd`), channel URL (`/@…`, `/channel/UC…`, `/c/…`, `/user/…`), or bare `UC…` id: resolved to a channel id and enumerated."
                },
                "playlist": {
                  "title": "Playlist",
                  "type": "string",
                  "description": "A playlist URL or `PL…`/`UU…` id: enumerated directly, with no channel resolve."
                },
                "videos": {
                  "title": "Videos",
                  "type": "array",
                  "description": "Explicit video URLs or IDs: bypasses enumeration (serves the per-video buyer inside the same actor).",
                  "maxItems": 1000,
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "maxVideos": {
            "title": "Max videos per source",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Caps the videos processed per source. 0 means no cap: the whole source. For a channel it takes the newest videos first; for a playlist it takes the first videos in the playlist’s own order (a playlist has no single \"newest\" order). Enumeration reaches roughly the newest ~10,000 videos per source; for larger channels, narrow with a date range or a playlist. The primary cost and scope control.",
            "default": 0
          },
          "publishedAfter": {
            "title": "Published on or after",
            "type": "string",
            "description": "Keep only videos published on or after this ISO date (YYYY-MM-DD). Applied during enumeration."
          },
          "publishedBefore": {
            "title": "Published on or before",
            "type": "string",
            "description": "Keep only videos published on or before this ISO date (YYYY-MM-DD). Applied during enumeration."
          },
          "languages": {
            "title": "Caption languages (priority order)",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Priority list of caption language codes (e.g. `en`, `de`, `pt-BR`). The first language available on a video wins; a manual (creator-uploaded) caption is preferred to an auto-generated one.",
            "items": {
              "type": "string"
            },
            "default": [
              "en"
            ]
          },
          "allowAutoGenerated": {
            "title": "Allow auto-generated captions",
            "type": "boolean",
            "description": "When no manual caption exists in the requested languages, fall back to YouTube auto-generated captions (flagged `isAutoGenerated: true`). When off, such videos are reported as having no transcript.",
            "default": true
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "segments",
              "plaintext",
              "srt"
            ],
            "type": "string",
            "description": "How each transcript is shaped: `segments` (timed `[{start,dur,text}]`), `plaintext` (joined prose), or `srt` (a single SRT document).",
            "default": "segments"
          },
          "titleFilter": {
            "title": "Title contains",
            "type": "string",
            "description": "Keep only videos whose title contains this text, case-insensitively. Plain substring matching: not a regular expression."
          },
          "includeMetadata": {
            "title": "Include metadata",
            "type": "boolean",
            "description": "Include title, channel name/handle, publish date, duration, and view count in each record. When off, emit the transcript and ids only (smaller records).",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}