{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot & PDF API",
    "description": "Bulk screenshots and PDFs of any web page: full-page or one element, desktop, tablet and phone presets, cookie banners and ads hidden, lazy images loaded. Every row has a direct image URL. PNG, JPEG or WebP.",
    "version": "0.1",
    "x-build-id": "5bWD8rk2Ja4BAkSTj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dabooti~website-screenshot-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dabooti-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/dabooti~website-screenshot-api/runs": {
      "post": {
        "operationId": "runs-sync-dabooti-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/dabooti~website-screenshot-api/run-sync": {
      "post": {
        "operationId": "run-sync-dabooti-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",
            "type": "array",
            "description": "Pages to capture, one per line. Bare domains such as example.com get https:// added. Duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "laptop",
              "tablet",
              "mobile",
              "custom",
              "iPhone 17 Pro Max",
              "iPhone 17 Pro",
              "iPhone 17",
              "iPhone 16 Pro Max",
              "iPhone 16",
              "iPhone 15 Pro Max",
              "iPhone 15",
              "iPhone 14",
              "iPhone SE (3rd gen)",
              "Pixel 10 Pro",
              "Pixel 9",
              "Pixel 8",
              "Pixel 7",
              "Galaxy S24",
              "Galaxy A55",
              "Galaxy Z Fold 7",
              "iPad Pro 11",
              "iPad (gen 11)",
              "iPad Mini",
              "Galaxy Tab S9",
              "Desktop Chrome HiDPI"
            ],
            "type": "string",
            "description": "Screen size and browser type. Desktop is 1920 x 1080, laptop 1440 x 900, tablet 820 x 1180 (2x), mobile 390 x 844 (3x, phone user agent). Named phones and tablets use Playwright's device presets. Choose Custom to set your own width and height.",
            "default": "desktop"
          },
          "viewportWidth": {
            "title": "Custom width",
            "minimum": 200,
            "maximum": 3840,
            "type": "integer",
            "description": "Browser window width in CSS pixels. Used only when Device is Custom.",
            "default": 1366
          },
          "viewportHeight": {
            "title": "Custom height",
            "minimum": 200,
            "maximum": 4320,
            "type": "integer",
            "description": "Browser window height in CSS pixels. Used only when Device is Custom. With Full page on, this only sets the first screen; the image still covers the whole page.",
            "default": 768
          },
          "deviceScaleFactor": {
            "title": "Pixel ratio",
            "minimum": 0.5,
            "maximum": 4,
            "type": "number",
            "description": "Optional. Image pixels per CSS pixel: 2 gives sharp retina images, 0.5 gives small thumbnails. Leave empty to use the device's own ratio (1 for desktop and laptop, 2 to 3 for phones and tablets)."
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole page from top to bottom instead of only the first screen. Very long pages are captured in strips and joined, so they never repeat or break.",
            "default": true
          },
          "selector": {
            "title": "Capture only this element",
            "type": "string",
            "description": "Optional CSS selector, for example #pricing or .product-card. Only the first visible matching element is captured. Full page is then ignored."
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "When the page counts as loaded. Load works for most sites. Network idle waits until no requests run for half a second, best for single-page apps. If the state is not reached in time, the page is captured anyway and the row gets a warning.",
            "default": "load"
          },
          "delayMs": {
            "title": "Extra delay",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Extra wait just before the capture, for animations, sliders or late content.",
            "default": 1000
          },
          "waitForSelector": {
            "title": "Wait for element",
            "type": "string",
            "description": "Optional CSS selector to wait for before capturing, for example .results or #chart canvas. The page fails (free) if it does not appear within the navigation timeout."
          },
          "scrollToBottom": {
            "title": "Scroll to load lazy content",
            "type": "boolean",
            "description": "Before a full-page or element capture, scroll down the page step by step so lazy images and scroll-triggered sections load, then return to the top.",
            "default": true
          },
          "captureErrorPages": {
            "title": "Capture error pages",
            "type": "boolean",
            "description": "Off: pages that answer with HTTP 4xx or 5xx are not captured and are returned as failed rows (free). On: they are captured and charged like any other page.",
            "default": false
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners",
            "type": "boolean",
            "description": "Hide consent pop-ups from OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast, TrustArc, Sourcepoint, iubenda, CookieYes, Complianz and many more, plus generic cookie bars. They are hidden with CSS, never clicked, so no consent is given.",
            "default": true
          },
          "blockAds": {
            "title": "Block ads and trackers",
            "type": "boolean",
            "description": "Block requests to 141 ad, tracking and pop-up networks (and their subdomains) and collapse empty ad slots. Pages also load faster.",
            "default": true
          },
          "hideChatWidgets": {
            "title": "Hide chat widgets",
            "type": "boolean",
            "description": "Hide floating chat launchers (Intercom, Drift, HubSpot, Zendesk, Crisp, Tidio, LiveChat and others) and the reCAPTCHA badge.",
            "default": true
          },
          "hideSelectors": {
            "title": "Hide these elements",
            "type": "array",
            "description": "Optional extra CSS selectors to hide before capturing, for example .newsletter-popup or #promo-bar.",
            "items": {
              "type": "string"
            }
          },
          "darkMode": {
            "title": "Dark mode",
            "type": "boolean",
            "description": "Ask the site for its dark theme (prefers-color-scheme: dark). Only sites with a dark theme change.",
            "default": false
          },
          "disableAnimations": {
            "title": "Disable animations",
            "type": "boolean",
            "description": "Finish CSS animations and transitions instantly and reveal scroll-animated sections, so nothing is captured half-faded.",
            "default": true
          },
          "screenshot": {
            "title": "Save screenshot",
            "type": "boolean",
            "description": "Save an image of each page. Turn off and turn on Save PDF to make PDFs only.",
            "default": true
          },
          "format": {
            "title": "Image format",
            "enum": [
              "png",
              "jpeg",
              "webp"
            ],
            "type": "string",
            "description": "PNG is lossless and sharpest. JPEG and WebP are much smaller. WebP images are limited to 16,383 px in height and JPEG to 32,767 px; PNG full-page captures go up to about 64 megapixels.",
            "default": "png"
          },
          "quality": {
            "title": "JPEG / WebP quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "1 to 100. Ignored for PNG.",
            "default": 80
          },
          "pdf": {
            "title": "Save PDF",
            "type": "boolean",
            "description": "Also save each page as a PDF document (print layout, selectable text and links).",
            "default": false
          },
          "pdfFormat": {
            "title": "PDF paper size",
            "enum": [
              "A4",
              "Letter",
              "Legal",
              "A3",
              "A5",
              "Tabloid"
            ],
            "type": "string",
            "description": "Paper size of the PDF.",
            "default": "A4"
          },
          "pdfLandscape": {
            "title": "PDF landscape",
            "type": "boolean",
            "description": "Landscape instead of portrait pages.",
            "default": false
          },
          "pdfPrintBackground": {
            "title": "PDF background graphics",
            "type": "boolean",
            "description": "Include background colours and images in the PDF.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Pages in parallel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages load at the same time. Each needs about 300 to 600 MB of memory, so raise the run memory too when you raise this.",
            "default": 3
          },
          "navigationTimeoutSecs": {
            "title": "Navigation timeout",
            "minimum": 5,
            "maximum": 180,
            "type": "integer",
            "description": "How long to wait for a page to start rendering before it counts as failed.",
            "default": 45
          },
          "maxRetries": {
            "title": "Retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "How many times to retry a page that fails to load. Pages whose domain does not exist are not retried.",
            "default": 1
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for most sites. Use Apify Proxy (residential for strict sites) when pages block data-center traffic or you need a screenshot from a specific country.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}