{
  "openapi": "3.0.1",
  "info": {
    "title": "Video & Podcast Transcript Extractor",
    "description": "Transcripts and subtitles from any video, podcast feed or audio file: YouTube, TikTok, Vimeo, X, Instagram and 1,000+ sites. Captions first, fast AI transcription when none, optional speaker labels and summaries.",
    "version": "0.11",
    "x-build-id": "N8erdqmKhKXq25MaK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~video-subtitle-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-video-subtitle-extractor",
        "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/khadinakbar~video-subtitle-extractor/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-video-subtitle-extractor",
        "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/khadinakbar~video-subtitle-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-video-subtitle-extractor",
        "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": [
          "videoUrls"
        ],
        "properties": {
          "videoUrls": {
            "title": "Video, audio or podcast URLs",
            "type": "array",
            "description": "Public URLs to transcribe. Works with videos on 1,000+ sites (YouTube, Vimeo, TikTok, Instagram, X/Twitter, Facebook, Twitch, Dailymotion, TED, Bilibili, SoundCloud, Reddit and more), podcast RSS feed URLs, Apple Podcasts show links and direct audio or video file links (.mp3, .m4a, .wav, .mp4 and similar). YouTube playlist and channel URLs expand into single videos (see maxVideosPerPlaylist); podcast feeds expand into episodes (see maxEpisodesPerFeed). NOT a search query: use full https:// URLs. Public URLs only, without usernames or passwords.",
            "items": {
              "type": "object"
            }
          },
          "maxVideosPerPlaylist": {
            "title": "Max videos per playlist or channel",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "For YouTube playlist (youtube.com/playlist?list=…) or channel URLs (youtube.com/@handle, /channel/…, /videos, /shorts tabs), process up to this many newest listed videos. Each video with a transcript is billed as one transcript. Defaults to 20. Set 0 to disable expansion. Single video URLs are not affected.",
            "default": 20
          },
          "preferredLanguages": {
            "title": "Preferred caption languages (priority order)",
            "type": "array",
            "description": "ISO 639-1 language codes in priority order. The first available match is returned (e.g., ['en', 'es'] picks English if present, else Spanish). Use 'auto' to accept any language. Defaults to ['en']. NOT a translation target — for translation set 'translateTo'.",
            "default": [
              "en"
            ],
            "items": {
              "type": "string"
            }
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "json",
              "srt",
              "vtt",
              "text",
              "markdown"
            ],
            "type": "string",
            "description": "Format of the transcript field in each result. 'json' returns timestamped segments (best for AI/programmatic use). 'srt' or 'vtt' returns standard subtitle file format strings. 'text' is plain unformatted text. 'markdown' is LLM-ready with timestamps as headings. Defaults to 'json'. Raw .srt/.vtt files are also saved to the key-value store regardless of this setting.",
            "default": "json"
          },
          "useWhisperFallback": {
            "title": "Use AI transcription when there are no captions",
            "type": "boolean",
            "description": "On by default. When a video or episode has no usable captions or publisher transcript, the Actor transcribes the speech with AI and charges per audio minute (see Pricing). Audio with no speech (music, silence) is not charged. Limit: 120 minutes per file (10 minutes on the Apify Free plan). Turn off to return captions only.",
            "default": true
          },
          "maxEpisodesPerFeed": {
            "title": "Max episodes per podcast feed",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many episodes to take from each podcast feed or Apple Podcasts link, newest first. Default 10.",
            "default": 10
          },
          "onlyNewEpisodes": {
            "title": "Only new episodes",
            "type": "boolean",
            "description": "Skip episodes this Actor already transcribed for you in earlier runs of the same feed. Handy for a daily or weekly schedule. Episodes are remembered only after a successful row.",
            "default": false
          },
          "episodesSince": {
            "title": "Episodes published on or after",
            "type": "string",
            "description": "Only take episodes published on or after this date (YYYY-MM-DD). Leave empty for no date filter."
          },
          "episodeTitleContains": {
            "title": "Episode title contains",
            "type": "string",
            "description": "Only take episodes whose title contains this text (not case sensitive). Leave empty for all episodes."
          },
          "usePublisherTranscripts": {
            "title": "Use the publisher transcript when one exists",
            "type": "boolean",
            "description": "Many podcasts publish a timed transcript in their feed. When one exists, use it first: it is free of AI minute charges and charged like a caption.",
            "default": true
          },
          "speakerLabels": {
            "title": "Speaker labels (who said what)",
            "type": "boolean",
            "description": "Add \"Speaker A / Speaker B\" labels to AI transcripts. Charged per audio minute on top of transcription (see Pricing). If labelling fails, you still get the plain transcript and no speaker charge.",
            "default": false
          },
          "aiSummary": {
            "title": "AI summary, key points and chapters",
            "type": "boolean",
            "description": "Add a short summary, up to 6 key points and timestamped chapters to each transcript. Charged per started audio hour (see Pricing). Not charged if the summary fails.",
            "default": false
          },
          "whisperModel": {
            "title": "AI transcription model",
            "enum": [
              "auto",
              "whisper-large-v3-turbo",
              "whisper-large-v3"
            ],
            "type": "string",
            "description": "Automatic (recommended) uses a fast Whisper Large V3 Turbo model with automatic backups if a provider is busy. Pick Whisper Large V3 to use only that model (slightly slower, sometimes better on rare languages). Same price for both.",
            "default": "auto"
          },
          "maxDurationMinutes": {
            "title": "Max video duration (minutes)",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Longest audio the AI will transcribe, in minutes. Files longer than this are skipped and not charged. Captions and publisher transcripts are still returned for longer files because they cost no AI minutes. Up to 120.",
            "default": 120
          },
          "translateTo": {
            "title": "Translate captions to (optional)",
            "type": "string",
            "description": "ISO 639-1 code to translate captions into using YouTube's auto-translation (e.g., 'es', 'fr', 'de'). Only works for YouTube videos with captions. Leave empty to keep the original language. NOT supported on Whisper fallback (Whisper detects language but does not translate).",
            "default": ""
          },
          "includeAutoCaptions": {
            "title": "Include auto-generated captions",
            "type": "boolean",
            "description": "Accept YouTube's automatic speech-recognition captions (lower quality but cover more videos). Set false to require human-uploaded captions only. Defaults to true.",
            "default": true
          },
          "perVideoTimeoutSecs": {
            "title": "Per-video time limit (seconds)",
            "minimum": 60,
            "maximum": 3600,
            "type": "integer",
            "description": "Maximum time spent on one video before it is skipped with a video_timeout note in the FAILURES record, so one slow or stuck video cannot use up the whole run. Defaults to 900 seconds. Raise it for very long Whisper transcriptions. Range 60–3600.",
            "default": 900
          },
          "includeMetadata": {
            "title": "Include video metadata",
            "type": "boolean",
            "description": "Add title, channel, channel link and thumbnail to each result. Turn off for transcript only. Views, likes, upload date, description and exact duration need the option below. Defaults to true.",
            "default": true
          },
          "includeFullMetadata": {
            "title": "Include full metadata (slower)",
            "type": "boolean",
            "description": "Also return viewCount, likeCount, uploadDate, description and exact durationSeconds. Uses the slower full extraction route, so runs take longer. Leave off for the fastest transcript-only output. Defaults to false.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional custom or Apify proxy settings. When left blank, the actor uses its managed mobile proxy. Supply your own proxy only when you need to control egress or billing.",
            "default": {
              "useApifyProxy": false
            }
          },
          "useAiTranslationFallback": {
            "title": "AI translation fallback",
            "type": "boolean",
            "description": "When an explicitly requested YouTube translation is unavailable, translate complete available captions with AI at a capped creator cost. Preserves all timings; adds no translation event fee. Disable for native-only translation. Unaffordable or unverifiable translations stop without a transcript fee.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}