{
  "openapi": "3.0.1",
  "info": {
    "title": "Speaker Diarization & Transcription — Who Spoke When, SRT",
    "description": "Speaker diarization with transcription for any audio or video file link or podcast: who spoke when and who said what, speaker labels (Speaker 1, Speaker 2…) on every segment, talk time per speaker, SRT/VTT with speaker names. Whisper inside, 99 languages. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "pm0YJT3ukjv8TUiQd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~speaker-diarization-transcriber/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-speaker-diarization-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/steadyscrape~speaker-diarization-transcriber/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-speaker-diarization-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/steadyscrape~speaker-diarization-transcriber/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-speaker-diarization-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": {
          "mediaUrls": {
            "title": "Audio or video file links",
            "maxItems": 1000,
            "type": "array",
            "description": "Direct links to files: interviews, podcasts, meetings, calls, webinars. mp3, m4a, wav, flac, ogg, opus, aac, mp4, mov, webm, mkv and anything else FFmpeg decodes. Google Drive and Dropbox share links (shared with anyone with the link) are read as their file, a podcast feed or an Apple Podcasts link as podcasts. A link that opens a web page (YouTube, a share page) is not a file and comes back as a free row that says so. startUrls, urls, audioUrls and media_urls sent by API are read the same way.",
            "items": {
              "type": "string"
            }
          },
          "podcastFeeds": {
            "title": "Podcast feeds",
            "type": "array",
            "description": "RSS or Atom feed links, or Apple Podcasts links: a show (https://podcasts.apple.com/…/id123456789) is resolved to its public feed and its newest episodes are processed; an episode link (…?i=1000…) gives that episode.",
            "items": {
              "type": "string"
            }
          },
          "maxEpisodesPerFeed": {
            "title": "Episodes per feed",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many of the newest episodes of each feed to process.",
            "default": 1
          },
          "mode": {
            "title": "Output",
            "enum": [
              "transcript",
              "speakers"
            ],
            "type": "string",
            "description": "Transcript with speakers: who said what, every segment labelled Speaker 1, Speaker 2… Speakers only: who spoke when (turns and talk time per speaker), without a transcript, at a lower price.",
            "default": "transcript"
          },
          "quality": {
            "title": "Transcript quality",
            "enum": [
              "fast",
              "balanced",
              "best"
            ],
            "type": "string",
            "description": "fast: Whisper base, fine for clear speech. balanced: Whisper small, good in most languages. best: Whisper large-v3-turbo, the most accurate, for accents, noise and proper names. Each is charged at its own price per audio minute. Not used in speakers-only mode.",
            "default": "balanced"
          },
          "numberOfSpeakers": {
            "title": "Number of speakers",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "0 counts them. When you know it (an interview with 2 people, a panel of 4), give it: voices are merged or kept apart until there are exactly that many. numSpeakers and expectedSpeakers sent by API are read the same way.",
            "default": 0
          },
          "speakerNames": {
            "title": "Speaker names",
            "maxItems": 20,
            "type": "array",
            "description": "Names in the order the speakers first speak (\"Host\", \"Guest\"…). They replace Speaker 1, Speaker 2… in the segments, the dialogue and the subtitles; speakers without a name keep their number.",
            "items": {
              "type": "string",
              "maxLength": 60
            }
          },
          "language": {
            "title": "Language",
            "pattern": "^\\s*(([aA][uU][tT][oO]|[hH][aA][wW]|[yY][uU][eE]|[aA][fF]|[aA][mM]|[aA][rR]|[aA][sS]|[aA][zZ]|[bB][aA]|[bB][eE]|[bB][gG]|[bB][nN]|[bB][oO]|[bB][rR]|[bB][sS]|[cC][aA]|[cC][sS]|[cC][yY]|[dD][aA]|[dD][eE]|[eE][lL]|[eE][nN]|[eE][sS]|[eE][tT]|[eE][uU]|[fF][aA]|[fF][iI]|[fF][oO]|[fF][rR]|[gG][lL]|[gG][uU]|[hH][aA]|[hH][eE]|[hH][iI]|[hH][rR]|[hH][tT]|[hH][uU]|[hH][yY]|[iI][dD]|[iI][nN]|[iI][sS]|[iI][tT]|[iI][wW]|[jJ][aA]|[jJ][iI]|[jJ][vV]|[jJ][wW]|[kK][aA]|[kK][kK]|[kK][mM]|[kK][nN]|[kK][oO]|[lL][aA]|[lL][bB]|[lL][nN]|[lL][oO]|[lL][tT]|[lL][vV]|[mM][gG]|[mM][iI]|[mM][kK]|[mM][lL]|[mM][nN]|[mM][rR]|[mM][sS]|[mM][tT]|[mM][yY]|[nN][bB]|[nN][eE]|[nN][lL]|[nN][nN]|[nN][oO]|[oO][cC]|[pP][aA]|[pP][lL]|[pP][sS]|[pP][tT]|[rR][oO]|[rR][uU]|[sS][aA]|[sS][dD]|[sS][iI]|[sS][kK]|[sS][lL]|[sS][nN]|[sS][oO]|[sS][qQ]|[sS][rR]|[sS][uU]|[sS][vV]|[sS][wW]|[tT][aA]|[tT][eE]|[tT][gG]|[tT][hH]|[tT][kK]|[tT][lL]|[tT][rR]|[tT][tT]|[uU][kK]|[uU][rR]|[uU][zZ]|[vV][iI]|[yY][iI]|[yY][oO]|[zZ][hH])([-_][A-Za-z0-9]{1,8})*)?\\s*$",
            "type": "string",
            "description": "\"auto\" detects it. Give a code (en, es, de, fr, pt, it, nl, ja, zh, ar, hi, ru… any of Whisper's 99) when you know it: it avoids a wrong guess on files that open with music or another language. Speaker detection works in any language.",
            "default": "auto"
          },
          "translateToEnglish": {
            "title": "Translate to English",
            "type": "boolean",
            "description": "Whisper writes the transcript in English instead of the spoken language, in the same pass. Not available with quality \"best\".",
            "default": false
          },
          "wordTimestamps": {
            "title": "Word timestamps",
            "type": "boolean",
            "description": "Start, end and confidence of every word, inside each segment.",
            "default": false
          },
          "includeSubtitles": {
            "title": "Include SRT and WebVTT",
            "type": "boolean",
            "description": "Each row carries subtitles with the speaker in every cue (\"Speaker 1: …\" in SRT, a <v Speaker 1> voice span in WebVTT), ready to save as .srt and .vtt.",
            "default": true
          },
          "maxMinutesPerFile": {
            "title": "Minutes per file",
            "minimum": 0,
            "type": "integer",
            "description": "Reads only the first minutes of each file; 0 reads the whole file. The example reads the first 2 minutes of an hour-long interview: set 0 for whole files.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}