{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot & PDF: Full Page, Mobile, Bulk URLs",
    "description": "Capture full-page or viewport screenshots (PNG, JPEG, WebP) and PDFs of any list of URLs or a sitemap. Desktop, laptop, tablet and phone presets, cookie banners closed, lazy images loaded, dark mode, wait for selectors. From $2 per 1,000 screenshots.",
    "version": "1.0",
    "x-build-id": "OlOzro5NcZxtYuN9l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/4b47~website-screenshot/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-4b47-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/4b47~website-screenshot/runs": {
      "post": {
        "operationId": "runs-sync-4b47-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/4b47~website-screenshot/run-sync": {
      "post": {
        "operationId": "run-sync-4b47-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, one per line (domains without https:// work too). Up to 50,000.",
            "items": {
              "type": "string"
            }
          },
          "devices": {
            "title": "Devices",
            "type": "array",
            "description": "One capture per URL and device. Desktop 1366x768, Desktop HD 1920x1080, Laptop 1440x900 (retina 2x), Tablet 834x1194 (iPad Pro 11, 2x), Mobile 393x659 (iPhone 15, 3x), Android 412x839 (Pixel 7). Mobile presets send the device's user agent, so sites serve their mobile layout.",
            "items": {
              "type": "string",
              "enum": [
                "desktop",
                "desktop-hd",
                "laptop",
                "tablet",
                "mobile",
                "mobile-android"
              ],
              "enumTitles": [
                "Desktop (1366x768)",
                "Desktop HD (1920x1080)",
                "Laptop retina (1440x900 @2x)",
                "Tablet (834x1194 @2x)",
                "iPhone (393x659 @3x)",
                "Android (412x839 @2.6x)"
              ]
            },
            "default": [
              "desktop"
            ]
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole scrollable page (lazy images are scrolled into view first). Off = only the visible viewport.",
            "default": true
          },
          "format": {
            "title": "Image format",
            "enum": [
              "png",
              "jpeg",
              "webp",
              "none"
            ],
            "type": "string",
            "description": "PNG (lossless), JPEG or WebP (much smaller files). None = PDF only.",
            "default": "png"
          },
          "quality": {
            "title": "JPEG / WebP quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "1-100.",
            "default": 80
          },
          "pdf": {
            "title": "Also save PDF",
            "type": "boolean",
            "description": "Print each page to a PDF (A4 by default, backgrounds included), saved next to the screenshot.",
            "default": false
          },
          "dismissCookieBanners": {
            "title": "Close cookie banners",
            "type": "boolean",
            "description": "Click \"Accept\" on common consent banners (OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast, TrustArc and ~25 more, plus accept buttons in 15+ languages), then hide leftover cookie overlays.",
            "default": true
          },
          "darkMode": {
            "title": "Dark mode",
            "type": "boolean",
            "description": "Ask the page for its dark color scheme (prefers-color-scheme: dark). Sites without a dark theme look the same.",
            "default": false
          },
          "waitForSelector": {
            "title": "Wait for selector",
            "type": "string",
            "description": "CSS selector that must be visible before capturing (e.g. .product-grid, #chart canvas). If it never appears the URL fails (free)."
          },
          "delayMs": {
            "title": "Extra delay (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Wait this long after the page is ready (animations, charts, late widgets).",
            "default": 0
          },
          "waitUntil": {
            "title": "Page is ready when",
            "enum": [
              "load",
              "networkidle",
              "domcontentloaded"
            ],
            "type": "string",
            "description": "Load (default) plus up to 3 s for the network to go quiet; Network idle waits for no requests for 500 ms (slower, for dashboards); DOM ready is fastest.",
            "default": "load"
          },
          "selector": {
            "title": "Capture only this element",
            "type": "string",
            "description": "CSS selector of one element to capture instead of the page (e.g. header, #pricing)."
          },
          "hideSelectors": {
            "title": "Hide elements",
            "type": "array",
            "description": "CSS selectors to hide before capturing: chat widgets, ads, sticky bars (e.g. #intercom-container, .ad-slot).",
            "items": {
              "type": "string"
            }
          },
          "sitemapUrls": {
            "title": "Sitemaps",
            "type": "array",
            "description": "sitemap.xml URLs (indexes and .gz work): their pages are captured too, up to \"Max pages per sitemap\".",
            "items": {
              "type": "string"
            }
          },
          "maxPagesPerSitemap": {
            "title": "Max pages per sitemap",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper limit of pages taken from each sitemap.",
            "default": 100
          },
          "viewportWidth": {
            "title": "Custom viewport width",
            "minimum": 200,
            "maximum": 3840,
            "type": "integer",
            "description": "Overrides the width of the first device (200-3840 px)."
          },
          "viewportHeight": {
            "title": "Custom viewport height",
            "minimum": 200,
            "maximum": 2400,
            "type": "integer",
            "description": "Overrides the height of the first device (200-2400 px)."
          },
          "maxHeight": {
            "title": "Max page height (px)",
            "minimum": 500,
            "maximum": 16000,
            "type": "integer",
            "description": "Full-page captures longer than this are cut (and marked truncated). Also capped at 16,384 device pixels (5,461 CSS px on 3x phones).",
            "default": 15000
          },
          "pdfFormat": {
            "title": "PDF paper size",
            "enum": [
              "A4",
              "Letter",
              "Legal",
              "A3"
            ],
            "type": "string",
            "description": "Paper size of the PDF.",
            "default": "A4"
          },
          "pdfLandscape": {
            "title": "PDF landscape",
            "type": "boolean",
            "description": "Landscape orientation.",
            "default": false
          },
          "pdfMedia": {
            "title": "PDF styles",
            "enum": [
              "screen",
              "print"
            ],
            "type": "string",
            "description": "Screen: the PDF looks like the page on screen. Print: use the site's print stylesheet.",
            "default": "screen"
          },
          "scrollToLoad": {
            "title": "Scroll to load lazy content",
            "type": "boolean",
            "description": "Scroll through the page before a full-page capture so lazy-loaded images appear.",
            "default": true
          },
          "blockTrackers": {
            "title": "Block trackers and ads scripts",
            "type": "boolean",
            "description": "Skip ~40 analytics, ad and session-replay services (Google Analytics, Tag Manager, DoubleClick, Hotjar, Meta pixel, ...). Faster, lighter, no visual change on most pages.",
            "default": true
          },
          "blockMedia": {
            "title": "Block video and audio",
            "type": "boolean",
            "description": "Do not download video/audio streams (posters still show). Saves time and data.",
            "default": true
          },
          "timeoutSecs": {
            "title": "Page timeout (s)",
            "minimum": 5,
            "maximum": 180,
            "type": "integer",
            "description": "Max wait for a page to load. A page that is still loading after this is captured as it is (marked timedOut).",
            "default": 30
          },
          "maxConcurrency": {
            "title": "Pages in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Default: one browser tab per GB of run memory (2 at the default 2 GB, up to 8)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}