{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot & PDF API (Full Page, Mobile)",
    "description": "Screenshot any list of public URLs: viewport, full page, element or mobile as PNG, JPEG or WebP, or a PDF. Hides cookie banners without clicking, adds an optional thumbnail for AI agents, and never charges for failed or blocked pages.",
    "version": "1.0",
    "x-build-id": "91F4jqD8c55S6nfbl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/saiberops~website-screenshot-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-saiberops-website-screenshot-api",
        "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/saiberops~website-screenshot-api/runs": {
      "post": {
        "operationId": "runs-sync-saiberops-website-screenshot-api",
        "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/saiberops~website-screenshot-api/run-sync": {
      "post": {
        "operationId": "run-sync-saiberops-website-screenshot-api",
        "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": "URLs to capture",
            "type": "array",
            "description": "Public http(s) pages, one per line (up to 500 per run). Each URL gives one dataset row and one file in the key-value store. Login-walled social networks and private or internal addresses are refused.",
            "items": {
              "type": "string"
            }
          },
          "captureType": {
            "title": "Capture type",
            "enum": [
              "viewport",
              "fullPage",
              "element",
              "pdf"
            ],
            "type": "string",
            "description": "viewport: what a visitor sees on load. fullPage: the whole scrolling page (up to Max height). element: one element matched by a CSS selector. pdf: a PDF of the page. One type per run; each has its own price.",
            "default": "viewport"
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "desktopHd",
              "tablet",
              "mobile",
              "custom"
            ],
            "type": "string",
            "description": "desktop 1280×800, desktopHd 1920×1080, tablet 768×1024 at 2x, mobile 390×844 at 3x (mobile layout and touch). custom uses the three fields below.",
            "default": "desktop"
          },
          "viewportWidth": {
            "title": "Custom width (px)",
            "minimum": 320,
            "maximum": 3840,
            "type": "integer",
            "description": "Only used when Device is custom.",
            "default": 1280
          },
          "viewportHeight": {
            "title": "Custom height (px)",
            "minimum": 240,
            "maximum": 2160,
            "type": "integer",
            "description": "Only used when Device is custom.",
            "default": 800
          },
          "deviceScaleFactor": {
            "title": "Custom pixel ratio",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Only used when Device is custom. 2 or 3 gives retina-sharp images (and bigger files). Limited to 2 when the viewport is wider than 1920 px.",
            "default": 1
          },
          "format": {
            "title": "Image format",
            "enum": [
              "png",
              "jpeg",
              "webp"
            ],
            "type": "string",
            "description": "png is lossless; jpeg and webp are much smaller. Ignored for PDF captures.",
            "default": "png"
          },
          "quality": {
            "title": "JPEG/WebP quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "1 to 100. Ignored for PNG.",
            "default": 80
          },
          "selector": {
            "title": "Element selector",
            "type": "string",
            "description": "CSS selector for the element capture type, e.g. #pricing or main article. The first visible match is captured. If nothing matches, the row is an error and is not charged."
          },
          "thumbnail": {
            "title": "Also make a thumbnail (free)",
            "type": "boolean",
            "description": "Adds a small JPEG next to each image, sized for vision models and previews. Not available for PDF.",
            "default": false
          },
          "thumbnailMaxPx": {
            "title": "Thumbnail size (px)",
            "minimum": 128,
            "maximum": 1024,
            "type": "integer",
            "description": "Longest edge of the thumbnail, 128 to 1024. Very tall full-page images are cropped to the top of the page first.",
            "default": 512
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners",
            "type": "boolean",
            "description": "Hides cookie and consent pop-ups with CSS. Nothing is clicked, accepted or rejected. Rows say whether a banner was hidden and whether a full-screen consent wall was left in place.",
            "default": true
          },
          "hideSelectors": {
            "title": "Also hide these elements",
            "type": "array",
            "description": "CSS selectors to hide before capturing, e.g. chat widgets or sticky promo bars (.intercom-launcher).",
            "items": {
              "type": "string"
            }
          },
          "darkMode": {
            "title": "Dark mode",
            "type": "boolean",
            "description": "Asks the page for its dark color scheme (prefers-color-scheme: dark).",
            "default": false
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "load (default) waits for the page's load event. domcontentloaded is faster. networkidle also waits for network quiet, capped at 8 seconds so busy pages can't stall the run.",
            "default": "load"
          },
          "delayMs": {
            "title": "Extra delay (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Settle time after the page has loaded, for animations and late content.",
            "default": 500
          },
          "waitForSelector": {
            "title": "Wait for element",
            "type": "string",
            "description": "Optional CSS selector to wait for before capturing. If it never appears, the page is captured anyway and the row says loadComplete: false."
          },
          "scrollToLoadLazy": {
            "title": "Scroll to load lazy images",
            "type": "boolean",
            "description": "Full page and PDF only: scrolls through the page first so lazy-loaded images appear.",
            "default": true
          },
          "maxHeight": {
            "title": "Max height for full page (px)",
            "minimum": 1000,
            "maximum": 30000,
            "type": "integer",
            "description": "In CSS px. Taller pages are cut and flagged truncated: true. Images are also limited to 32,000 device px tall (about 10,666 CSS px at 3x; WebP 16,383) and 40 million device pixels in all (about 7,800 CSS px at 1280 wide and 2x).",
            "default": 16384
          },
          "pdfFormat": {
            "title": "PDF paper size",
            "enum": [
              "A4",
              "Letter",
              "Legal",
              "A3",
              "A5",
              "Tabloid"
            ],
            "type": "string",
            "description": "Paper size for PDF captures.",
            "default": "A4"
          },
          "pdfLandscape": {
            "title": "Landscape",
            "type": "boolean",
            "description": "PDF captures only.",
            "default": false
          },
          "pdfPrintBackground": {
            "title": "Print backgrounds",
            "type": "boolean",
            "description": "Include background colors and images in the PDF.",
            "default": true
          },
          "pdfMedia": {
            "title": "PDF styling",
            "enum": [
              "screen",
              "print"
            ],
            "type": "string",
            "description": "screen renders what a visitor sees; print uses the site's print stylesheet.",
            "default": "screen"
          },
          "timeoutSecs": {
            "title": "Timeout per URL (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Budget for loading, waiting and capturing one URL. Timed-out URLs are not charged.",
            "default": 30
          },
          "maxConcurrency": {
            "title": "Pages in parallel",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "0 = automatic: one page per GB of run memory (2 at the default 2 GB), up to 8. Raise memory for more parallelism.",
            "default": 0
          },
          "blockMedia": {
            "title": "Skip video and audio",
            "type": "boolean",
            "description": "Doesn't download video and audio files, which speeds up captures. Images, fonts and CSS always load.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}