{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot API: Full-Page, WebP, No Cookie Banners",
    "description": "Bulk full-page screenshots of any URL as PNG, JPEG, WebP, AVIF or PDF. Cookie banners, ads and chat bubbles hidden (EasyList filter lists), lazy images loaded, devices, cookies, headers, custom JS. Failed pages free. One-call image API, MCP-ready. $1.50 per 1,000 screenshots.",
    "version": "1.0",
    "x-build-id": "tKFsiiei3ZTFN9HHe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xsi~website-screenshot-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xsi-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/xsi~website-screenshot-api/runs": {
      "post": {
        "operationId": "runs-sync-xsi-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/xsi~website-screenshot-api/run-sync": {
      "post": {
        "operationId": "run-sync-xsi-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 (up to 1,000 per run). \"example.com\" works too (https:// is added). Duplicates are removed and never charged.",
            "items": {
              "type": "string"
            }
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole page, not just the first screen. The page is scrolled first so lazy-loaded images appear. Pages taller than \"Max height\" are cut at that height (flag truncated=true).",
            "default": true
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "laptop",
              "tablet",
              "mobile"
            ],
            "type": "string",
            "description": "Viewport and user agent preset. Mobile and tablet get the mobile version of the site.",
            "default": "desktop"
          },
          "format": {
            "title": "Format",
            "enum": [
              "png",
              "jpeg",
              "webp",
              "avif",
              "pdf"
            ],
            "type": "string",
            "description": "PNG is lossless. JPEG and WebP are 3-10x smaller (good for archives and AI vision models). AVIF is the smallest. PDF gives a real paginated PDF (selectable text, working links, backgrounds kept). Same price for every format.",
            "default": "png"
          },
          "pdfFormat": {
            "title": "PDF paper size",
            "enum": [
              "A4",
              "Letter",
              "Legal",
              "A3"
            ],
            "type": "string",
            "description": "Used only when Format is PDF.",
            "default": "A4"
          },
          "pdfLandscape": {
            "title": "PDF landscape",
            "type": "boolean",
            "description": "Used only when Format is PDF.",
            "default": false
          },
          "hideCookieBanners": {
            "title": "Hide cookie / consent banners",
            "type": "boolean",
            "description": "Hides cookie/consent banners with the public EasyList Cookie List (CSS rules + blocking consent scripts), 66 built-in consent-platform selectors and a heuristic for late overlays. Nothing is clicked or accepted.",
            "default": true
          },
          "hideChatWidgets": {
            "title": "Hide live-chat bubbles",
            "type": "boolean",
            "description": "Hides chat and support widgets that cover the page corner (Intercom, HubSpot, Drift, Zendesk, Crisp, Tidio, LiveChat, Freshchat and 15+ more). Nothing is clicked.",
            "default": true
          },
          "blockAds": {
            "title": "Block ads and trackers",
            "type": "boolean",
            "description": "Blocks ad and tracker requests and hides ad slots with the public EasyList and EasyPrivacy filter lists (the lists used by ad blockers), plus a built-in host list. Pages load faster and ad overlays disappear. The page itself is never blocked.",
            "default": true
          },
          "selector": {
            "title": "Capture only this element (CSS selector)",
            "type": "string",
            "description": "Optional. Screenshot a single element, e.g. \"#pricing\" or \"main\". If the element is missing the URL is returned with an error and not charged."
          },
          "waitForSelector": {
            "title": "Wait for selector",
            "type": "string",
            "description": "Optional. Wait (max 15 s) until this CSS selector appears before capturing, e.g. \".chart-loaded\"."
          },
          "delayMs": {
            "title": "Extra delay (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Extra wait after the page has loaded, for animations or charts.",
            "default": 0
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "Page event to wait for. If it never comes (heavy pages), the page is captured anyway after DOMContentLoaded instead of failing.",
            "default": "load"
          },
          "viewportWidth": {
            "title": "Viewport width (px)",
            "minimum": 320,
            "maximum": 3840,
            "type": "integer",
            "description": "Overrides the device width. 320-3840."
          },
          "viewportHeight": {
            "title": "Viewport height (px)",
            "minimum": 320,
            "maximum": 2160,
            "type": "integer",
            "description": "Overrides the device height (the visible screen; full page still captures everything). 320-2160."
          },
          "deviceScaleFactor": {
            "title": "Pixel ratio (retina)",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "1 = normal, 2 = retina (4x more pixels, bigger files)."
          },
          "darkMode": {
            "title": "Dark mode",
            "type": "boolean",
            "description": "Ask the site for its dark theme (prefers-color-scheme: dark).",
            "default": false
          },
          "hideSelectors": {
            "title": "Hide these elements",
            "type": "array",
            "description": "Extra CSS selectors to hide, e.g. chat widgets \"#intercom-container\".",
            "items": {
              "type": "string"
            }
          },
          "quality": {
            "title": "JPEG / WebP / AVIF quality",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "10-100, for JPEG, WebP and AVIF.",
            "default": 80
          },
          "maxHeight": {
            "title": "Max height (px)",
            "minimum": 1000,
            "maximum": 16000,
            "type": "integer",
            "description": "Full-page captures are cut at this height (Chrome's hard limit is 16,384 px).",
            "default": 12000
          },
          "locale": {
            "title": "Browser language",
            "type": "string",
            "description": "e.g. en-US, fr-FR, de-DE. Sites that adapt to the browser language show that version.",
            "default": "en-US"
          },
          "timezone": {
            "title": "Time zone",
            "type": "string",
            "description": "Optional IANA time zone for the browser, e.g. \"Europe/Paris\" or \"America/New_York\". Does not change the IP address or country."
          },
          "pageTimeoutSecs": {
            "title": "Timeout per page (s)",
            "minimum": 10,
            "maximum": 180,
            "type": "integer",
            "description": "Hard limit per page, retry included once. A page that times out is free.",
            "default": 45
          },
          "maxConcurrency": {
            "title": "Parallel pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Pages captured at the same time. Automatically lowered to 1 per 700 MB of memory so runs never crash on memory.",
            "default": 4
          },
          "returnImageInOutput": {
            "title": "Return the image as the run OUTPUT (one-call API)",
            "type": "boolean",
            "description": "Only with exactly one URL. The run's OUTPUT record becomes the image (or PDF) itself, so POST /v2/acts/xsi~website-screenshot-api/run-sync returns the image bytes in a single HTTP call. The JSON summary moves to the SUMMARY record. If the capture fails, OUTPUT stays the JSON summary and nothing is charged.",
            "default": false
          },
          "cookies": {
            "title": "Cookies",
            "type": "array",
            "description": "Optional cookies set before loading the page, e.g. [{\"name\": \"session\", \"value\": \"abc\", \"domain\": \".example.com\"}] for pages you are allowed to access with your own account. Without domain/url, the cookie is set for the captured URL. Max 100."
          },
          "headers": {
            "title": "Extra HTTP headers",
            "type": "object",
            "description": "Optional headers, e.g. {\"Authorization\": \"Bearer ...\"}. Sent only to the captured site's host and its subdomains, never to third-party hosts. Host, Cookie and hop-by-hop headers are refused (use Cookies)."
          },
          "userAgent": {
            "title": "User agent",
            "type": "string",
            "description": "Optional. Overrides the device user agent."
          },
          "customCss": {
            "title": "Custom CSS",
            "type": "string",
            "description": "Optional CSS injected before capture, e.g. \".promo-bar { display: none !important; }\"."
          },
          "customJs": {
            "title": "Custom JavaScript",
            "type": "string",
            "description": "Optional JavaScript run in the page before capture (await allowed, max 10 s), e.g. \"document.querySelector('#tab-2').click();\". Errors are reported in the warning field and the page is still captured."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}