{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot: Full Page, PNG/JPEG, Bulk ($2.5/1K)",
    "description": "Website screenshot capture with real Chrome: screenshot download link, page title, final URL, HTTP status, image size and format. Takes a list of URLs, full page or visible area, PNG or JPEG, any viewport width (desktop or mobile). Use it to archive web pages or check how sites render.",
    "version": "1.0",
    "x-build-id": "eW8T8anywQ1KQp0nR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tamnt67~website-screenshot/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tamnt67-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/tamnt67~website-screenshot/runs": {
      "post": {
        "operationId": "runs-sync-tamnt67-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/tamnt67~website-screenshot/run-sync": {
      "post": {
        "operationId": "run-sync-tamnt67-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": "Website URLs",
            "type": "array",
            "description": "Pages to capture, one per line. https:// is added when missing, so example.com works. If you give no URL, the Actor captures the example page https://apify.com.",
            "items": {
              "type": "string"
            }
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole scrolling page instead of only the visible area.",
            "default": false
          },
          "format": {
            "title": "Image format",
            "enum": [
              "png",
              "jpeg",
              "pdf"
            ],
            "type": "string",
            "description": "PNG is lossless; JPEG files are smaller. PDF saves the page as a PDF document (one page, as it looks on screen, with backgrounds).",
            "default": "png"
          },
          "quality": {
            "title": "JPEG quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "JPEG quality from 1 to 100. Lower values give smaller files. Used only for JPEG.",
            "default": 80
          },
          "viewportWidth": {
            "title": "Viewport width (px)",
            "minimum": 320,
            "maximum": 3840,
            "type": "integer",
            "description": "Browser window width. 1280 for desktop, 390 for a phone. Below 768 the page is loaded as a mobile browser (mobile user agent, touch, mobile layout).",
            "default": 1280
          },
          "viewportHeight": {
            "title": "Viewport height (px)",
            "minimum": 320,
            "maximum": 2160,
            "type": "integer",
            "description": "Browser window height. 800 for desktop, 844 for a phone.",
            "default": 800
          },
          "device": {
            "title": "Device preset",
            "enum": [
              "",
              "iPhone 15",
              "iPhone 15 Pro Max",
              "iPhone SE",
              "Pixel 7",
              "Galaxy S9+",
              "iPad Pro 11",
              "iPad Mini",
              "Desktop Chrome HiDPI"
            ],
            "type": "string",
            "description": "Capture as a real device size: viewport, pixel density, mobile user agent and touch. Leave empty to use Viewport width and height below.",
            "default": ""
          },
          "deviceScaleFactor": {
            "title": "Device scale factor (retina)",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Pixel density: 2 or 3 gives sharp high-DPI (retina) images that are 2 or 3 times larger. Empty means 1, or the device preset value."
          },
          "colorScheme": {
            "title": "Color scheme",
            "enum": [
              "",
              "light",
              "dark",
              "no-preference"
            ],
            "type": "string",
            "description": "Tell the page the visitor prefers light or dark mode. Only sites that support prefers-color-scheme change. Empty keeps the browser default (light).",
            "default": ""
          },
          "waitMs": {
            "title": "Extra wait (ms)",
            "minimum": 0,
            "maximum": 15000,
            "type": "integer",
            "description": "Wait this long after the page loads, so animations and late content can appear.",
            "default": 1500
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle",
              "commit"
            ],
            "type": "string",
            "description": "When the page counts as loaded before the screenshot. Load (default) waits for the load event; DOM content loaded is faster; Network idle waits until no requests run for 0.5 s (best for pages that load data late).",
            "default": "load"
          },
          "navigationTimeoutSecs": {
            "title": "Page load timeout (seconds)",
            "minimum": 5,
            "maximum": 180,
            "type": "integer",
            "description": "How long to wait for the page to load. A page still loading after this is captured as it is, with loadedFully false.",
            "default": 45
          },
          "waitForSelector": {
            "title": "Wait for CSS selector",
            "type": "string",
            "description": "Optional CSS selector to wait for (up to 15 s) before the screenshot, for example #main or .product-grid. If it does not appear, the page is captured anyway and the log says so."
          },
          "scrollToBottom": {
            "title": "Scroll to bottom first",
            "type": "boolean",
            "description": "Scroll down the page step by step before the screenshot, so lazy-loaded images and sections load. Useful with Full page.",
            "default": false
          },
          "elementSelector": {
            "title": "Capture only this element (CSS selector)",
            "type": "string",
            "description": "Optional CSS selector, for example header or #pricing. Only the first matching element is captured. Pages where it is not found are listed in FAILED_URLS and not charged. Ignored for PDF."
          },
          "selectorsToHide": {
            "title": "Hide elements (CSS selectors)",
            "type": "array",
            "description": "CSS selectors of elements to hide before the screenshot, for example .chat-widget or #newsletter-popup.",
            "items": {
              "type": "string"
            }
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners",
            "type": "boolean",
            "description": "Hide the consent banners of common cookie tools (OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast, Funding Choices and others) with CSS. Nothing is clicked or accepted. Banners from other tools may stay visible.",
            "default": false
          },
          "blockAdsAndTrackers": {
            "title": "Block ads and trackers",
            "type": "boolean",
            "description": "Do not load requests to common ad and tracking hosts (Google Ads, DoubleClick, Google Analytics, Facebook pixel, Taboola, Outbrain, Criteo, Hotjar and others). Pages load faster and show fewer ads.",
            "default": false
          },
          "customCss": {
            "title": "Custom CSS",
            "type": "string",
            "description": "Optional CSS added to every page before the screenshot, for example to hide or restyle elements."
          },
          "skipErrorPages": {
            "title": "Skip error pages",
            "type": "boolean",
            "description": "Do not save or charge pages that answer with an HTTP error (4xx or 5xx, for example 404 Not Found or 503). They are listed in the key-value store record FAILED_URLS with their status code. Turn off to capture error pages too.",
            "default": true
          },
          "maxItems": {
            "title": "Max screenshots",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Capture at most this many URLs.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional proxy, for example to see a page from another country.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}