{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot API — PDF & Visual Diff",
    "description": "Website screenshot API for URLs or raw HTML. Capture PNG, JPEG, WebP or PDF with full-page, element or region modes, device presets, retina, dark mode, lazy-load scrolling, cleanup, auth, locale, timezone, geo and proxy controls. Monitor hashes and pixel-change visual diffs with SSRF protection.",
    "version": "0.1",
    "x-build-id": "9bF4nmf71rxN9mH7d"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zenomastro~website-screenshot-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zenomastro-website-screenshot-pro",
        "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/zenomastro~website-screenshot-pro/runs": {
      "post": {
        "operationId": "runs-sync-zenomastro-website-screenshot-pro",
        "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/zenomastro~website-screenshot-pro/run-sync": {
      "post": {
        "operationId": "run-sync-zenomastro-website-screenshot-pro",
        "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": {
          "urls": {
            "title": "Page URLs",
            "minItems": 0,
            "maxItems": 200,
            "type": "array",
            "description": "Public HTTP/HTTPS pages to capture. Can be combined with raw htmlDocuments.",
            "default": [
              "https://example.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the entire scrollable page when no element selector is set.",
            "default": true
          },
          "elementSelector": {
            "title": "CSS element selector",
            "type": "string",
            "description": "Optional CSS selector to capture one visible element instead of the full page.",
            "default": ""
          },
          "viewportWidth": {
            "title": "Viewport width",
            "minimum": 320,
            "maximum": 3840,
            "type": "integer",
            "description": "Browser viewport width in pixels.",
            "default": 1440
          },
          "viewportHeight": {
            "title": "Viewport height",
            "minimum": 240,
            "maximum": 2160,
            "type": "integer",
            "description": "Browser viewport height in pixels.",
            "default": 900
          },
          "format": {
            "title": "Image format",
            "enum": [
              "png",
              "jpeg",
              "webp",
              "pdf"
            ],
            "type": "string",
            "description": "Screenshot output format.",
            "default": "png"
          },
          "jpegQuality": {
            "title": "JPEG quality",
            "minimum": 20,
            "maximum": 100,
            "type": "integer",
            "description": "JPEG quality from 20 to 100; ignored for PNG.",
            "default": 85
          },
          "delayMs": {
            "title": "Delay after page load",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Extra milliseconds to wait after DOMContentLoaded before capture.",
            "default": 500
          },
          "navigationTimeoutSecs": {
            "title": "Navigation timeout",
            "minimum": 10,
            "maximum": 180,
            "type": "integer",
            "description": "Maximum seconds to wait for page navigation.",
            "default": 45
          },
          "hideCookieBanners": {
            "title": "Hide common cookie banners",
            "type": "boolean",
            "description": "Apply a conservative CSS rule that hides elements whose id/class contains cookie or consent.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify or custom proxy configuration for pages that block direct cloud access.",
            "default": {
              "useApifyProxy": false
            }
          },
          "userAgent": {
            "title": "User agent",
            "type": "string",
            "description": "Browser User-Agent string.",
            "default": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/143.0.0.0 Safari/537.36"
          },
          "devicePreset": {
            "title": "Device preset",
            "enum": [
              "desktop",
              "desktop_hd",
              "desktop_retina",
              "laptop",
              "macbook_air",
              "iphone_se",
              "iphone_13",
              "iphone_15",
              "iphone_15_pro_max",
              "pixel_7",
              "pixel_8",
              "galaxy_s23",
              "ipad",
              "ipad_pro"
            ],
            "type": "string",
            "description": "Built-in viewport, DPR and mobile/touch behavior. Explicit width/height can override dimensions.",
            "default": "desktop"
          },
          "deviceScaleFactor": {
            "title": "Device pixel ratio",
            "minimum": 1,
            "maximum": 4,
            "type": "number",
            "description": "Override preset deviceScaleFactor for retina/high-DPI captures."
          },
          "colorScheme": {
            "title": "Color scheme",
            "enum": [
              "no-preference",
              "light",
              "dark"
            ],
            "type": "string",
            "description": "Emulate prefers-color-scheme.",
            "default": "no-preference"
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "domcontentloaded",
              "load",
              "networkidle"
            ],
            "type": "string",
            "description": "Navigation readiness strategy before optional delay.",
            "default": "domcontentloaded"
          },
          "waitForSelector": {
            "title": "Wait for selector",
            "type": "string",
            "description": "Optional selector that must become visible before capture.",
            "default": ""
          },
          "hideAdsAndTrackers": {
            "title": "Block common ads & trackers",
            "type": "boolean",
            "description": "Abort requests to a conservative list of common analytics/ad hosts.",
            "default": false
          },
          "hideSelectors": {
            "title": "Extra selectors to hide",
            "maxItems": 100,
            "type": "array",
            "description": "Custom CSS selectors hidden before capture.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "blockResourceTypes": {
            "title": "Block resource types",
            "type": "array",
            "description": "Optional Playwright resource types to block, e.g. font, media.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "extraHTTPHeaders": {
            "title": "Extra HTTP headers",
            "type": "object",
            "description": "Optional request headers such as Accept-Language. Do not put secrets in public run inputs.",
            "default": {}
          },
          "cookies": {
            "title": "Cookies",
            "maxItems": 100,
            "type": "array",
            "description": "Optional Playwright cookie objects for pages you are authorized to access.",
            "default": []
          },
          "captureConsole": {
            "title": "Capture console/page errors",
            "type": "boolean",
            "description": "Include bounded browser console messages and page JavaScript errors.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitoring key",
            "type": "string",
            "description": "Stable key used to compare captures across scheduled runs.",
            "default": ""
          },
          "comparePrevious": {
            "title": "Compare with previous capture",
            "type": "boolean",
            "description": "When monitorKey is set, report exact hash change and PNG pixel-change percentage against the prior capture.",
            "default": false
          },
          "pdfPageSize": {
            "title": "PDF page size",
            "enum": [
              "A4",
              "Letter",
              "Legal"
            ],
            "type": "string",
            "description": "Used only for PDF output.",
            "default": "A4"
          },
          "pdfPrintBackground": {
            "title": "PDF print backgrounds",
            "type": "boolean",
            "description": "Include CSS backgrounds in PDF.",
            "default": true
          },
          "pdfLandscape": {
            "title": "PDF landscape",
            "type": "boolean",
            "description": "Landscape PDF orientation.",
            "default": false
          },
          "webpQuality": {
            "title": "WebP quality",
            "minimum": 20,
            "maximum": 100,
            "type": "integer",
            "description": "WebP output quality from 20 to 100.",
            "default": 82
          },
          "clip": {
            "title": "Region clip",
            "type": "object",
            "description": "Optional region capture object with numeric x, y, width and height. Mutually exclusive with elementSelector and PDF.",
            "default": {}
          },
          "geolocation": {
            "title": "Geolocation",
            "type": "object",
            "description": "Optional browser geolocation object: latitude, longitude and optional accuracy.",
            "default": {}
          },
          "httpCredentials": {
            "title": "HTTP Basic credentials",
            "type": "object",
            "description": "Optional username/password for HTTP Basic authentication on pages you are authorized to access.",
            "default": {}
          },
          "locale": {
            "title": "Browser locale",
            "type": "string",
            "description": "Browser locale such as en-US, it-IT or de-DE.",
            "default": "en-US"
          },
          "timezoneId": {
            "title": "Timezone",
            "type": "string",
            "description": "Optional IANA timezone such as Europe/Rome or America/New_York.",
            "default": ""
          },
          "htmlDocuments": {
            "title": "Raw HTML documents",
            "maxItems": 100,
            "type": "array",
            "description": "Optional raw HTML objects with html, optional baseUrl and id. Useful for rendering generated HTML without hosting it.",
            "items": {
              "type": "object",
              "properties": {
                "html": {
                  "title": "HTML",
                  "type": "string",
                  "description": "Raw HTML source to render.",
                  "editor": "textarea"
                },
                "baseUrl": {
                  "title": "Base URL",
                  "type": "string",
                  "description": "Optional public HTTP/HTTPS base URL used to resolve relative resources.",
                  "editor": "textfield"
                },
                "id": {
                  "title": "Document ID",
                  "type": "string",
                  "description": "Optional stable identifier copied into output.",
                  "editor": "textfield"
                }
              },
              "required": [
                "html"
              ]
            },
            "default": []
          },
          "waitForFonts": {
            "title": "Wait for web fonts",
            "type": "boolean",
            "description": "Wait for document.fonts.ready before capture so text layout is more stable.",
            "default": true
          },
          "autoScroll": {
            "title": "Auto-scroll for lazy content",
            "type": "boolean",
            "description": "Scroll through the page before capture to trigger lazy-loaded images and sections, then return to the top.",
            "default": true
          },
          "scrollStepPx": {
            "title": "Auto-scroll step (px)",
            "minimum": 100,
            "maximum": 3000,
            "type": "integer",
            "description": "Vertical distance per lazy-load scroll step.",
            "default": 700
          },
          "scrollDelayMs": {
            "title": "Auto-scroll delay (ms)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Delay between lazy-load scroll steps.",
            "default": 80
          },
          "maxScrollSteps": {
            "title": "Maximum auto-scroll steps",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Hard cap on lazy-load scrolling for very long pages.",
            "default": 40
          },
          "hideStickyElements": {
            "title": "Hide sticky/fixed page chrome",
            "type": "boolean",
            "description": "Optionally hide wide fixed/sticky headers and footers before capture. Disabled by default to avoid changing intentional page content.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}