{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot & PDF: Full Page, Mobile, PNG, JPEG, WebP",
    "description": "Screenshot any list of URLs as JPEG, PNG, WebP or PDF: visible window or full page, desktop, tablet or mobile size. Hides cookie banners, blocks ads, dark mode, wait for an element. Row per URL with file link, final URL, HTTP status, title, timings. $2 per 1,000; failed pages free.",
    "version": "0.1",
    "x-build-id": "drVbBYjhw8gIKDNef"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dottti~website-screenshot/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dottti-website-screenshot",
        "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/dottti~website-screenshot/runs": {
      "post": {
        "operationId": "runs-sync-dottti-website-screenshot",
        "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/dottti~website-screenshot/run-sync": {
      "post": {
        "operationId": "run-sync-dottti-website-screenshot",
        "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": "Web pages to capture, one per line. Each URL gives one row and one file. https:// is added when missing. Duplicates are captured once.",
            "items": {
              "type": "string"
            }
          },
          "format": {
            "title": "File format",
            "enum": [
              "jpeg",
              "png",
              "webp",
              "pdf"
            ],
            "type": "string",
            "description": "JPEG (default) and WebP are 3 to 5 times smaller than PNG and fine for most uses. PNG is lossless, best for sharp text and pixel checks. PDF prints the page to paper-sized pages with selectable text and working links.",
            "default": "jpeg"
          },
          "device": {
            "title": "Device size",
            "enum": [
              "desktop",
              "desktopHd",
              "laptop",
              "tablet",
              "mobile",
              "custom"
            ],
            "type": "string",
            "description": "Window size the page is opened in. Desktop 1280x800, Desktop HD 1920x1080, Laptop 1366x768, Tablet 768x1024 (iPad user agent, touch), Mobile 390x844 (iPhone user agent, touch). Custom uses Width and Height below.",
            "default": "desktop"
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Off (default): only the visible window (viewport), charged as a screenshot. On: the whole page from top to bottom (up to Max height), charged as a full-page screenshot. Not used for PDF.",
            "default": false
          },
          "width": {
            "title": "Custom width (px)",
            "minimum": 200,
            "maximum": 3840,
            "type": "integer",
            "description": "Window width when Device size is Custom.",
            "default": 1920
          },
          "height": {
            "title": "Custom height (px)",
            "minimum": 200,
            "maximum": 2160,
            "type": "integer",
            "description": "Window height when Device size is Custom. With Full page on, this is the minimum image height.",
            "default": 1080
          },
          "mobileUserAgent": {
            "title": "Custom size: act as a phone or tablet",
            "type": "boolean",
            "description": "With Device size Custom: send a mobile user agent and turn on touch, so sites show their mobile layout.",
            "default": false
          },
          "deviceScaleFactor": {
            "title": "Pixel density",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "1 = normal. 2 or 3 = sharp retina images (2x or 3x more pixels each way, much bigger files).",
            "default": 1
          },
          "quality": {
            "title": "Quality (JPEG and WebP)",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "10 to 100. Lower means smaller files. Not used for PNG or PDF.",
            "default": 80
          },
          "maxHeight": {
            "title": "Max height for full page (px)",
            "minimum": 500,
            "maximum": 20000,
            "type": "integer",
            "description": "Very long pages are cut at this height so files stay a usable size. The row says truncated: true when that happens.",
            "default": 10000
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners",
            "type": "boolean",
            "description": "Hides cookie and consent popups (OneTrust, Cookiebot, Didomi, Quantcast, Usercentrics and similar, plus boxes that look like one). Nothing is clicked or accepted; the banner is only hidden.",
            "default": true
          },
          "blockAds": {
            "title": "Block ads and trackers",
            "type": "boolean",
            "description": "Blocks requests to known ad networks and trackers and hides empty ad boxes. Pages also load faster.",
            "default": true
          },
          "darkMode": {
            "title": "Dark mode",
            "type": "boolean",
            "description": "Tells the page the visitor prefers dark mode. Only sites that support dark mode (prefers-color-scheme) change.",
            "default": false
          },
          "hideSelectors": {
            "title": "Hide these elements",
            "type": "string",
            "description": "Optional CSS selectors to hide before the capture, one per line. Example: .chat-widget"
          },
          "scrollToLoadImages": {
            "title": "Scroll to load lazy images",
            "type": "boolean",
            "description": "For full-page captures: scroll down the page once before the capture so images that load on scroll show up.",
            "default": true
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "When the page counts as loaded. Page loaded is right for most sites. Network idle waits up to 15 s more for busy apps.",
            "default": "load"
          },
          "waitForSelector": {
            "title": "Wait for element (CSS selector)",
            "type": "string",
            "description": "Optional. Waits until this element is visible before the capture, for example #chart or .price. If it does not appear in time, you get a free status row and no charge."
          },
          "selectorTimeoutSecs": {
            "title": "Wait for element timeout",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "How long to wait for the element above.",
            "default": 10
          },
          "delayMs": {
            "title": "Extra delay before capture",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Optional fixed wait after loading, for animations or slow widgets.",
            "default": 0
          },
          "captureSelector": {
            "title": "Capture only this element (CSS selector)",
            "type": "string",
            "description": "Optional. Captures just the first matching element (a chart, a card, a table) instead of the page, charged as a screenshot. Image formats only."
          },
          "pdfPaperSize": {
            "title": "PDF paper size",
            "enum": [
              "A4",
              "Letter",
              "Legal",
              "A3",
              "Tabloid"
            ],
            "type": "string",
            "description": "Paper size for PDF output.",
            "default": "A4"
          },
          "pdfLandscape": {
            "title": "PDF landscape",
            "type": "boolean",
            "description": "Landscape pages instead of portrait.",
            "default": false
          },
          "pdfPrintMedia": {
            "title": "Use the site's print style",
            "type": "boolean",
            "description": "Off: the PDF looks like the page on screen. On: uses the site's print stylesheet (often hides menus and ads).",
            "default": false
          },
          "captureErrorPages": {
            "title": "Capture error pages (4xx/5xx)",
            "type": "boolean",
            "description": "Off: pages that answer with HTTP 400 or higher get a free status row and no file. On: they are captured and charged like any page (useful for monitoring).",
            "default": false
          },
          "timeoutSecs": {
            "title": "Page timeout",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum time to open and prepare one page before the capture.",
            "default": 30
          },
          "maxConcurrency": {
            "title": "Pages at once",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "0 = automatic (about 6 tabs on the default 4 GB of memory). Pages are CPU-heavy: below 4 GB, Apify gives the run little CPU and each page is much slower.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. By default pages are opened directly, and only pages that fail or answer 403/429 are retried once through an Apify datacenter proxy. You can use Apify datacenter proxy or your own proxy URLs. Apify residential proxy is not supported (screenshots download whole pages, which makes residential traffic too costly for this price)."
          },
          "autoProxyFallback": {
            "title": "Retry failed pages through a proxy",
            "type": "boolean",
            "description": "On: a page that fails directly is retried through an Apify datacenter proxy. Ignored when you set your own proxy.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}