{
  "openapi": "3.0.1",
  "info": {
    "title": "Audio & Video to Text: Whisper Transcription, SRT & VTT",
    "description": "Transcribe audio and video file URLs to text with Whisper, no API key: transcript, language, SRT and VTT subtitles, optional timestamps. Direct mp3/mp4/wav/m4a links only, no YouTube. Base or small model on CPU. Pay per audio minute; failures are free.",
    "version": "0.1",
    "x-build-id": "Rt13WkOFAS6EfaD1d"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data-done-right~whisper-transcriber/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data-done-right-whisper-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/data-done-right~whisper-transcriber/runs": {
      "post": {
        "operationId": "runs-sync-data-done-right-whisper-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/data-done-right~whisper-transcriber/run-sync": {
      "post": {
        "operationId": "run-sync-data-done-right-whisper-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",
        "required": [
          "mediaUrls"
        ],
        "properties": {
          "mediaUrls": {
            "title": "Audio or video file URLs",
            "type": "array",
            "description": "Direct links to audio or video files (mp3, m4a, wav, flac, ogg, mp4, mov, webm, mkv). Example: https://example.com/episode.mp3. One transcript per link. YouTube, Vimeo, TikTok, Spotify and other site page links are rejected, with no charge.",
            "items": {
              "type": "string"
            }
          },
          "model": {
            "title": "Model",
            "enum": [
              "base",
              "small"
            ],
            "type": "string",
            "description": "Base is fast and good for clear speech. Small is about twice as slow and noticeably more accurate on accents, noise and non-English audio, at double the price per minute.",
            "default": "base"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Spoken language as a Whisper code, for example en, de, fr, es, pt, ja, or auto to detect it from the first 30 seconds. Setting it avoids wrong detection on short or noisy files. Example: en.",
            "default": "auto"
          },
          "accuracy": {
            "title": "Decoding",
            "enum": [
              "fast",
              "better"
            ],
            "type": "string",
            "description": "Fast uses greedy decoding. Better uses beam search (beam size 5): usually a little more accurate, about twice as slow on our test file. The price per minute is the same.",
            "default": "fast"
          },
          "saveSrt": {
            "title": "Save SRT subtitle file",
            "type": "boolean",
            "description": "Store an .srt file per transcript in the key-value store and return its link in srtUrl.",
            "default": true
          },
          "saveVtt": {
            "title": "Save VTT subtitle file",
            "type": "boolean",
            "description": "Store a WebVTT .vtt file per transcript and return its link in vttUrl.",
            "default": false
          },
          "saveTxt": {
            "title": "Save plain-text file",
            "type": "boolean",
            "description": "Store a .txt file with the full transcript and return its link in txtUrl. The text is also always in the text field of the dataset row.",
            "default": false
          },
          "saveJson": {
            "title": "Save JSON file",
            "type": "boolean",
            "description": "Store a .json file with language, duration, full text and timestamped segments, and return its link in jsonUrl.",
            "default": false
          },
          "includeSegments": {
            "title": "Include timestamped segments in the dataset",
            "type": "boolean",
            "description": "Add a segments array (start and end in seconds, text) to each dataset row. Makes rows larger.",
            "default": false
          },
          "maxFilesPerRun": {
            "title": "Max files per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on files processed in one run. Links past the cap are listed as skipped and not charged.",
            "default": 100
          },
          "maxAudioMinutesPerRun": {
            "title": "Max audio minutes per run",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on the audio minutes you can be charged for in one run. A file that would go over it is skipped, free. Example: 300 = 5 hours of audio, at most $1.35 with the base model.",
            "default": 300
          },
          "maxDurationMinutes": {
            "title": "Max duration per file (minutes)",
            "minimum": 0.1,
            "type": "number",
            "description": "Longer files are rejected without charge. Example: 180 = 3 hours.",
            "default": 180
          },
          "maxFileSizeMb": {
            "title": "Max file size (MB)",
            "minimum": 1,
            "maximum": 2048,
            "type": "integer",
            "description": "Files above this size are rejected before the download finishes. Maximum 2048.",
            "default": 500
          },
          "downloadTimeoutSecs": {
            "title": "Download timeout (seconds)",
            "minimum": 10,
            "maximum": 7200,
            "type": "integer",
            "description": "Applies to the download of each file.",
            "default": 600
          },
          "fileTimeoutSecs": {
            "title": "Transcription timeout (seconds)",
            "minimum": 30,
            "maximum": 43200,
            "type": "integer",
            "description": "Stops the transcription of one file after this time and reports it as failed (not charged). The base model needed about 2 to 4 seconds per audio minute on one CPU core in our test, small about 9; real recordings and the shared CPU on the platform can be slower.",
            "default": 3600
          },
          "outputStoreName": {
            "title": "Save files in a named store",
            "type": "string",
            "description": "Optional key-value store name. Named stores are kept until you delete them, while the store of a run expires after your plan retention period. Example: my-transcripts."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}