{
  "openapi": "3.0.1",
  "info": {
    "title": "Burn Subtitles into Video: Hardcode SRT & VTT Captions (Bulk)",
    "description": "Burn SRT, VTT or ASS subtitles into videos from direct file URLs: hardcoded captions with font, colour, outline, position and margin options, or a soft mov_text track. ffmpeg + libass, mp4 out, signed links. No YouTube, no auto-captioning. Free when a video fails.",
    "version": "0.1",
    "x-build-id": "cVxcQO7vp4Hr2STds"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data-done-right~video-subtitle-burner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data-done-right-video-subtitle-burner",
        "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/data-done-right~video-subtitle-burner/runs": {
      "post": {
        "operationId": "runs-sync-data-done-right-video-subtitle-burner",
        "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/data-done-right~video-subtitle-burner/run-sync": {
      "post": {
        "operationId": "run-sync-data-done-right-video-subtitle-burner",
        "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 URLs",
            "type": "array",
            "description": "Direct links to video files (mp4, mov, webm, mkv, avi). Example: https://example.com/talk.mp4. Every video gets the subtitles given in 'Subtitle file URL' or 'Subtitle text', unless its entry in 'Videos with their own subtitles' says otherwise. YouTube, Vimeo, TikTok and other streaming-page links are rejected, with no charge.",
            "items": {
              "type": "string"
            }
          },
          "subtitleUrl": {
            "title": "Subtitle file URL",
            "type": "string",
            "description": "Direct link to an SRT, WebVTT (.vtt) or ASS/SSA subtitle file, used for every video without its own subtitles. Example: https://example.com/talk.en.srt. Use this or 'Subtitle text', not both. Max 5 MB."
          },
          "subtitleText": {
            "title": "Subtitle text (inline SRT or VTT)",
            "type": "string",
            "description": "The subtitles pasted as SRT or WebVTT text, used for every video without its own subtitles. Example: 1, then 00:00:01,000 --> 00:00:03,000, then the line of text. Use this or 'Subtitle file URL', not both."
          },
          "videos": {
            "title": "Videos with their own subtitles",
            "type": "array",
            "description": "One subtitle file per video: [{\"url\": \"https://example.com/a.mp4\", \"subtitleUrl\": \"https://example.com/a.srt\", \"name\": \"episode-1\"}]. Instead of subtitleUrl you can give \"subtitleText\" with inline SRT. Videos listed here are added to 'Video URLs'; a video in both uses the subtitles given here."
          },
          "mode": {
            "title": "Subtitle mode",
            "enum": [
              "burn",
              "soft"
            ],
            "type": "string",
            "description": "Burn in re-encodes the video (H.264) and draws the text into the frames, so it shows in every player and platform. Soft track only adds a mov_text subtitle track to an mp4: fast and lossless, but players and platforms can hide or ignore it, and ASS styling is lost.",
            "default": "burn"
          },
          "subtitleLanguage": {
            "title": "Soft track language",
            "type": "string",
            "description": "Soft track mode only: 3-letter ISO 639-2 language code written to the subtitle track, for example eng, deu, fra, spa.",
            "default": "eng"
          },
          "crf": {
            "title": "Video quality (CRF)",
            "minimum": 16,
            "maximum": 35,
            "type": "integer",
            "description": "Burn-in re-encode quality. Lower = better quality and bigger files: 18 is near-lossless, 23 is the default, 28 is small.",
            "default": 23
          },
          "maxWidth": {
            "title": "Max width (px)",
            "minimum": 0,
            "maximum": 7680,
            "type": "integer",
            "description": "Burn-in only: shrink the video to this width, keeping the aspect ratio, before the subtitles are drawn. 0 = original size. Never upscales. Example: 1280.",
            "default": 0
          },
          "fontName": {
            "title": "Font",
            "type": "string",
            "description": "Font family for SRT and VTT subtitles. The Actor ships DejaVu Sans and Noto Sans (many scripts). A name that is not installed falls back to a default font. Example: Noto Sans.",
            "default": "DejaVu Sans"
          },
          "fontSize": {
            "title": "Font size",
            "minimum": 6,
            "maximum": 200,
            "type": "number",
            "description": "Text height in pixels on a 720-pixel-high frame; it scales with the video, so 30 looks the same on 720p and 1080p. 30 is a normal caption size, 44 is large.",
            "default": 30
          },
          "fontColor": {
            "title": "Text colour",
            "type": "string",
            "description": "Hex colour of the text. Example: #FFFF00 for yellow.",
            "default": "#FFFFFF"
          },
          "bold": {
            "title": "Bold",
            "type": "boolean",
            "description": "Draw the text in bold.",
            "default": false
          },
          "outlineWidth": {
            "title": "Outline width",
            "minimum": 0,
            "maximum": 20,
            "type": "number",
            "description": "Outline thickness around the letters, in pixels on a 720-pixel-high frame. 0 = no outline. Ignored when the background box is on.",
            "default": 2
          },
          "outlineColor": {
            "title": "Outline colour",
            "type": "string",
            "description": "Hex colour of the outline. Example: #000000 for black.",
            "default": "#000000"
          },
          "backgroundBox": {
            "title": "Background box",
            "type": "boolean",
            "description": "Draw a filled box behind the text instead of an outline. Good for busy backgrounds.",
            "default": false
          },
          "boxColor": {
            "title": "Box colour",
            "type": "string",
            "description": "Hex colour of the background box (only with the box on). Example: #000000.",
            "default": "#000000"
          },
          "boxOpacity": {
            "title": "Box opacity (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How solid the box is: 100 = opaque, 0 = invisible. Example: 60.",
            "default": 60
          },
          "position": {
            "title": "Position",
            "enum": [
              "bottom",
              "middle",
              "top"
            ],
            "type": "string",
            "description": "Where the text sits. Subtitles that carry their own position tag (for example {\\an8} in SRT) keep it.",
            "default": "bottom"
          },
          "marginBottom": {
            "title": "Edge margin",
            "minimum": 0,
            "maximum": 600,
            "type": "integer",
            "description": "Distance from the bottom edge (or the top edge when position is top), in pixels on a 720-pixel-high frame. Raise it to clear a lower third. Example: 60.",
            "default": 36
          },
          "maxVideosPerRun": {
            "title": "Max videos per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on videos processed in one run (and so on what you can be charged). Further videos are listed as skipped.",
            "default": 50
          },
          "maxVideoSizeMb": {
            "title": "Max video file size (MB)",
            "minimum": 1,
            "maximum": 2048,
            "type": "integer",
            "description": "Source files above this size are rejected before the download finishes, without charge.",
            "default": 500
          },
          "maxDurationMinutes": {
            "title": "Max video duration (minutes)",
            "minimum": 0.1,
            "type": "number",
            "description": "Longer videos are rejected without charge. Burn-in re-encodes, so long videos take real time. Example: 60 = one hour.",
            "default": 60
          },
          "videoTimeoutSecs": {
            "title": "Timeout per video (seconds)",
            "minimum": 10,
            "maximum": 7200,
            "type": "integer",
            "description": "Applies separately to the download and to the ffmpeg job of each video. Example: 900 = 15 minutes.",
            "default": 900
          },
          "outputStoreName": {
            "title": "Save videos in a named store",
            "type": "string",
            "description": "Optional key-value store name. Named stores are kept until you delete them, while the store of a run expires after your plan's retention period. Example: my-subtitled-videos."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}