{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/allscreenshots-com/json-schema/allscreenshots-com-screenshot-request-schema.json",
  "title": "ScreenshotRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/allscreenshots-com-openapi.json#/components/schemas/ScreenshotRequest",
  "type": "object",
  "required": [
    "url"
  ],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The URL to capture."
    },
    "fullPage": {
      "type": "boolean",
      "default": true
    },
    "viewport": {
      "type": "object",
      "properties": {
        "width": {
          "type": "integer",
          "default": 1280
        },
        "height": {
          "type": "integer",
          "default": 800
        }
      }
    },
    "format": {
      "type": "string",
      "enum": [
        "png",
        "jpeg",
        "webp",
        "pdf"
      ],
      "default": "webp"
    },
    "responseType": {
      "type": "string",
      "enum": [
        "binary",
        "base64",
        "url"
      ],
      "default": "binary"
    },
    "blockAds": {
      "type": "boolean"
    },
    "blockCookieBanners": {
      "type": "boolean"
    },
    "darkMode": {
      "type": "boolean"
    },
    "stealth": {
      "type": "boolean"
    },
    "delay": {
      "type": "integer",
      "description": "Additional wait time before capture in milliseconds."
    },
    "waitForSelector": {
      "type": "string",
      "description": "CSS selector to wait for before capture."
    }
  }
}