{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot, PDF & Visual Change Monitor",
    "description": "Bulk full-page screenshots (PNG/JPEG/WebP) and PDFs of any page or whole website, plus visual change monitoring: changes framed in red and webhook alerts. No height cap, cookie banners handled, ads blocked, carousels unfolded, mobile emulation. Pay only for successful captures.",
    "version": "0.1",
    "x-build-id": "vA7E3ZC4gQo2VNf8Y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pakowithk~website-screenshot-pdf/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pakowithk-website-screenshot-pdf",
        "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/pakowithk~website-screenshot-pdf/runs": {
      "post": {
        "operationId": "runs-sync-pakowithk-website-screenshot-pdf",
        "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/pakowithk~website-screenshot-pdf/run-sync": {
      "post": {
        "operationId": "run-sync-pakowithk-website-screenshot-pdf",
        "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": "Pages to capture. One screenshot (or PDF) per URL. 'https://' is added automatically if missing.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "websites": {
            "title": "Whole websites (all pages from the sitemap)",
            "type": "array",
            "description": "Optional. Enter a domain (e.g. 'example.com') and every page listed in its sitemap is captured. If the site has no sitemap, the links on its homepage are used.",
            "items": {
              "type": "string"
            }
          },
          "maxPagesPerWebsite": {
            "title": "Max pages per website",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Limit of pages captured for each website. The homepage comes first unless the URL filters exclude it.",
            "default": 50
          },
          "includeUrlPattern": {
            "title": "Only pages matching (regex)",
            "type": "string",
            "description": "Optional. Only capture website pages whose URL matches this regular expression, e.g. '/blog/' or '/(es|en)/products'."
          },
          "excludeUrlPattern": {
            "title": "Skip pages matching (regex)",
            "type": "string",
            "description": "Optional. Skip website pages whose URL matches this regular expression, e.g. '/tag/|/author/'."
          },
          "format": {
            "title": "Output format",
            "enum": [
              "png",
              "jpeg",
              "webp",
              "pdf"
            ],
            "type": "string",
            "description": "PNG (lossless), JPEG or WebP (much smaller files) or PDF (printable document). WebP is limited to 16,383 px: taller pages are saved as PNG.",
            "default": "png"
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "laptop",
              "tablet",
              "mobile",
              "custom"
            ],
            "type": "string",
            "description": "Device to emulate. Mobile and tablet use a real device user agent, touch and pixel ratio.",
            "default": "desktop"
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole scrollable page instead of just the visible viewport.",
            "default": true
          },
          "stitchFullPage": {
            "title": "Infinite-scroll mode (capture in slices)",
            "type": "boolean",
            "description": "For sites that unload images when they leave the screen (AliExpress, Instagram, Pinterest, Shein…): scrolls screen by screen, captures each part when it's loaded and stitches them into one image. Slower; use it only if a normal full-page capture shows grey or empty images.",
            "default": false
          },
          "maxPageHeight": {
            "title": "Max page height (px)",
            "minimum": 1000,
            "maximum": 100000,
            "type": "integer",
            "description": "Full-page captures stop at this height (CSS pixels, from the top). Output images are also limited to 65,000 real pixels (≈21,600 px of page on 3x mobile screens) so JPEG works and memory stays safe; the result includes a note when a page is cut.",
            "default": 30000
          },
          "acceptCookies": {
            "title": "Accept cookie consent",
            "type": "boolean",
            "description": "Clicks the 'Accept' button of cookie consent popups (OneTrust, Cookiebot, Didomi, Usercentrics… and generic buttons in 8 languages), so the page shows the content a consenting visitor sees.",
            "default": true
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners, popups & chat widgets",
            "type": "boolean",
            "description": "Hides any consent banner still visible, modal popups and chat widgets for clean screenshots. Works together with 'Accept cookie consent'.",
            "default": true
          },
          "blockAds": {
            "title": "Block ads & trackers",
            "type": "boolean",
            "description": "Blocks requests to major ad networks and trackers and hides ad slots. Pages load faster and screenshots are cleaner.",
            "default": true
          },
          "expandCarousels": {
            "title": "Show all carousel items",
            "type": "boolean",
            "description": "Unfolds horizontal carousels and sliders (product rows, image sliders…) into rows so every item is visible, including the ones hidden to the right. Useful for monitoring prices or products that sit off-screen in a carousel. Each carousel is swiped through first so its items load; items that still never load (empty placeholders) are left out and the result includes a note. Notes: the screenshot will no longer look exactly like the live page, and on mobile, cards are shown 2 per row, smaller than on the live page. Carousels that only load the next item when you click an arrow can't be unfolded. On mobile, pages with many carousels (big stores) get very long and may hit the maximum image height: use Desktop for more compact results. Small extra fee per page where at least one carousel was unfolded (see the Pricing tab); pages without carousels aren't charged for it.",
            "default": false
          },
          "monitorChanges": {
            "title": "Monitor visual changes",
            "type": "boolean",
            "description": "Compare each screenshot with the one from the previous run: get the % of the page that changed and an image with every changed area framed in red. Schedule the Actor (daily, hourly…) to watch competitors' prices, landing pages or terms. The first run saves the baseline.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor name",
            "type": "string",
            "description": "Screenshots are compared with previous runs that used the same monitor name. Use different names for independent monitors.",
            "default": "default"
          },
          "changeThreshold": {
            "title": "Change threshold (%)",
            "type": "string",
            "description": "Minimum % of the page area that must change to report it as changed. 0 = report any real change (a price or a single word counts; rendering noise is already filtered). Raise it (e.g. 1) for pages with rotating banners or clocks, or hide those areas with 'Extra elements to hide'.",
            "default": "0"
          },
          "webhookUrl": {
            "title": "Webhook URL for change alerts",
            "type": "string",
            "description": "Optional. When a page changes, a JSON POST is sent here (works with Slack/Discord via Zapier, Make, n8n or any webhook). Tip: hide dynamic areas (ads, carousels, dates) with 'Extra elements to hide' to avoid false alerts."
          },
          "viewportWidth": {
            "title": "Viewport width (custom device)",
            "minimum": 200,
            "maximum": 3840,
            "type": "integer",
            "description": "Only used when Device is 'Custom viewport'.",
            "default": 1920
          },
          "viewportHeight": {
            "title": "Viewport height (custom device)",
            "minimum": 200,
            "maximum": 2160,
            "type": "integer",
            "description": "Only used when Device is 'Custom viewport'.",
            "default": 1080
          },
          "selector": {
            "title": "Capture only this element (CSS selector)",
            "type": "string",
            "description": "Optional. Screenshot just the first element matching this selector, e.g. '#pricing' or 'header'."
          },
          "hideSelectors": {
            "title": "Extra elements to hide (CSS selectors)",
            "type": "array",
            "description": "Optional CSS selectors to hide before capturing, e.g. '.newsletter-popup'.",
            "items": {
              "type": "string"
            }
          },
          "cookies": {
            "title": "Cookies (for logged-in pages)",
            "type": "array",
            "description": "Optional. Cookies to set before loading each URL, e.g. a session cookie exported from your browser: [{\"name\": \"session\", \"value\": \"abc\", \"domain\": \".example.com\"}]. Without 'domain' the cookie applies to each URL's site."
          },
          "headers": {
            "title": "HTTP headers",
            "type": "object",
            "description": "Optional. Extra headers sent with every request, e.g. {\"Authorization\": \"Bearer …\"} or {\"Accept-Language\": \"es-ES\"}."
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "When the page is considered loaded. 'networkidle' is slower but safer for heavy JavaScript sites.",
            "default": "load"
          },
          "delayMs": {
            "title": "Extra delay before capture (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Wait this many milliseconds after loading (e.g. for animations).",
            "default": 0
          },
          "scrollToLoad": {
            "title": "Scroll to load lazy content",
            "type": "boolean",
            "description": "For full-page captures, scroll the page first so lazy-loaded images appear.",
            "default": true
          },
          "darkMode": {
            "title": "Dark mode",
            "type": "boolean",
            "description": "Emulate prefers-color-scheme: dark.",
            "default": false
          },
          "locale": {
            "title": "Browser locale",
            "type": "string",
            "description": "Optional, e.g. 'en-US', 'es-ES'. Affects language on sites that auto-detect it."
          },
          "quality": {
            "title": "Image quality (JPEG/WebP)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Only for JPEG and WebP output (1-100).",
            "default": 80
          },
          "pdfFormat": {
            "title": "PDF paper size",
            "enum": [
              "A4",
              "Letter",
              "Legal",
              "A3"
            ],
            "type": "string",
            "description": "Only for PDF output.",
            "default": "A4"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages are captured in parallel.",
            "default": 5
          },
          "timeoutSecs": {
            "title": "Page timeout (seconds)",
            "minimum": 5,
            "maximum": 180,
            "type": "integer",
            "description": "Maximum time to load and capture each page. Raise it for very slow or heavy sites.",
            "default": 45
          },
          "maxRetries": {
            "title": "Retries per URL",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "How many times a failed page is retried (timeouts, network errors). Error pages and blocked sites are not retried. Retries are never charged.",
            "default": 2
          },
          "captureErrorPages": {
            "title": "Capture error pages (4xx/5xx)",
            "type": "boolean",
            "description": "By default, pages that answer with an HTTP error (404, 403, 500…) are reported as errors and not charged. Turn this on to capture and charge them like any other page (e.g. to document a broken page).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Use a proxy for sites that block datacenter IPs or to capture a country-specific version. If a site returns HTTP 403 or the result says some images didn't load, choose Apify Proxy → Residential (and the site's country): the page is loaded through a real home connection, so it usually shows everything. Residential traffic is much more expensive than normal traffic (a heavy page can download 50+ MB through it), so each page captured through it has an extra fee (see the Pricing tab); failed pages are still free. The default proxy and your own proxy URLs have no extra fee.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}