{
  "openapi": "3.0.1",
  "info": {
    "title": "SiteVerdict — Website Screenshot & PDF Renderer",
    "description": "Full-page PNG/JPEG screenshots and print-ready PDFs of any public URL. Desktop, tablet and mobile presets, dark mode, wait-for-selector, lazy-load scroll, cookie banners rejected via the site's own button, visual change alerts. SSRF guard on all browser traffic.",
    "version": "1.1",
    "x-build-id": "maiTSWGdjde8AV1X2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/siteverdict~siteverdict-screenshot-pdf-render/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-siteverdict-siteverdict-screenshot-pdf-render",
        "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/siteverdict~siteverdict-screenshot-pdf-render/runs": {
      "post": {
        "operationId": "runs-sync-siteverdict-siteverdict-screenshot-pdf-render",
        "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/siteverdict~siteverdict-screenshot-pdf-render/run-sync": {
      "post": {
        "operationId": "run-sync-siteverdict-siteverdict-screenshot-pdf-render",
        "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": "URLs",
            "type": "array",
            "description": "Public pages to capture.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "formats": {
            "title": "Output formats",
            "type": "array",
            "description": "Any combination of png, jpeg and pdf. Each file is charged separately.",
            "items": {
              "type": "string",
              "enum": [
                "png",
                "jpeg",
                "pdf"
              ],
              "enumTitles": [
                "PNG screenshot",
                "JPEG screenshot",
                "PDF (print)"
              ]
            },
            "default": [
              "png"
            ]
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop-1920",
              "desktop-1440",
              "laptop-1280",
              "tablet-ipad",
              "mobile-iphone",
              "mobile-android"
            ],
            "type": "string",
            "description": "Viewport preset. Mobile/tablet presets use touch + mobile layout.",
            "default": "desktop-1440"
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole scrollable page (capped by Max full-page height). Off = first screen only.",
            "default": true
          },
          "colorScheme": {
            "title": "Colour scheme",
            "enum": [
              "light",
              "dark",
              "no-preference"
            ],
            "type": "string",
            "description": "Emulates prefers-color-scheme, so sites with a dark theme render dark.",
            "default": "light"
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "Page readiness before capture.",
            "default": "load"
          },
          "waitForSelector": {
            "title": "Wait for selector (optional)",
            "type": "string",
            "description": "CSS selector that must be visible before capture, e.g. #main or .price."
          },
          "delayMs": {
            "title": "Extra delay (ms)",
            "minimum": 0,
            "maximum": 15000,
            "type": "integer",
            "description": "Wait after load (animations, fonts).",
            "default": 500
          },
          "rejectCookieBanners": {
            "title": "Reject cookie banners",
            "type": "boolean",
            "description": "Clicks the site's OWN 'Reject all' / 'Only necessary' button when it is easy to identify. Never clicks Accept. Off = page as a first-time visitor sees it.",
            "default": true
          },
          "hideSelectors": {
            "title": "Hide elements (CSS selectors)",
            "type": "array",
            "description": "Optional: elements to hide in YOUR capture, e.g. a chat widget (.intercom-launcher).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "scrollToLoadLazy": {
            "title": "Scroll to load lazy images",
            "type": "boolean",
            "description": "Scrolls the page once before a full-page capture.",
            "default": true
          },
          "blockAds": {
            "title": "Block major ad networks",
            "type": "boolean",
            "description": "Skips requests to a short list of ad servers (faster, cleaner captures).",
            "default": false
          },
          "viewportWidth": {
            "title": "Custom viewport width",
            "minimum": 240,
            "maximum": 3840,
            "type": "integer",
            "description": "Overrides the preset width."
          },
          "viewportHeight": {
            "title": "Custom viewport height",
            "minimum": 240,
            "maximum": 4320,
            "type": "integer",
            "description": "Overrides the preset height."
          },
          "deviceScaleFactor": {
            "title": "Device scale factor",
            "minimum": 0.5,
            "maximum": 4,
            "type": "number",
            "description": "2 = retina-sharp images (4x pixels)."
          },
          "jpegQuality": {
            "title": "JPEG quality",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "JPEG only.",
            "default": 80
          },
          "maxFullPageHeight": {
            "title": "Max full-page height (px)",
            "minimum": 500,
            "maximum": 20000,
            "type": "integer",
            "description": "Longer pages are clipped (flagged in the output).",
            "default": 16000
          },
          "pdfFormat": {
            "title": "PDF paper size",
            "enum": [
              "A4",
              "Letter",
              "Legal",
              "A3"
            ],
            "type": "string",
            "description": "PDF only.",
            "default": "A4"
          },
          "pdfLandscape": {
            "title": "PDF landscape",
            "type": "boolean",
            "description": "PDF only.",
            "default": false
          },
          "pdfPrintBackground": {
            "title": "PDF print backgrounds",
            "type": "boolean",
            "description": "Keep background colours/images.",
            "default": true
          },
          "pdfMedia": {
            "title": "PDF CSS media",
            "enum": [
              "print",
              "screen"
            ],
            "type": "string",
            "description": "'print' uses the site's print stylesheet; 'screen' looks like the browser view.",
            "default": "print"
          },
          "pdfMarginMm": {
            "title": "PDF margin (mm)",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "All sides.",
            "default": 10
          },
          "navigationTimeoutSecs": {
            "title": "Navigation timeout (s)",
            "minimum": 10,
            "maximum": 90,
            "type": "integer",
            "description": "Per page.",
            "default": 45
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Pages rendered in parallel.",
            "default": 2
          },
          "changeDetection": {
            "title": "Visual change detection",
            "type": "boolean",
            "description": "Compare each PNG with the previous run's (same URL, device and colour scheme) and report % of pixels changed, with a diff image. Schedule the Actor to monitor pages.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Separate baselines for different monitors.",
            "default": "default"
          },
          "changeThresholdPercent": {
            "title": "Change threshold (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Pages changing more than this are flagged and alerted.",
            "default": 0.5
          },
          "alertWebhookUrl": {
            "title": "Alert webhook (Slack or HTTPS)",
            "type": "string",
            "description": "Optional. Receives a message listing changed pages. HTTPS only. Stored encrypted."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}