{
  "openapi": "3.0.1",
  "info": {
    "title": "Podcast & Media Intelligence",
    "description": "Turn podcasts and recordings into speaker-separated transcripts, subtitles, summaries, chapters, and show notes. Gemini 3.5 Transcribe, 85+ languages, RSS schedules with dedup. Up to 30 min/source. PPE from $0.025/min + usage.",
    "version": "0.1",
    "x-build-id": "FHaE13apxwM3WtdH5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kondasviktor~podcast-media-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kondasviktor-podcast-media-intelligence",
        "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/kondasviktor~podcast-media-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-kondasviktor-podcast-media-intelligence",
        "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/kondasviktor~podcast-media-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-kondasviktor-podcast-media-intelligence",
        "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": {
          "mediaUrl": {
            "title": "Media URL",
            "type": "string",
            "description": "Direct URL to MP3, M4A, WAV, MP4, WebM, or OGG. Provide mediaUrl OR rssUrl, not both."
          },
          "rssUrl": {
            "title": "Podcast RSS URL",
            "type": "string",
            "description": "Podcast feed URL. Use with episodeMode and skipPreviouslyProcessed for scheduled workflows."
          },
          "episodeMode": {
            "title": "RSS episode selection",
            "enum": [
              "latest",
              "latest_n",
              "all_after_date",
              "matching_title"
            ],
            "type": "string",
            "description": "Which episodes to process from the RSS feed: latest one, latest N, all after a date, or title match.",
            "default": "latest"
          },
          "episodeLimit": {
            "title": "Maximum episodes (RSS)",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "How many episodes to process when episodeMode is latest_n (max 25).",
            "default": 1
          },
          "skipPreviouslyProcessed": {
            "title": "Skip already processed episodes (RSS)",
            "type": "boolean",
            "description": "Requires stateKey. Use with Apify schedules for recurring podcast automation.",
            "default": false
          },
          "stateKey": {
            "title": "Dedup state store name",
            "type": "string",
            "description": "Named key-value store for processed episode GUIDs."
          },
          "previewMinutes": {
            "title": "Preview minutes",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Transcribe only the first N minutes. Skips content-package charge. Good for trials."
          },
          "language": {
            "title": "Spoken language",
            "enum": [
              "auto",
              "en",
              "en-US",
              "en-GB",
              "de",
              "de-DE",
              "de-AT",
              "de-CH",
              "hu",
              "hu-HU",
              "pl",
              "pl-PL",
              "cs",
              "cs-CZ",
              "sk",
              "sk-SK",
              "ro",
              "ro-RO",
              "hr",
              "sl",
              "sr",
              "bg",
              "uk",
              "ru",
              "fr",
              "fr-FR",
              "es",
              "es-ES",
              "es-MX",
              "it",
              "pt",
              "pt-BR",
              "pt-PT",
              "nl",
              "nl-NL",
              "sv",
              "da",
              "fi",
              "nb",
              "el",
              "tr",
              "ar",
              "he",
              "hi",
              "ja",
              "ko",
              "zh",
              "zh-CN",
              "zh-TW",
              "vi",
              "th",
              "id",
              "ms"
            ],
            "type": "string",
            "description": "Use Auto-detect when unsure. Select a specific language (e.g. German) when you know the audio language — this improves accuracy vs mis-detection at the start. Gemini supports 85+ languages; any BCP-47 code works via API.",
            "default": "auto"
          },
          "targetLanguage": {
            "title": "Output language for enrichment",
            "type": "string",
            "description": "Use 'same' to match transcript language, or ISO code e.g. en for English show notes from Hungarian audio.",
            "default": "same"
          },
          "transcriptionMode": {
            "title": "Transcription mode",
            "enum": [
              "smart",
              "verbatim"
            ],
            "type": "string",
            "description": "smart removes fillers; verbatim keeps spoken wording including disfluencies.",
            "default": "smart"
          },
          "diarization": {
            "title": "Speaker diarization",
            "type": "boolean",
            "description": "Label speakers as speaker_1, speaker_2, etc.",
            "default": true
          },
          "timestamps": {
            "title": "Timestamps",
            "enum": [
              "none",
              "segment",
              "word"
            ],
            "type": "string",
            "description": "none, segment-level, or word-level timestamps in the transcript JSON.",
            "default": "segment"
          },
          "customVocabulary": {
            "title": "Custom vocabulary",
            "type": "array",
            "description": "Product names, people, acronyms (max 1000).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "contentPackage": {
            "title": "Content intelligence package",
            "type": "boolean",
            "description": "Summary, chapters, topics, entities, quotes, show notes ($0.99/episode).",
            "default": true
          },
          "outputs": {
            "title": "Extra outputs",
            "type": "array",
            "description": "SRT/VTT saved to key-value store.",
            "items": {
              "type": "string",
              "enum": [
                "srt",
                "vtt"
              ]
            },
            "default": [
              "srt",
              "vtt"
            ]
          },
          "maxDurationMinutes": {
            "title": "Max duration per source (minutes)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Hard cap per source in v1 (max 30 minutes).",
            "default": 30
          },
          "maxCostUsd": {
            "title": "Max estimated cost (USD)",
            "type": "number",
            "description": "Abort before transcribing if estimate exceeds this cap."
          },
          "concurrency": {
            "title": "RSS concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many RSS episodes to process in parallel (1–5).",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}