{
  "openapi": "3.0.1",
  "info": {
    "title": "Add Watermark to Video: Logo, Text & Image Overlay (Bulk)",
    "description": "Add a text or logo watermark to videos from direct file URLs, in bulk. Set position, opacity, size and margin, or show it only between two times. Returns watermarked MP4 download links. Re-encodes the whole video. No YouTube or streaming sites, no watermark removal.",
    "version": "0.1",
    "x-build-id": "b4kXObZhkpykcyvs8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data-done-right~video-watermark-overlay/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data-done-right-video-watermark-overlay",
        "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-watermark-overlay/runs": {
      "post": {
        "operationId": "runs-sync-data-done-right-video-watermark-overlay",
        "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-watermark-overlay/run-sync": {
      "post": {
        "operationId": "run-sync-data-done-right-video-watermark-overlay",
        "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/clip.mp4. Every video gets the same watermark and comes back as an MP4. YouTube, Vimeo, TikTok and other streaming-site page links are rejected, with no charge.",
            "items": {
              "type": "string"
            }
          },
          "watermarkText": {
            "title": "Watermark text",
            "type": "string",
            "description": "Text to put on the video, for example \"© My Brand 2026\" or \"example.com\". Up to 200 characters, 5 lines (separate lines with \\n). Latin letters work everywhere; other scripts may not render. Ignored if you set a logo image URL."
          },
          "watermarkImageUrl": {
            "title": "Logo image URL",
            "type": "string",
            "description": "Direct link to a PNG, JPEG, WebP or single-frame GIF logo, up to 10 MB. Example: https://example.com/logo.png. Transparent PNGs keep their transparency. SVG and animated images are not supported. If set, it is used instead of the text. A bad logo stops the run before any video is processed or charged."
          },
          "position": {
            "title": "Position",
            "enum": [
              "top-left",
              "top-center",
              "top-right",
              "center-left",
              "center",
              "center-right",
              "bottom-left",
              "bottom-center",
              "bottom-right"
            ],
            "type": "string",
            "description": "Where the watermark sits in the frame.",
            "default": "bottom-right"
          },
          "opacity": {
            "title": "Opacity",
            "minimum": 0.05,
            "maximum": 1,
            "type": "number",
            "description": "0.05 (almost invisible) to 1 (solid). Multiplied with the transparency your logo already has. Example: 0.5 for a subtle mark.",
            "default": 0.7
          },
          "sizePercent": {
            "title": "Size (% of video width)",
            "minimum": 1,
            "maximum": 100,
            "type": "number",
            "description": "Width of the watermark as a percentage of the video width, keeping its shape. Example: 20 on a 1280 px wide video gives a 256 px wide mark. It is made smaller automatically if it would not fit inside the frame with its margin.",
            "default": 20
          },
          "marginPercent": {
            "title": "Margin (% of the shorter side)",
            "minimum": 0,
            "maximum": 25,
            "type": "number",
            "description": "Gap between the watermark and the frame edge, as a percentage of the shorter side of the video. Example: 3 gives about 22 px on a 1280x720 video. Ignored for centered positions along that axis.",
            "default": 3
          },
          "showFromSeconds": {
            "title": "Show from (seconds)",
            "minimum": 0,
            "type": "number",
            "description": "Start showing the watermark at this time. 0 = from the first frame. Example: 5. A video shorter than this gets an error row, free of charge.",
            "default": 0
          },
          "showUntilSeconds": {
            "title": "Show until (seconds)",
            "minimum": 0,
            "type": "number",
            "description": "Stop showing the watermark at this time. 0 = until the end of the video. Must be after 'Show from'. Example: 10.",
            "default": 0
          },
          "textColor": {
            "title": "Text color",
            "type": "string",
            "description": "Hex color of the watermark text, for example #FFFFFF (white) or #FFCC00. Only used for text watermarks.",
            "default": "#FFFFFF"
          },
          "textOutline": {
            "title": "Outline the text",
            "type": "boolean",
            "description": "Adds a thin contrasting outline (black for light text, white for dark text) so the text stays readable on any background.",
            "default": true
          },
          "crf": {
            "title": "Video quality (CRF)",
            "minimum": 16,
            "maximum": 35,
            "type": "integer",
            "description": "The whole video is re-encoded to H.264. Lower = better quality and bigger files: 18 is near-lossless, 23 is the default, 28 is small. Audio in AAC or MP3 is copied without re-encoding.",
            "default": 23
          },
          "maxVideosPerRun": {
            "title": "Max videos per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on videos in one run (and so on what you can be charged). Videos past the cap are listed as skipped, free of charge.",
            "default": 50
          },
          "maxDurationMinutes": {
            "title": "Max video duration (minutes)",
            "minimum": 0.1,
            "maximum": 120,
            "type": "number",
            "description": "Longer source videos are rejected without charge. Every video is fully re-encoded, so long videos take time and compute. Example: 5. Hard maximum 120.",
            "default": 5
          },
          "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.",
            "default": 500
          },
          "videoTimeoutSecs": {
            "title": "Timeout (seconds)",
            "minimum": 10,
            "maximum": 7200,
            "type": "integer",
            "description": "Applies separately to the download and to the encoding of each video. Example: 900.",
            "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 a run's own store expires after your plan's retention period. Example: my-watermarked-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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}