{
  "openapi": "3.0.1",
  "info": {
    "title": "Add Watermark to Video & Images – Logo or Text, Bulk",
    "description": "Add a watermark to videos and images in bulk from URLs: text or PNG logo, 9 positions or tiled pattern, opacity, size, margin. JPG/PNG/WebP and MP4 output with download links. No API key. $1.50 per 1,000 images, $0.03 per video minute.",
    "version": "0.1",
    "x-build-id": "EvOecNdeMgYKmUBpy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~watermark-adder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-watermark-adder",
        "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/gazidev~watermark-adder/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-watermark-adder",
        "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/gazidev~watermark-adder/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-watermark-adder",
        "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": {
          "imageUrls": {
            "title": "Image URLs",
            "type": "array",
            "description": "Direct links to JPG, PNG, WebP, HEIC/HEIF, AVIF, GIF (first frame), BMP or TIFF files. Video links pasted here are moved to videos automatically.",
            "default": [
              "https://raw.githubusercontent.com/ianare/exif-samples/master/jpg/gps/DSCN0010.jpg"
            ],
            "items": {
              "type": "string"
            }
          },
          "videoUrls": {
            "title": "Video URLs",
            "type": "array",
            "description": "Direct links to MP4, MOV, WebM, MKV, AVI… files (your CDN, S3/R2/GCS bucket, Dropbox direct link). Output is MP4 (H.264 + AAC). YouTube/TikTok/Instagram pages are refused - this Actor edits files you own, it is not a downloader.",
            "default": [
              "https://download.samplelib.com/mp4/sample-5s.mp4"
            ],
            "items": {
              "type": "string"
            }
          },
          "bulkText": {
            "title": "Bulk list (paste text or CSV)",
            "type": "string",
            "description": "One URL per line or a CSV with a `url` column. Videos are recognised by their file extension (.mp4, .mov, .webm…), everything else is treated as an image."
          },
          "datasetId": {
            "title": "Read URLs from an Apify dataset (ID or name)",
            "type": "string",
            "description": "Chain after a scraper or our Image Downloader. Sorted into images/videos by file extension."
          },
          "datasetField": {
            "title": "Dataset field with the URL",
            "type": "string",
            "description": "Arrays of URLs are accepted too.",
            "default": "url"
          },
          "watermarkText": {
            "title": "Watermark text",
            "type": "string",
            "description": "E.g. `© 2026 Your Brand`, `yourshop.com`, `CONFIDENTIAL`. Any language (Unicode font). Ignored when a logo URL is set.",
            "default": "© Your Brand"
          },
          "logoUrl": {
            "title": "Logo URL (optional, replaces the text)",
            "type": "string",
            "description": "Direct link to your logo: PNG with a transparent background works best (WebP/JPG also OK). Transparent borders are trimmed automatically."
          },
          "position": {
            "title": "Position",
            "enum": [
              "bottom-right",
              "bottom-left",
              "bottom-center",
              "top-right",
              "top-left",
              "top-center",
              "center",
              "center-left",
              "center-right",
              "tiled"
            ],
            "type": "string",
            "description": "Where the watermark goes. `Tiled` repeats it diagonally over the whole picture - hardest to crop out.",
            "default": "bottom-right"
          },
          "opacity": {
            "title": "Opacity (%)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "100 = solid, 30–50 = subtle. For tiled patterns 25–40 looks best.",
            "default": 70
          },
          "size": {
            "title": "Size (% of the width)",
            "minimum": 2,
            "maximum": 100,
            "type": "number",
            "description": "Watermark width as a percentage of each image/video width, so it looks the same on small and large files. Height is capped (18% of the height for text, 50% for logos).",
            "default": 25
          },
          "margin": {
            "title": "Margin from the edge (%)",
            "minimum": 0,
            "maximum": 40,
            "type": "number",
            "description": "Distance from the edges as % of the shorter side.",
            "default": 3
          },
          "textColor": {
            "title": "Text color",
            "type": "string",
            "description": "Hex color, e.g. `#FFFFFF` (white) or `#000000`.",
            "default": "#FFFFFF"
          },
          "boldText": {
            "title": "Bold text",
            "type": "boolean",
            "description": "Bold font (DejaVu Sans Bold).",
            "default": true
          },
          "textOutline": {
            "title": "Text outline",
            "type": "boolean",
            "description": "Thin contrasting outline so the text stays readable on light and dark areas.",
            "default": true
          },
          "textBackground": {
            "title": "Box behind the text",
            "type": "boolean",
            "description": "Semi-transparent rounded box behind the text.",
            "default": false
          },
          "textBackgroundColor": {
            "title": "Box color",
            "type": "string",
            "description": "Hex color of the box.",
            "default": "#000000"
          },
          "tileAngle": {
            "title": "Tile angle (degrees)",
            "minimum": -90,
            "maximum": 90,
            "type": "integer",
            "description": "Rotation of the tiled pattern (position `tiled` only). 0 = horizontal rows.",
            "default": 30
          },
          "imageFormat": {
            "title": "Image output format",
            "enum": [
              "same",
              "jpg",
              "png",
              "webp"
            ],
            "type": "string",
            "description": "Transparent images stay transparent in PNG/WebP.",
            "default": "same"
          },
          "imageQuality": {
            "title": "Image quality (JPG/WebP)",
            "minimum": 30,
            "maximum": 100,
            "type": "integer",
            "description": "90 is visually lossless for most photos.",
            "default": 90
          },
          "maxResolution": {
            "title": "Video max resolution",
            "enum": [
              "original",
              "2160",
              "1440",
              "1080",
              "720",
              "480"
            ],
            "type": "string",
            "description": "Downscale videos so the short side is at most this (never upscales). Billing depends on the OUTPUT resolution: ≤720p 1 unit, 1080p 2 units, above 1080p 8 units per minute.",
            "default": "1080"
          },
          "videoQuality": {
            "title": "Video quality",
            "enum": [
              "small",
              "balanced",
              "high"
            ],
            "type": "string",
            "description": "H.264 quality. The watermark is burned in, so the video is always re-encoded; audio is copied when it is already AAC.",
            "default": "balanced"
          },
          "maxFileSizeMb": {
            "title": "Max input file size (MB)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Larger files are skipped with an error row (not charged). Images are limited to 100 MB.",
            "default": 500
          },
          "maxDurationMinutes": {
            "title": "Max video length (minutes)",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Cost cap: longer videos are skipped (not charged).",
            "default": 30
          },
          "maxConcurrency": {
            "title": "Images in parallel",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Downloads in parallel; videos are processed one at a time (ffmpeg already uses every CPU core).",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Only for hosts that block datacenter IPs (HTTP 403).",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}