{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot & PDF — Full Page, Mobile, Bulk URLs",
    "description": "Screenshot any list of URLs to PNG, JPEG or PDF: full page, visible area or one element, desktop or mobile. Cookie banners hidden, lazy images loaded. Pay only for screenshots that succeed – failed URLs are free.",
    "version": "0.1",
    "x-build-id": "ieDDipBXLkbQd8Teh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lundrik~website-screenshot/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lundrik-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/lundrik~website-screenshot/runs": {
      "post": {
        "operationId": "runs-sync-lundrik-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/lundrik~website-screenshot/run-sync": {
      "post": {
        "operationId": "run-sync-lundrik-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": "Pages to capture, e.g. https://example.com. Plain URL strings or {\"url\": \"...\"} objects (the input format of Apify's Website Screenshot Generator works as-is). Duplicates are removed.",
            "default": [
              "https://example.com",
              "https://apify.com"
            ]
          },
          "sitemapUrls": {
            "title": "Sitemaps (capture many pages of a site)",
            "type": "array",
            "description": "Optional: sitemap URLs, e.g. https://example.com/sitemap.xml. Pages listed in the sitemap (same host) are captured like URLs in `urls`, up to maxUrlsFromSitemaps. Sitemap indexes (2 levels, up to 30 files), .xml.gz and plain-text sitemaps work. Pages disallowed by robots.txt are skipped. If you give only sitemaps, the example URLs in `urls` are ignored automatically (or clear the field).",
            "items": {
              "type": "string"
            }
          },
          "maxUrlsFromSitemaps": {
            "title": "Max pages from sitemaps",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper limit of pages taken from all sitemaps together (in addition to `urls`) – keeps the cost of a run predictable.",
            "default": 100
          },
          "sitemapUrlFilter": {
            "title": "Only sitemap URLs containing",
            "type": "string",
            "description": "Optional text filter for sitemap URLs, e.g. /blog/ or /products/. Case-insensitive.",
            "default": ""
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt for sitemap pages",
            "type": "boolean",
            "description": "Pages found in sitemaps that the site's robots.txt disallows are skipped (free). URLs you type in `urls` are always captured.",
            "default": true
          },
          "format": {
            "title": "Format",
            "enum": [
              "png",
              "jpeg",
              "pdf"
            ],
            "type": "string",
            "description": "png = sharp, lossless (default); jpeg = smaller files; pdf = printable document of the page.",
            "default": "png"
          },
          "jpegQuality": {
            "title": "JPEG quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Only for JPEG.",
            "default": 80
          },
          "captureMode": {
            "title": "Capture mode",
            "enum": [
              "viewport",
              "fullPage",
              "top",
              "element"
            ],
            "type": "string",
            "description": "fullPage = the whole page top to bottom (default); viewport = only what fits on one screen; top = the first `topHeight` pixels (above-the-fold previews); element = one element picked by the CSS `selector`.",
            "default": "fullPage"
          },
          "topHeight": {
            "title": "Top height (px)",
            "minimum": 1,
            "maximum": 30000,
            "type": "integer",
            "description": "Only for captureMode = top: how many pixels from the top of the page to capture, e.g. 1200 for a link preview.",
            "default": 1200
          },
          "selector": {
            "title": "Element selector",
            "type": "string",
            "description": "Only for captureMode = element: CSS selector of the element to capture, e.g. #pricing or .hero. The first match is used.",
            "default": ""
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners",
            "type": "boolean",
            "description": "Hides consent banners of OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast, TrustArc, CookieYes, Complianz, Iubenda, Osano, Sourcepoint and typical cookie walls. Never clicks Accept.",
            "default": true
          },
          "fixStickyElements": {
            "title": "Show sticky elements once",
            "type": "boolean",
            "description": "Fixed/sticky headers and bars appear once in full-page images instead of repeating.",
            "default": true
          },
          "scrollToBottom": {
            "title": "Scroll to load lazy images",
            "type": "boolean",
            "description": "Scrolls down (time-limited) so lazy images load, then returns to the top.",
            "default": true
          },
          "maxScrollSecs": {
            "title": "Max scroll time (s)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Infinite-scroll pages stop here.",
            "default": 5
          },
          "delayAfterScrolling": {
            "title": "Delay after scrolling (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Pause after scrolling so late content can appear.",
            "default": 200
          },
          "waitUntilNetworkIdleAfterScroll": {
            "title": "Wait for network idle after scroll",
            "type": "boolean",
            "description": "After scrolling, wait briefly for the network to calm down.",
            "default": false
          },
          "waitUntilNetworkIdleAfterScrollTimeout": {
            "title": "Network idle timeout after scroll (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Upper limit for that wait.",
            "default": 3000
          },
          "networkIdleWaitSecs": {
            "title": "Network idle wait (s)",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Short, capped wait for the network to calm down after load. 0 = off.",
            "default": 1
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "laptop",
              "tablet",
              "mobile"
            ],
            "type": "string",
            "description": "Screen size and mobile emulation (touch, mobile layout). Override the size with viewportWidth / viewportHeight.",
            "default": "desktop"
          },
          "viewportWidth": {
            "title": "Viewport width (px)",
            "minimum": 0,
            "maximum": 3840,
            "type": "integer",
            "description": "0 = use the device width (desktop 1280).",
            "default": 0
          },
          "viewportHeight": {
            "title": "Viewport height (px)",
            "minimum": 0,
            "maximum": 4000,
            "type": "integer",
            "description": "0 = use the device height (desktop 800).",
            "default": 0
          },
          "deviceScaleFactor": {
            "title": "Pixel ratio",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "2 = retina.",
            "default": 1
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle",
              "networkidle0",
              "networkidle2"
            ],
            "type": "string",
            "description": "When the page counts as loaded. load (default) is right for most pages; domcontentloaded is faster; networkidle waits for quiet network (capped, never hangs). networkidle0/2 from Apify's Website Screenshot Generator are accepted.",
            "default": "load"
          },
          "waitForSelector": {
            "title": "Wait for selector",
            "type": "string",
            "description": "Optional CSS selector to wait for before the capture (e.g. a chart or price that loads late). If it never appears, the URL fails with SELECTOR_NOT_FOUND (free).",
            "default": ""
          },
          "delay": {
            "title": "Extra delay (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Extra fixed wait in milliseconds before the capture, for animations. Usually not needed – the Actor already waits for load, a short network-idle window and web fonts.",
            "default": 0
          },
          "selectorsToHide": {
            "title": "Selectors to hide",
            "type": "string",
            "description": "CSS selectors to hide before the capture (chat widgets, popups, ads), one per line or comma-separated, e.g. #intercom-container, .newsletter-popup",
            "default": ""
          },
          "darkMode": {
            "title": "Dark mode",
            "type": "boolean",
            "description": "Ask pages for their dark colour scheme.",
            "default": false
          },
          "maxHeight": {
            "title": "Max image height (px)",
            "minimum": 200,
            "maximum": 30000,
            "type": "integer",
            "description": "Pages taller than this are cut at this height and marked truncated: true. Very long pages are captured in strips and stitched, so they do not time out.",
            "default": 15000
          },
          "expandScrollContainers": {
            "title": "Full page for apps that scroll inside a box",
            "type": "boolean",
            "description": "Some sites (web apps, dashboards, docs) scroll inside an inner container, so a normal full-page capture shows only one screen. This expands that container so the whole content is captured. Applies to fullPage, top and PDF.",
            "default": true
          },
          "pageTimeoutSecs": {
            "title": "Timeout per URL (s)",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum time for one URL. Slower pages fail as TIMEOUT and are free.",
            "default": 45
          },
          "captureErrorPages": {
            "title": "Capture error pages (404/500)",
            "type": "boolean",
            "description": "If off, HTTP errors are reported as free failures.",
            "default": false
          },
          "ignoreHttpsErrors": {
            "title": "Ignore HTTPS certificate errors",
            "type": "boolean",
            "description": "Capture pages with an expired, self-signed or otherwise invalid certificate (staging sites, intranet test servers that are publicly reachable). Off = such pages fail with SSL_ERROR (free).",
            "default": false
          },
          "pdfPaperFormat": {
            "title": "PDF paper",
            "enum": [
              "A4",
              "Letter"
            ],
            "type": "string",
            "description": "Paper size for PDF output.",
            "default": "A4"
          },
          "maxConcurrency": {
            "title": "Parallel pages",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "How many pages are captured at the same time. 0 = automatic (recommended).",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}