{
  "openapi": "3.0.1",
  "info": {
    "title": "Blur Faces in Photos – Bulk Image Anonymizer for GDPR",
    "description": "Blur or pixelate every face in your images in bulk before you publish them: real-estate photos, street scenes, event galleries and datasets. Faces are found on CPU with the open YuNet detector. Blur, pixelate or solid box; JPG, PNG or WebP with public links. No API key. $2 per 1,000 images.",
    "version": "0.1",
    "x-build-id": "v7V9fZlWbn77GP23X"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~image-anonymizer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-image-anonymizer",
        "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~image-anonymizer/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-image-anonymizer",
        "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~image-anonymizer/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-image-anonymizer",
        "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, TIFF, BMP or AVIF photos. Duplicates are removed; invalid values and failed downloads are reported for free. Only public internet addresses are fetched.",
            "items": {
              "type": "string"
            }
          },
          "bulkText": {
            "title": "Bulk list (paste text or CSV)",
            "type": "string",
            "description": "One URL per line, or a CSV with a `url` / `image` column."
          },
          "sourceFileUrl": {
            "title": "Load URLs from a file (URL)",
            "type": "string",
            "description": "Public .txt or .csv link (Google Sheets 'Publish to web → CSV' works)."
          },
          "datasetId": {
            "title": "Read URLs from an Apify dataset",
            "type": "string",
            "description": "Chain after a scraper that collects photo URLs (listings, galleries, street-level images)."
          },
          "datasetField": {
            "title": "Dataset field with the image URL",
            "type": "string",
            "description": "Arrays of URLs are accepted too.",
            "default": "url"
          },
          "mode": {
            "title": "How to hide faces",
            "enum": [
              "blur",
              "pixelate",
              "box"
            ],
            "type": "string",
            "description": "Blur looks natural; pixelate is the classic news look; a solid box is the safest for strict redaction.",
            "default": "blur"
          },
          "strength": {
            "title": "Strength (1–100)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Blur radius and pixel block size relative to each face. 25 makes faces unrecognisable; raise it for large, sharp faces. Ignored for 'Solid box'.",
            "default": 25
          },
          "marginPct": {
            "title": "Extra margin around each face (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Grows each detected box so hair, ears and chin are covered too (a bit more on top).",
            "default": 20
          },
          "shape": {
            "title": "Shape",
            "enum": [
              "rect",
              "ellipse"
            ],
            "type": "string",
            "description": "Rectangle covers more; an oval looks softer.",
            "default": "rect"
          },
          "boxColor": {
            "title": "Box colour (solid box mode)",
            "type": "string",
            "description": "Hex colour, e.g. #000000 or #ffffff.",
            "default": "#000000"
          },
          "minFacePx": {
            "title": "Smallest face to hide (px)",
            "minimum": 4,
            "maximum": 2000,
            "type": "integer",
            "description": "Faces narrower than this are ignored. Very small, blurry or strongly turned faces (profiles, backs of heads) can be missed by any detector: check the results for sensitive publications.",
            "default": 12
          },
          "confidencePct": {
            "title": "Detection confidence (%)",
            "minimum": 30,
            "maximum": 95,
            "type": "integer",
            "description": "Lower it (e.g. 45) to catch more faces at the cost of some false boxes on face-like objects; raise it for fewer false boxes.",
            "default": 60
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "same",
              "jpg",
              "png",
              "webp"
            ],
            "type": "string",
            "description": "HEIC, TIFF, BMP and AVIF become JPG (PNG when transparent).",
            "default": "same"
          },
          "quality": {
            "title": "JPG/WebP quality",
            "minimum": 30,
            "maximum": 100,
            "type": "integer",
            "description": "Encoder quality for JPG and WebP output.",
            "default": 90
          },
          "keepMetadata": {
            "title": "Keep EXIF metadata",
            "type": "boolean",
            "description": "Off (default) strips EXIF, including GPS location, camera serial and timestamps: usually what you want when anonymising. The colour profile is kept.",
            "default": false
          },
          "maxImages": {
            "title": "Max images",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many images. 0 = no limit.",
            "default": 100
          },
          "maxFileSizeMb": {
            "title": "Max download size per file (MB)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Larger files are skipped for free.",
            "default": 30
          },
          "maxMegapixels": {
            "title": "Max image size (megapixels)",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Larger images are skipped for free. The Actor also caps this at about 24 MP per 1 GB of memory (24 MP at the default 1024 MB): raise memory for very large photos.",
            "default": 60
          },
          "maxConcurrency": {
            "title": "Parallel downloads",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Lower it for slow or rate-limited hosts.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Only needed if an image host blocks datacenter IPs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}