{
  "openapi": "3.0.1",
  "info": {
    "title": "Audio & Podcast RSS Transcriber — Whisper JSON, SRT & RAG",
    "description": "Transcribe public audio/video URLs, voice notes, meetings, and Podcast RSS feeds locally with Whisper INT8 into timestamped JSON, SRT/VTT captions, Markdown, and RAG chunks.",
    "version": "1.0",
    "x-build-id": "g1CP7box9oRP01Ay1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/structmint~audio-podcast-transcriber/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-structmint-audio-podcast-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/structmint~audio-podcast-transcriber/runs": {
      "post": {
        "operationId": "runs-sync-structmint-audio-podcast-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/structmint~audio-podcast-transcriber/run-sync": {
      "post": {
        "operationId": "run-sync-structmint-audio-podcast-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": "Direct Audio / Video URLs",
            "type": "array",
            "description": "List of public HTTP/HTTPS URLs pointing directly to audio or video files (MP3, MP4, WAV, M4A, OGG/Opus voice notes, WebM, FLAC, AAC) such as podcasts, meetings, webinars, or voice memos. Private, loopback, and metadata IP addresses are blocked across initial requests and redirects.",
            "items": {
              "type": "string"
            }
          },
          "rssFeedUrls": {
            "title": "Podcast RSS / Atom Feed URLs",
            "type": "array",
            "description": "Optional list of public Podcast RSS 2.0 or Atom feed URLs. The Actor extracts episode metadata and audio enclosures, sorts episodes newest-first, and transcribes up to `maxEpisodesPerFeed` episodes per feed. Combine with `watchMode=true` and `onlyNew=true` for zero-duplicate scheduled monitoring.",
            "items": {
              "type": "string"
            }
          },
          "maxEpisodesPerFeed": {
            "title": "Max Episodes Per Podcast Feed",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of newest episodes to process from each RSS or Atom feed URL (1 to 50).",
            "default": 5
          },
          "modelSize": {
            "title": "Whisper Model Size",
            "enum": [
              "tiny",
              "base",
              "small"
            ],
            "type": "string",
            "description": "Local CTranslate2 INT8 Whisper model used for transcription. `tiny` and `base` are pre-baked into the container image for instant startup (<2s) and billed at the standard `audio-minute-transcribed` rate. `small` provides higher multilingual accuracy and is billed at the `audio-minute-hq` rate.",
            "default": "base"
          },
          "language": {
            "title": "Spoken Language (ISO-639-1, Optional)",
            "type": "string",
            "description": "Optional two-letter ISO-639-1 language code (e.g. `en`, `es`, `de`, `fr`, `pt`, `ja`, `vi`). Leave empty for automatic language detection.",
            "default": ""
          },
          "initialPrompt": {
            "title": "Vocabulary / Domain Prompt (Optional)",
            "type": "string",
            "description": "Optional hints listing brand names, speaker names, acronyms, or domain terminology to guide Whisper spelling and punctuation (for example: `StructMint, CTranslate2, WebVTT, PostgreSQL`).",
            "default": ""
          },
          "includeSrt": {
            "title": "Include SRT Captions",
            "type": "boolean",
            "description": "Include formatted SubRip (`.srt`) subtitle text directly in each dataset output item.",
            "default": true
          },
          "includeVtt": {
            "title": "Include WebVTT Captions",
            "type": "boolean",
            "description": "Include formatted WebVTT (`.vtt`) subtitle text directly in each dataset output item.",
            "default": true
          },
          "includeMarkdown": {
            "title": "Include Timestamped Markdown",
            "type": "boolean",
            "description": "Include clean paragraph-grouped Markdown with `[MM:SS]` timestamp headings suitable for docs, summaries, and knowledge bases.",
            "default": true
          },
          "includeRagChunks": {
            "title": "Include Token-Bounded RAG Chunks",
            "type": "boolean",
            "description": "Split each transcript into overlapping, token-bounded chunks (`chunkIndex`, `startSec`, `endSec`, `estimatedTokens`, `text`, `sourceUrl`, `title`) ready for vector databases and AI agent pipelines. Enables the `rag-pack-generated` add-on event per transcribed file.",
            "default": true
          },
          "ragMaxTokens": {
            "title": "Target Max Tokens Per RAG Chunk",
            "minimum": 50,
            "maximum": 2000,
            "type": "integer",
            "description": "Soft estimated token ceiling per generated RAG chunk (50 to 2000) when `includeRagChunks` is enabled.",
            "default": 300
          },
          "saveFilesToKvs": {
            "title": "Save .srt / .vtt / .md Files to Key-Value Store",
            "type": "boolean",
            "description": "Persist downloadable `.srt`, `.vtt`, and `.md` files into the run's default Key-Value Store and expose direct keys/URLs in `kvsArtifacts`. Enables the `rag-pack-generated` add-on event per transcribed file.",
            "default": true
          },
          "watchMode": {
            "title": "Enable Watch Mode (Episode Deduplication)",
            "type": "boolean",
            "description": "Persist processed episode GUIDs, canonical URLs, and SHA-256 content fingerprints in a user-scoped Named Key-Value Store (`structmint-audio-watch-v1`) across scheduled runs.",
            "default": false
          },
          "onlyNew": {
            "title": "Skip Already-Transcribed Items in Watch Mode",
            "type": "boolean",
            "description": "Used when `watchMode=true`. Skips episodes and audio files already recorded in watch history at $0 transcription cost and emits no duplicate dataset items.",
            "default": true
          },
          "watchStateKey": {
            "title": "Watch State Key",
            "type": "string",
            "description": "Stable namespace key isolating processed episode history for a specific scheduled feed or workflow (for example: `daily-podcast-briefings`).",
            "default": "default-audio-watch"
          },
          "maxFileSizeMb": {
            "title": "Max File Size (MB)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum allowed remote download size per audio or video file in megabytes (1 to 500). Oversized files are rejected safely at $0 transcription cost.",
            "default": 150
          },
          "maxDurationMinutes": {
            "title": "Max Audio Duration (Minutes)",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "Maximum allowed audio length per file in minutes (1 to 180). Files exceeding this duration are rejected safely before decoding at $0 transcription cost. On free-tier accounts using the `small` model, duration is automatically capped at 10 minutes per file.",
            "default": 60
          },
          "vadFilter": {
            "title": "Enable Silero VAD Silence Filter",
            "type": "boolean",
            "description": "Apply Silero Voice Activity Detection to remove non-speech silence before decoding, preventing Whisper repetition hallucinations and speeding up CPU transcription.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}