{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot Scraper — Full-Page PNG, JPEG & PDF API",
    "description": "Website screenshot scraper API: full-page or viewport PNG/JPEG/PDF captures of any URL, device presets, element capture, delay and cookie-banner hiding. Pay per screenshot.",
    "version": "0.1",
    "x-build-id": "Z0JfRx12VPRDGV8V9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/innolabs~website-screenshot-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-innolabs-website-screenshot-scraper",
        "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/innolabs~website-screenshot-scraper/runs": {
      "post": {
        "operationId": "runs-sync-innolabs-website-screenshot-scraper",
        "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/innolabs~website-screenshot-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-innolabs-website-screenshot-scraper",
        "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": "Web pages to capture, one per line, e.g. https://apify.com. Links without http(s):// get https://. Duplicates are captured once.",
            "items": {
              "type": "string"
            }
          },
          "format": {
            "title": "Format",
            "enum": [
              "png",
              "jpeg",
              "pdf"
            ],
            "type": "string",
            "description": "PNG (lossless), JPEG (smaller files, see JPEG quality) or PDF (the whole page as a printable document, A4 by default).",
            "default": "png"
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole scrollable page. Off = only the visible viewport (first screen). Ignored for PDF and element capture.",
            "default": true
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "mobile",
              "tablet"
            ],
            "type": "string",
            "description": "Desktop browser (viewport below), mobile phone (iPhone 15 Pro, 393×659, touch, mobile user agent) or tablet (iPad Pro 11, 834×1194). Mobile and tablet render at 2× pixel density unless Device scale factor is set.",
            "default": "desktop"
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle",
              "commit"
            ],
            "type": "string",
            "description": "Page load event to wait for: load (all images and scripts), domcontentloaded (HTML parsed, faster), networkidle (no network traffic for 500 ms, best for single-page apps) or commit (first response byte).",
            "default": "load"
          },
          "delayMs": {
            "title": "Delay (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Extra wait after the page has loaded, for animations, sliders and late pop-ups. 1000 = 1 second.",
            "default": 1000
          },
          "waitForSelector": {
            "title": "Wait for element",
            "type": "string",
            "description": "Optional CSS selector that must be visible before capturing, e.g. #main-chart or .price."
          },
          "scrollToBottom": {
            "title": "Scroll to bottom first",
            "type": "boolean",
            "description": "Scroll through the page (up to 15 s) so lazy-loaded images and sections render, then back to the top before capturing.",
            "default": true
          },
          "timeoutSecs": {
            "title": "Page timeout (seconds)",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum time to load one page. A page that never reaches the chosen load event is captured as it is at this point; a page that cannot be opened at all is retried once and then reported as failed (not charged).",
            "default": 60
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners",
            "type": "boolean",
            "description": "Hide cookie and consent pop-ups from common consent platforms (OneTrust, Cookiebot, Didomi, Usercentrics, Sourcepoint, Quantcast, TrustArc and more) and fixed cookie bars, and unlock page scrolling.",
            "default": true
          },
          "hideSelectors": {
            "title": "Hide elements",
            "type": "array",
            "description": "CSS selectors of elements to hide before capturing, e.g. #chat-widget, .newsletter-popup, header.sticky.",
            "items": {
              "type": "string"
            }
          },
          "blockAds": {
            "title": "Block ads",
            "type": "boolean",
            "description": "Block requests to major ad and tracking networks (Google Ads, Amazon Ads, Taboola, Outbrain, Criteo and others). Pages often load faster, ad slots stay empty.",
            "default": false
          },
          "selector": {
            "title": "Capture only this element",
            "type": "string",
            "description": "CSS selector of one element to capture instead of the page, e.g. #pricing, .chart or table.infobox. The first visible match is captured. PNG or JPEG only."
          },
          "viewportWidth": {
            "title": "Viewport width (desktop)",
            "minimum": 200,
            "maximum": 3840,
            "type": "integer",
            "description": "Browser window width in CSS pixels for the desktop device, e.g. 1280, 1440 or 1920.",
            "default": 1280
          },
          "viewportHeight": {
            "title": "Viewport height (desktop)",
            "minimum": 200,
            "maximum": 2160,
            "type": "integer",
            "description": "Browser window height in CSS pixels for the desktop device; this is the screenshot height when Full page is off.",
            "default": 800
          },
          "deviceScaleFactor": {
            "title": "Device scale factor",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Pixel density: 2 = retina (twice the width and height in pixels). Empty = 1 for desktop, 2 for mobile and tablet."
          },
          "deviceName": {
            "title": "Exact device model",
            "type": "string",
            "description": "Overrides Device with any Playwright device model, e.g. Pixel 7, iPhone 13 Mini, Galaxy S24, iPad Mini, Desktop Firefox HiDPI. Uses the model's own viewport, pixel density and user agent."
          },
          "colorScheme": {
            "title": "Color scheme",
            "enum": [
              "light",
              "dark",
              "no-preference"
            ],
            "type": "string",
            "description": "Light or dark mode for sites that support prefers-color-scheme.",
            "default": "light"
          },
          "jpegQuality": {
            "title": "JPEG quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "1–100, used only for JPEG. 80 gives files about 3–5× smaller than PNG with little visible loss.",
            "default": 80
          },
          "maxFullPageHeight": {
            "title": "Max full-page height",
            "minimum": 500,
            "maximum": 50000,
            "type": "integer",
            "description": "Full-page screenshots are cut at this height in CSS pixels, so endless feeds and infinite scroll pages stay manageable.",
            "default": 20000
          },
          "pdfFormat": {
            "title": "PDF paper size",
            "enum": [
              "A4",
              "Letter",
              "Legal",
              "A3",
              "Tabloid"
            ],
            "type": "string",
            "description": "Paper size for PDF output. Pages are rendered with their screen styles and backgrounds.",
            "default": "A4"
          },
          "maxItems": {
            "title": "Max screenshots",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on screenshots (dataset items) in this run. The run stops cleanly when reached; you are never charged for more.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Parallel pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages are captured at the same time. Also limited by the run memory (one page per 400 MB), so add memory for faster bulk runs.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Off by default: pages load directly, which was up to 10× faster than through a proxy in tests. Turn on Apify Proxy (RESIDENTIAL or a country) for sites that block data-center traffic or show country-specific content.",
            "default": {
              "useApifyProxy": false
            }
          },
          "debug": {
            "title": "Debug logging",
            "type": "boolean",
            "description": "Log every captured page with its size.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}