{
  "openapi": "3.0.1",
  "info": {
    "title": "Video & Audio Transcriber",
    "description": "Transcribe YouTube videos, audio and video files and podcast episodes to text with timestamps, SRT and VTT. One row per file: transcript, language, duration, what it cost. Charged per audio minute; YouTube captions cheaper; refused files and silent audio free. No API key, no account.",
    "version": "0.0",
    "x-build-id": "03Heewmyt1QvXiqPs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lightmoon~video-audio-transcriber/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lightmoon-video-audio-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/lightmoon~video-audio-transcriber/runs": {
      "post": {
        "operationId": "runs-sync-lightmoon-video-audio-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/lightmoon~video-audio-transcriber/run-sync": {
      "post": {
        "operationId": "run-sync-lightmoon-video-audio-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": "Links to transcribe",
            "type": "array",
            "description": "One per line. A YouTube video link (`youtube.com/watch?v=…`, `youtu.be/…`, Shorts), or a direct link to an audio or video file (mp3, m4a, mp4, wav, webm, mov, ogg, flac…) on any host — a podcast episode's file, a Dropbox or S3 link, a recording on your own site. A link that opens a web page instead of a file is refused for free. Channel and playlist links are not accepted: paste the videos.",
            "items": {
              "type": "string"
            }
          },
          "feedUrls": {
            "title": "Podcast feeds",
            "type": "array",
            "description": "RSS or Atom feed addresses, one per line. The newest episodes of each feed are transcribed, as many as *Episodes per feed* allows. A feed we cannot read is refused for free.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "episodesPerFeed": {
            "title": "Episodes per feed",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Newest first. Each episode counts against *Maximum items* and is charged like any other file.",
            "default": 5
          },
          "model": {
            "title": "Speech model",
            "enum": [
              "base",
              "small",
              "tiny"
            ],
            "type": "string",
            "description": "`base` is the default: accurate on clear speech in most languages. `small` is the one for accents, noise and technical vocabulary — about 3× slower per minute. `tiny` is fastest and draft quality. All three are built into the Actor; nothing downloads at run time.",
            "default": "base"
          },
          "language": {
            "title": "Language",
            "enum": [
              "auto",
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "nl",
              "pl",
              "ru",
              "uk",
              "tr",
              "ar",
              "hi",
              "ja",
              "ko",
              "zh",
              "id",
              "vi",
              "sv",
              "da",
              "no",
              "fi",
              "cs",
              "el",
              "he",
              "hu",
              "ro"
            ],
            "type": "string",
            "description": "Leave on *Detect* to let the model decide from the first 30 seconds. Set it when you know the language — detection costs a moment and can be wrong on music intros.",
            "default": "auto"
          },
          "translateToEnglish": {
            "title": "Translate to English",
            "type": "boolean",
            "description": "Transcribe any language and return English text instead of the original. Same price.",
            "default": false
          },
          "youtubeCaptions": {
            "title": "YouTube captions",
            "enum": [
              "manual",
              "any",
              "never"
            ],
            "type": "string",
            "description": "When a YouTube video already carries captions, use them instead of running the model: exact wording, instant, and charged at the lower *caption minute* rate. *Published by the channel* uses only captions a human uploaded. *Any* also accepts YouTube's automatic captions. *Never* always runs the model.",
            "default": "manual"
          },
          "includeSegments": {
            "title": "Include timestamped segments",
            "type": "boolean",
            "description": "Adds a `segments` list to each row: start, end and text for every phrase. Switch off for a lighter table with the plain text only.",
            "default": true
          },
          "includeSubtitles": {
            "title": "Include SRT and VTT",
            "type": "boolean",
            "description": "Adds ready-made `srt` and `vtt` subtitle text to each row.",
            "default": false
          },
          "maxMinutesPerItem": {
            "title": "Maximum minutes per file",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "A file longer than this is transcribed up to the limit, marked `truncated`, and charged only for the minutes transcribed. A guard against a three-hour stream you did not mean to pay for.",
            "default": 180
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Files and episodes in total, in the order given. The run stops here even if the list is longer.",
            "default": 50
          },
          "includeFailedItems": {
            "title": "Keep refused items as rows",
            "type": "boolean",
            "description": "A link that could not be fetched or read comes back as a row with `status: refused` and the reason, so you see what did not work. Such rows are never charged.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}