{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot API: Bulk URL to PNG/JPEG",
    "description": "Take screenshots of any list of websites with headless Chrome: viewport or full page, desktop or mobile, PNG or JPEG, retina scale, delay and cookie-banner hiding. Each image gets a public URL. Fast, cheap pay-per-screenshot pricing.",
    "version": "0.1",
    "x-build-id": "5gDw1yBQgr6yr8r4w"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/liora-tools~website-screenshot/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-liora-tools-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/liora-tools~website-screenshot/runs": {
      "post": {
        "operationId": "runs-sync-liora-tools-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/liora-tools~website-screenshot/run-sync": {
      "post": {
        "operationId": "run-sync-liora-tools-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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "URLs",
            "type": "array",
            "description": "Pages to capture.",
            "items": {
              "type": "string"
            }
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "mobile"
            ],
            "type": "string",
            "description": "Mobile uses an iPhone user agent and touch viewport.",
            "default": "desktop"
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole scrollable page instead of just the viewport.",
            "default": false
          },
          "format": {
            "title": "Image format",
            "enum": [
              "png",
              "jpeg",
              "pdf"
            ],
            "type": "string",
            "description": "JPEG files are much smaller.",
            "default": "png"
          },
          "jpegQuality": {
            "title": "JPEG quality",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "Only for JPEG.",
            "default": 80
          },
          "viewportWidth": {
            "title": "Viewport width (px)",
            "minimum": 320,
            "maximum": 3840,
            "type": "integer",
            "description": "Default 1280 (desktop) or 390 (mobile)."
          },
          "viewportHeight": {
            "title": "Viewport height (px)",
            "minimum": 320,
            "maximum": 4000,
            "type": "integer",
            "description": "Default 800 (desktop) or 844 (mobile)."
          },
          "deviceScaleFactor": {
            "title": "Scale factor",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "2 = retina.",
            "default": 1
          },
          "selector": {
            "title": "Element only (CSS selector)",
            "type": "string",
            "description": "Capture just one element, e.g. #pricing, .chart, header.",
            "default": ""
          },
          "hideSelectors": {
            "title": "Hide elements",
            "type": "array",
            "description": "CSS selectors to hide before capturing (chat widgets, popups, ads).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "waitForSelector": {
            "title": "Wait for element",
            "type": "string",
            "description": "Wait until this CSS selector appears before capturing.",
            "default": ""
          },
          "scrollToBottom": {
            "title": "Scroll to load lazy images",
            "type": "boolean",
            "description": "Scrolls the page once (up to 30,000 px) so lazy-loaded images appear, then returns to the top.",
            "default": false
          },
          "darkMode": {
            "title": "Dark mode",
            "type": "boolean",
            "description": "Emulates prefers-color-scheme: dark.",
            "default": false
          },
          "blockAds": {
            "title": "Block ads and trackers",
            "type": "boolean",
            "description": "Blocks requests to ~30 common ad/analytics hosts. Cleaner and faster screenshots.",
            "default": false
          },
          "customCss": {
            "title": "Custom CSS",
            "type": "string",
            "description": "CSS injected before capturing.",
            "default": ""
          },
          "transparentBackground": {
            "title": "Transparent background (PNG)",
            "type": "boolean",
            "description": "Omit the default white background.",
            "default": false
          },
          "locale": {
            "title": "Browser locale",
            "type": "string",
            "description": "e.g. de-DE, fr-FR, ja-JP. Sets navigator.language and Accept-Language.",
            "default": "en-US"
          },
          "timezoneId": {
            "title": "Browser time zone",
            "type": "string",
            "description": "IANA zone, e.g. Europe/Berlin.",
            "default": ""
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "When the page counts as loaded.",
            "default": "load"
          },
          "delayMs": {
            "title": "Extra delay (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Wait after load, for example for animations.",
            "default": 0
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners",
            "type": "boolean",
            "description": "Hides common consent pop-ups with CSS. Nothing is clicked or accepted.",
            "default": true
          },
          "maxFullPageHeight": {
            "title": "Max full-page height (px)",
            "minimum": 1000,
            "maximum": 20000,
            "type": "integer",
            "description": "Very long pages are cut at this height.",
            "default": 8000
          },
          "timeoutSecs": {
            "title": "Timeout per page (s)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Pages that take longer fail (free).",
            "default": 30
          },
          "waitForImagesAndFonts": {
            "title": "Wait for images and web fonts",
            "type": "boolean",
            "description": "Before the shot, wait until web fonts and images have loaded (up to 5 s for images near the top, up to 8 s for the whole page in full-page or scroll mode), so you do not get loading spinners or blank image boxes.",
            "default": true
          },
          "fixStickyHeaders": {
            "title": "Show sticky headers once (full page)",
            "type": "boolean",
            "description": "For full-page shots, fixed and sticky headers, chat bubbles and bars are pinned in place so they appear once instead of floating over the middle or bottom of the image. Pages that scroll inside an inner box are expanded so the full page is captured.",
            "default": true
          },
          "blankIsFailure": {
            "title": "Blank screenshots are free failures",
            "type": "boolean",
            "description": "If the image is one flat colour (white or black page, unrendered app), it is reported as an error and not charged.",
            "default": true
          },
          "maxRetries": {
            "title": "Retries on timeout",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Retry page loading when it times out. Retries are not charged.",
            "default": 1
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Skip pages the site disallows for crawlers (free).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Pages in parallel",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Higher values need more memory.",
            "default": 3
          },
          "compareWithPrevious": {
            "title": "Visual change monitor",
            "type": "boolean",
            "description": "Compares each screenshot with the one from the previous run (same URL and settings) and reports diffPercent and changed. The old image is saved when something changed.",
            "default": false
          },
          "changeThresholdPercent": {
            "title": "Change threshold (% of pixels)",
            "type": "string",
            "description": "A screenshot counts as changed when at least this share of pixels differs.",
            "default": "0.5"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}