{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk YouTube & Video Transcriber with SRT Subtitles",
    "description": "Search YouTube by topic, add a whole channel, or paste links. Get a timestamped transcript plus SRT and VTT subtitles for every video. Also works with TikTok, Instagram, MP3 and MP4 files.",
    "version": "0.1",
    "x-build-id": "gOIzuxsBcdceVejv2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/physealabs~bulk-media-transcriber/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-physealabs-bulk-media-transcriber",
        "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/physealabs~bulk-media-transcriber/runs": {
      "post": {
        "operationId": "runs-sync-physealabs-bulk-media-transcriber",
        "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/physealabs~bulk-media-transcriber/run-sync": {
      "post": {
        "operationId": "run-sync-physealabs-bulk-media-transcriber",
        "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": {
          "youtubeSearch": {
            "title": "Search YouTube",
            "type": "array",
            "description": "Type a topic, like podcast marketing tips or Lex Fridman. We find the top videos and transcribe them all. No links to copy.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "videosPerSearch": {
            "title": "Videos per search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many results to take for each search term or channel.",
            "default": 10
          },
          "channelUrls": {
            "title": "Whole channels or playlists",
            "type": "array",
            "description": "Paste one channel or playlist link (youtube.com/@mkbhd, a TikTok profile) and we transcribe its latest videos, up to the number above.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Video links",
            "type": "array",
            "description": "YouTube, TikTok, Instagram or any page with a video. Each file costs $0.005 plus $0.003 per started audio minute.",
            "items": {
              "type": "string"
            }
          },
          "mediaUrls": {
            "title": "Audio or video file links",
            "type": "array",
            "description": "Direct links to .mp3, .wav, .mp4 and similar files. The sample is a 11-second clip so you can see the output.",
            "items": {
              "type": "string"
            }
          },
          "uploadedFiles": {
            "title": "Uploaded files",
            "type": "array",
            "description": "Links to files you uploaded to Apify storage or any file host.",
            "items": {
              "type": "string"
            }
          },
          "documentUrls": {
            "title": "PDFs and images (beta)",
            "type": "array",
            "description": "Public PDF or image links to turn into text, page by page, with Markdown. Pages without a text layer get OCR. Links ending in .pdf, .png or .jpg in other fields are sent here automatically.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language hint",
            "type": "string",
            "description": "Two-letter code such as en, es or hi. Leave blank and we detect it."
          },
          "prompt": {
            "title": "Names and terms",
            "type": "string",
            "description": "Spellings the transcript should get right: product names, people, acronyms."
          },
          "includeSubtitles": {
            "title": "Make SRT and VTT subtitles",
            "type": "boolean",
            "description": "Saves timed subtitle files for every finished item.",
            "default": true
          },
          "concurrency": {
            "title": "Files at once",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many items run in parallel. Lower it if a site starts blocking downloads.",
            "default": 3
          },
          "maxItems": {
            "title": "Max items per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit on links accepted in one run, including search results.",
            "default": 100
          },
          "maxFileSizeMb": {
            "title": "Max file size (MB)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Larger direct files are skipped before transcription and not billed.",
            "default": 24
          },
          "ocr": {
            "title": "PDFs: when to use OCR",
            "enum": [
              "auto",
              "never",
              "always"
            ],
            "type": "string",
            "description": "OCR reads text from scanned pages.",
            "default": "auto"
          },
          "ocrLanguage": {
            "title": "PDFs: OCR language",
            "type": "string",
            "description": "Tesseract language code. eng is installed.",
            "default": "eng"
          },
          "maxPages": {
            "title": "PDFs: max pages per file",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Longer files are skipped with an error row and not billed.",
            "default": 200
          },
          "transcription": {
            "title": "Your own transcription endpoint",
            "type": "object",
            "description": "Leave as is. Only for teams who want to bill a Whisper-compatible endpoint of their own: model, baseUrl, apiKey."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}