{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot API: Bulk, Full Page, Mobile, PDF, AI Agents",
    "description": "Why pay $0.008 per screenshot? Cookie banners removed, dead URLs pre-checked before any browser starts, first 20 failures free, platform usage included. Bulk full-page, mobile, element or URL to PDF (PNG/JPEG/WebP/PDF). One API call gives your AI agent eyes.",
    "version": "1.0",
    "x-build-id": "gU16yPO4WcUFAxgJf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neocraft~website-screenshot-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neocraft-website-screenshot-pro",
        "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/neocraft~website-screenshot-pro/runs": {
      "post": {
        "operationId": "runs-sync-neocraft-website-screenshot-pro",
        "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/neocraft~website-screenshot-pro/run-sync": {
      "post": {
        "operationId": "run-sync-neocraft-website-screenshot-pro",
        "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 to capture",
            "type": "array",
            "description": "Web pages to capture (http or https). `https://` is added when missing. Max 2000 captures per run (URLs x devices). Duplicates are ignored. Private, local and reserved network addresses are refused and never charged.",
            "items": {
              "type": "string"
            }
          },
          "devices": {
            "title": "Devices",
            "type": "array",
            "description": "One capture per URL per device. Presets: desktop (1920x1080), desktop-hd (1920x1080 @2x), laptop (1440x900), laptop-small (1366x768), tablet (820x1180 @2x, touch), tablet-landscape (1180x820 @2x), mobile (390x844 @3x, touch), mobile-small (375x667 @2x), mobile-android (412x915 @2.625x), custom (uses viewportWidth / viewportHeight / deviceScaleFactor / isMobile).",
            "items": {
              "type": "string",
              "enum": [
                "desktop",
                "desktop-hd",
                "laptop",
                "laptop-small",
                "tablet",
                "tablet-landscape",
                "mobile",
                "mobile-small",
                "mobile-android",
                "custom"
              ],
              "enumTitles": [
                "Desktop 1920x1080",
                "Desktop HD 1920x1080 @2x (retina)",
                "Laptop 1440x900",
                "Laptop small 1366x768",
                "Tablet portrait 820x1180",
                "Tablet landscape 1180x820",
                "Mobile 390x844 @3x",
                "Mobile small 375x667",
                "Mobile Android 412x915",
                "Custom (see Custom viewport)"
              ]
            },
            "default": [
              "desktop"
            ]
          },
          "format": {
            "title": "Output format",
            "enum": [
              "png",
              "jpeg",
              "webp",
              "pdf"
            ],
            "type": "string",
            "description": "png (lossless, supports transparency), jpeg (smaller, uses quality), webp (smallest, uses quality, max 16383 px per side) or pdf (printable document, see the PDF section).",
            "default": "png"
          },
          "quality": {
            "title": "Quality (JPEG / WebP)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Compression quality 1-100 for jpeg and webp. Ignored for png and pdf.",
            "default": 80
          },
          "captureMode": {
            "title": "What to capture",
            "enum": [
              "fullPage",
              "viewport",
              "element",
              "clip"
            ],
            "type": "string",
            "description": "fullPage = the whole scrolling page (capped by maxHeight, with a notice); viewport = only what fits in the screen (above the fold); element = one element chosen by elementSelector; clip = a rectangle given in clip. Ignored for pdf.",
            "default": "fullPage"
          },
          "maxHeight": {
            "title": "Maximum height (px)",
            "minimum": 200,
            "maximum": 16000,
            "type": "integer",
            "description": "Full-page captures stop at this height in CSS pixels (200-16000). Taller pages are cut and the result says `truncated: true` with the full height. Very large retina captures may be cut lower to stay under 60 megapixels.",
            "default": 16000
          },
          "elementSelector": {
            "title": "Element selector",
            "type": "string",
            "description": "CSS selector of the element to capture when captureMode is element, e.g. `#pricing` or `main article`. The first match is used; if none is visible the capture fails with ELEMENT_NOT_FOUND (not charged as a screenshot)."
          },
          "clip": {
            "title": "Clip rectangle",
            "type": "object",
            "description": "Rectangle in CSS pixels from the top-left of the page when captureMode is clip, e.g. {\"x\": 0, \"y\": 0, \"width\": 1200, \"height\": 630} for a social preview image."
          },
          "transparentBackground": {
            "title": "Transparent background",
            "type": "boolean",
            "description": "Remove the default white background (png and webp only). Pages that paint their own background stay opaque; add customCss such as `html,body{background:transparent!important}` if needed.",
            "default": false
          },
          "waitUntil": {
            "title": "Page is ready when",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "load (default, all resources loaded), domcontentloaded (faster, HTML parsed) or networkidle (waits up to 10 s more for network silence; pages with live chat or analytics may never be idle, the capture then happens anyway with a warning).",
            "default": "load"
          },
          "delayMs": {
            "title": "Extra delay (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Additional wait after the page is ready, for animations or late content. 0-30000 ms, always within timeoutSecs.",
            "default": 0
          },
          "waitForSelector": {
            "title": "Wait for element",
            "type": "string",
            "description": "Optional CSS selector to wait for (visible) before capturing, e.g. `.product-grid`. If it does not appear in time the page is captured anyway with a warning."
          },
          "timeoutSecs": {
            "title": "Timeout per page (s)",
            "minimum": 5,
            "maximum": 90,
            "type": "integer",
            "description": "Maximum time to load and prepare each page in the browser (5-90 s, default 30). The capture itself gets a fixed extra 20 s. Before that, a quick pre-check without browser fails URLs that cannot be reached: 10 s to connect, 20 s for the first response byte (slow but alive sites pass).",
            "default": 30
          },
          "scrollToLoadLazyContent": {
            "title": "Scroll to load lazy images",
            "type": "boolean",
            "description": "Before full-page, element, clip and PDF captures, scroll down the page (max 8 s, stops at maxHeight or when the page stops growing) so lazy-loaded images appear, then scroll back to the top.",
            "default": true
          },
          "stickyElements": {
            "title": "Fixed and sticky elements",
            "enum": [
              "auto",
              "hide"
            ],
            "type": "string",
            "description": "auto = in full-page captures, fixed headers are shown once at the top and fixed bottom bars / chat bubbles are removed (no header stamped in the middle of the image); hide = hide every fixed and sticky element.",
            "default": "auto"
          },
          "cookieBanners": {
            "title": "Cookie banners",
            "enum": [
              "hide",
              "reject",
              "accept",
              "none"
            ],
            "type": "string",
            "description": "hide (default) = hide the banner with CSS, nothing is clicked and no consent is given; reject = click the banner's own 'Reject all' button (falls back to hide if there is none); accept = click its 'Accept all' button; none = leave the page untouched. Known platforms: OneTrust, Didomi, Cookiebot, Axeptio, Usercentrics, Quantcast, CookieYes, Complianz, iubenda, Sourcepoint, TrustArc and more, plus a generic detector.",
            "default": "hide"
          },
          "blockAds": {
            "title": "Block ads and trackers",
            "type": "boolean",
            "description": "Block common ad, analytics and session-replay hosts: faster, cleaner captures.",
            "default": true
          },
          "hideSelectors": {
            "title": "Hide elements",
            "type": "array",
            "description": "CSS selectors of elements to hide before capturing (e.g. chat widgets, promo bars). Max 50.",
            "items": {
              "type": "string"
            }
          },
          "customCss": {
            "title": "Custom CSS",
            "type": "string",
            "description": "CSS injected into every page before capture (max 20 KB)."
          },
          "customJs": {
            "title": "Custom JavaScript",
            "type": "string",
            "description": "JavaScript run in the page before capture (max 20 KB, `await` allowed, 10 s max). It runs inside the same sandbox: network access to private addresses stays blocked, request and time limits still apply. Errors are reported as warnings."
          },
          "colorScheme": {
            "title": "Color scheme",
            "enum": [
              "light",
              "dark",
              "no-preference"
            ],
            "type": "string",
            "description": "light, dark (sites that support prefers-color-scheme switch to dark mode) or no-preference.",
            "default": "light"
          },
          "reducedMotion": {
            "title": "Reduced motion",
            "type": "boolean",
            "description": "Ask the site to reduce animations (prefers-reduced-motion), for steadier captures.",
            "default": true
          },
          "disableAnimations": {
            "title": "Freeze CSS animations",
            "type": "boolean",
            "description": "Finish finite CSS animations and stop infinite ones at capture time (images only).",
            "default": true
          },
          "locale": {
            "title": "Browser language",
            "type": "string",
            "description": "Language the browser announces, e.g. en-US, fr-FR, de-DE, ja-JP. Sites that adapt to the visitor's language will follow it.",
            "default": "en-US"
          },
          "timezoneId": {
            "title": "Time zone",
            "type": "string",
            "description": "Optional IANA time zone for dates shown by the page, e.g. Europe/Paris or America/New_York. Default UTC."
          },
          "viewportWidth": {
            "title": "Custom viewport width",
            "minimum": 200,
            "maximum": 3840,
            "type": "integer",
            "description": "Width in CSS pixels (200-3840) for the `custom` device.",
            "default": 1280
          },
          "viewportHeight": {
            "title": "Custom viewport height",
            "minimum": 200,
            "maximum": 4320,
            "type": "integer",
            "description": "Height in CSS pixels (200-4320) for the `custom` device.",
            "default": 800
          },
          "deviceScaleFactor": {
            "title": "Custom pixel density",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "1 = normal, 2 = retina, 3 = high-end phone, for the `custom` device.",
            "default": 1
          },
          "isMobile": {
            "title": "Custom device is mobile",
            "type": "boolean",
            "description": "Mobile emulation (touch, mobile user agent, mobile layout) for the `custom` device.",
            "default": false
          },
          "pdfPageFormat": {
            "title": "PDF page size",
            "enum": [
              "A4",
              "Letter",
              "Legal",
              "A3",
              "A5",
              "Tabloid"
            ],
            "type": "string",
            "description": "Paper size of the PDF.",
            "default": "A4"
          },
          "pdfLandscape": {
            "title": "Landscape",
            "type": "boolean",
            "description": "Landscape orientation for the PDF.",
            "default": false
          },
          "pdfMarginMm": {
            "title": "Margins (mm)",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Margin on all four sides in millimetres (0-50).",
            "default": 10
          },
          "pdfPrintBackground": {
            "title": "Print backgrounds",
            "type": "boolean",
            "description": "Include background colours and images in the PDF.",
            "default": true
          },
          "pdfMediaType": {
            "title": "CSS media",
            "enum": [
              "screen",
              "print"
            ],
            "type": "string",
            "description": "screen = the PDF looks like the website on screen; print = use the site's print stylesheet.",
            "default": "screen"
          },
          "pdfMaxPages": {
            "title": "Maximum PDF pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Only the first N pages are kept (1-100, default 20); the result says truncated when the limit is reached.",
            "default": 20
          },
          "cookies": {
            "title": "Cookies (your own site only)",
            "type": "string",
            "description": "Session cookies for capturing pages of YOUR OWN site (or one you are authorized to access) behind a login: `name=value; name2=value2` (as copied from your browser's Cookie header) or a JSON array of {name, value}. Sent only over HTTPS to the exact host of each URL. Never logged or stored in the results."
          },
          "extraHeaders": {
            "title": "Extra HTTP headers (your own site only)",
            "type": "string",
            "description": "Extra request headers for YOUR OWN site (or one you are authorized to access), e.g. `Authorization: Bearer ...`, one `Name: value` per line or a JSON object. Sent only over HTTPS to the exact host of each URL (not to third-party resources). Host, Cookie, User-Agent, Sec-* and proxy headers are not allowed. Never logged or stored in the results."
          },
          "captureHttpErrorPages": {
            "title": "Capture HTTP error pages",
            "type": "boolean",
            "description": "By default a page answering 4xx/5xx (e.g. 404) is reported as HTTP_ERROR and not charged as a screenshot. Turn on to capture (and pay for) error pages too.",
            "default": false
          },
          "retries": {
            "title": "Retry once on temporary errors",
            "minimum": 0,
            "maximum": 1,
            "type": "integer",
            "description": "0 (default) or 1: retry once after a timeout or connection error. A retried URL still counts as one attempt and is never charged twice.",
            "default": 0
          },
          "maxConsecutiveFailures": {
            "title": "Stop after N failures in a row",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Stop the run after this many BROWSER failures in a row (1-50, default 5) so a broken list cannot burn time or money. URLs found unreachable by the pre-check (before any browser starts) do not count. Separately, after 3 browser failures on the same host, that host's remaining URLs are skipped (SKIPPED_HOST_FAILING). Skipped URLs are listed and never charged.",
            "default": 5
          },
          "maxConcurrency": {
            "title": "Parallel captures",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Pages captured at the same time (1-3, default 2). Use 1 for very heavy pages or large retina full-page captures.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}