{
  "openapi": "3.0.1",
  "info": {
    "title": "Verified Website Screenshot & PDF",
    "description": "Bulk website screenshots and webpage-to-PDF conversion across desktop, tablet, and mobile, with a verification manifest and SHA-256 hash for every render.",
    "version": "0.1",
    "x-build-id": "hInO6Ml5PycHe3i4Y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/al_mansouri~verified-website-screenshot-pdf/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-al_mansouri-verified-website-screenshot-pdf",
        "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/al_mansouri~verified-website-screenshot-pdf/runs": {
      "post": {
        "operationId": "runs-sync-al_mansouri-verified-website-screenshot-pdf",
        "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/al_mansouri~verified-website-screenshot-pdf/run-sync": {
      "post": {
        "operationId": "run-sync-al_mansouri-verified-website-screenshot-pdf",
        "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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "Public website URLs",
            "minItems": 1,
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Unique HTTP or HTTPS URLs. Fragments are removed, query strings are preserved, and embedded credentials are rejected.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^https?://"
            }
          },
          "output": {
            "title": "Output",
            "enum": [
              "screenshot",
              "pdf",
              "verifiedPack"
            ],
            "type": "string",
            "description": "A verified pack stores both a screenshot and PDF and succeeds only if both files are complete.",
            "default": "screenshot"
          },
          "devices": {
            "title": "Devices",
            "minItems": 1,
            "maxItems": 4,
            "uniqueItems": true,
            "type": "array",
            "description": "Each selected device is one chargeable operation per URL. Presets: desktop 1440x900 @1x, tablet 768x1024 @2x, mobile 390x844 @3x.",
            "items": {
              "type": "string",
              "enum": [
                "desktop",
                "tablet",
                "mobile",
                "custom"
              ],
              "enumTitles": [
                "Desktop",
                "Tablet",
                "Mobile",
                "Custom viewport"
              ]
            },
            "default": [
              "desktop"
            ]
          },
          "fullPage": {
            "title": "Full-page screenshot",
            "type": "boolean",
            "description": "Capture the complete page for screenshots. PDFs always print the complete document.",
            "default": true
          },
          "imageFormat": {
            "title": "Screenshot format",
            "enum": [
              "png",
              "jpeg",
              "webp"
            ],
            "type": "string",
            "description": "Choose PNG for lossless output or JPEG/WebP for smaller lossy files. WebP cannot encode long full pages: the format caps either axis at 16,383 pixels after the device scale factor, so a full-page WebP fails above roughly 16,000 CSS pixels on desktop, 8,100 on tablet, and 5,400 on mobile. Use PNG or JPEG for full-page captures.",
            "default": "png"
          },
          "imageQuality": {
            "title": "JPEG/WebP quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Accepted only when the screenshot format is JPEG or WebP."
          },
          "customViewport": {
            "title": "Custom viewport",
            "required": [
              "width",
              "height"
            ],
            "type": "object",
            "description": "Required only when devices includes custom.",
            "properties": {
              "width": {
                "title": "Width",
                "description": "Viewport width in CSS pixels.",
                "type": "integer",
                "minimum": 320,
                "maximum": 2560
              },
              "height": {
                "title": "Height",
                "description": "Viewport height in CSS pixels.",
                "type": "integer",
                "minimum": 200,
                "maximum": 1440
              },
              "deviceScaleFactor": {
                "title": "Device scale factor",
                "description": "Output pixels per CSS pixel. Defaults to 1 when omitted from a supplied custom viewport.",
                "type": "number",
                "minimum": 1,
                "maximum": 3
              }
            },
            "additionalProperties": false
          },
          "waitForSelector": {
            "title": "Wait for CSS selector",
            "maxLength": 512,
            "type": "string",
            "description": "Wait up to 10 seconds for this selector to become visible before capture."
          },
          "postLoadDelayMs": {
            "title": "Post-load settling delay",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Additional bounded delay after readiness checks and before lazy-load preparation.",
            "default": 500
          },
          "colorScheme": {
            "title": "Color scheme",
            "enum": [
              "light",
              "dark"
            ],
            "type": "string",
            "description": "Emulate the browser's preferred light or dark color scheme.",
            "default": "light"
          },
          "locale": {
            "title": "Browser locale",
            "enum": [
              "en-US",
              "en-GB",
              "ar-SA",
              "ar-AE",
              "fr-FR",
              "de-DE",
              "es-ES",
              "pt-BR",
              "ja-JP",
              "zh-CN"
            ],
            "type": "string",
            "description": "Use one allowlisted browser locale for deterministic page localization.",
            "default": "en-US"
          },
          "timezone": {
            "title": "Browser timezone",
            "enum": [
              "UTC",
              "Asia/Riyadh",
              "Asia/Dubai",
              "Europe/London",
              "Europe/Berlin",
              "America/New_York",
              "America/Los_Angeles",
              "America/Sao_Paulo",
              "Asia/Tokyo",
              "Asia/Shanghai"
            ],
            "type": "string",
            "description": "Use one allowlisted browser timezone for date and time rendering.",
            "default": "UTC"
          },
          "hideCookieBanners": {
            "title": "Hide strongly identified cookie banners",
            "type": "boolean",
            "description": "Hides known OneTrust, Cookiebot, Quantcast, and Usercentrics containers without clicking consent. Every change is recorded.",
            "default": false
          },
          "userAgentPreset": {
            "title": "Safe user-agent preset",
            "enum": [
              "automatic",
              "desktopChromium",
              "mobileChromium"
            ],
            "type": "string",
            "description": "Arbitrary user-agent strings are not accepted. Automatic uses mobile Chromium for tablet/mobile and browser default for desktop/custom.",
            "default": "automatic"
          },
          "pdf": {
            "title": "PDF options",
            "type": "object",
            "description": "Safe print settings used for PDF and verified-pack outputs.",
            "properties": {
              "format": {
                "title": "Paper format",
                "description": "Printed paper size.",
                "type": "string",
                "enum": [
                  "A4",
                  "Letter",
                  "Legal"
                ],
                "default": "A4"
              },
              "orientation": {
                "title": "Orientation",
                "description": "Portrait or landscape page orientation.",
                "type": "string",
                "enum": [
                  "portrait",
                  "landscape"
                ],
                "default": "portrait"
              },
              "printBackground": {
                "title": "Print backgrounds",
                "description": "Include CSS background colors and images.",
                "type": "boolean",
                "default": true
              },
              "margins": {
                "title": "Margins in millimeters",
                "description": "Numeric top, right, bottom, and left margins from 0 to 50 mm.",
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "top": {
                    "title": "Top margin",
                    "description": "Top margin in millimeters.",
                    "type": "number",
                    "minimum": 0,
                    "maximum": 50,
                    "default": 10
                  },
                  "right": {
                    "title": "Right margin",
                    "description": "Right margin in millimeters.",
                    "type": "number",
                    "minimum": 0,
                    "maximum": 50,
                    "default": 10
                  },
                  "bottom": {
                    "title": "Bottom margin",
                    "description": "Bottom margin in millimeters.",
                    "type": "number",
                    "minimum": 0,
                    "maximum": 50,
                    "default": 10
                  },
                  "left": {
                    "title": "Left margin",
                    "description": "Left margin in millimeters.",
                    "type": "number",
                    "minimum": 0,
                    "maximum": 50,
                    "default": 10
                  }
                }
              }
            },
            "default": {
              "format": "A4",
              "orientation": "portrait",
              "printBackground": true,
              "margins": {
                "top": 10,
                "right": 10,
                "bottom": 10,
                "left": 10
              }
            },
            "additionalProperties": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}