{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot Batch with Change Detection",
    "description": "Take screenshots of up to 100 public web pages per run and compare each one with the screenshot stored by your previous run: changed or not, by how much, and a highlighted difference image when it changed. Respects robots.txt, refuses private and internal addresses, no sign-in.",
    "version": "0.1",
    "x-build-id": "iorCuLXQTtMB6HuZS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bardach_technologies~website-screenshot-batch/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bardach_technologies-website-screenshot-batch",
        "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/bardach_technologies~website-screenshot-batch/runs": {
      "post": {
        "operationId": "runs-sync-bardach_technologies-website-screenshot-batch",
        "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/bardach_technologies~website-screenshot-batch/run-sync": {
      "post": {
        "operationId": "run-sync-bardach_technologies-website-screenshot-batch",
        "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": "Page URLs",
            "maxItems": 100,
            "type": "array",
            "description": "The pages to capture, one per line, at most 100 per run, each listed once. http or https only. The same URL with the same capture settings is compared with its stored screenshot; change the viewport, full-page or format setting and it counts as a new page (first capture). Each captured page costs USD 0.001, plus USD 0.0008 when it was compared with an earlier screenshot. Pages skipped by robots.txt, blocked as unsafe or failed are not charged.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "viewportWidth": {
            "title": "Viewport width (px)",
            "minimum": 320,
            "maximum": 3840,
            "type": "integer",
            "description": "Browser window width in pixels (320 to 3840).",
            "default": 1280
          },
          "viewportHeight": {
            "title": "Viewport height (px)",
            "minimum": 240,
            "maximum": 4000,
            "type": "integer",
            "description": "Browser window height in pixels (240 to 4000). With full page on, this is only the starting height.",
            "default": 800
          },
          "fullPage": {
            "title": "Capture the full page",
            "type": "boolean",
            "description": "On: the whole scrollable page up to 10,000 px tall (a taller page is cut there and its row says truncated). Off: only the visible viewport.",
            "default": true
          },
          "format": {
            "title": "Image format",
            "enum": [
              "png",
              "jpeg"
            ],
            "type": "string",
            "description": "PNG is lossless and the best choice for change detection. JPEG is smaller; small colour noise below the comparison tolerance is ignored.",
            "default": "png"
          },
          "jpegQuality": {
            "title": "JPEG quality",
            "minimum": 30,
            "maximum": 95,
            "type": "integer",
            "description": "30 to 95. Only used when the format is JPEG. A different quality counts as a different capture setting.",
            "default": 80
          },
          "waitUntil": {
            "title": "Wait for",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "When the page counts as loaded: 'load' (the load event), 'domcontentloaded' (faster) or 'networkidle' (no network traffic for half a second; pages that never go quiet then time out and fail).",
            "default": "load"
          },
          "waitTimeoutSec": {
            "title": "Wait time limit (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Time limit for reaching the wait condition (and for taking the screenshot), 5 to 60. This also sets the hard limit for the whole page: waitTimeoutSec + extra wait + 10 seconds, at most 80 seconds, after which the page is stopped even if its JavaScript never returns. A page that does not make it fails and is not charged.",
            "default": 30
          },
          "extraWaitMs": {
            "title": "Extra wait after loading (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Extra time to let animations and late content settle before the screenshot, 0 to 10,000.",
            "default": 0
          },
          "concurrency": {
            "title": "Pages at the same time",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many pages are captured in parallel, 1 to 4. 1 is the politest and uses the least memory.",
            "default": 1
          },
          "changeThreshold": {
            "title": "Change threshold (share of pixels)",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "A page counts as changed when more than this share of its pixels differ from the stored screenshot. The default 0 reports any difference above the colour tolerance (a changed price or headline on a long page is a few hundredths of a percent, so a higher value would hide it); two captures of an unchanged page give exactly 0. Raise it, for example to 0.001 (0.1 %), only if your pages jitter. The share is always reported in 'changeRatio', and the number of separate changed areas in 'changedRegions', whatever the threshold. A difference image is written only for changed pages.",
            "default": 0
          },
          "compareWithPrevious": {
            "title": "Compare with the previous screenshot",
            "type": "boolean",
            "description": "On: compare each page with the screenshot stored by your last run and store the new one for next time (the comparison is the second chargeable event). Off: plain screenshots, nothing stored between runs, no comparison charge.",
            "default": true
          },
          "ignoreSelectors": {
            "title": "Hide these elements (CSS selectors)",
            "maxItems": 20,
            "type": "array",
            "description": "CSS selectors of elements to hide before the screenshot, for example a clock, a cookie banner or a rotating ad: '#clock', '.promo-banner'. They keep their space but are not drawn, so they never count as a change. At most 20, each up to 200 characters; no braces, semicolons or @. A selector that matches nothing is ignored. Changing this list makes a page a new capture (first capture).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "ignoreRegions": {
            "title": "Ignore these rectangles in the comparison",
            "type": "array",
            "description": "Rectangles (in screenshot pixels from the top left) that are left out of the comparison, for areas you cannot select with CSS: [{\"x\": 0, \"y\": 0, \"width\": 300, \"height\": 60}]. At most 50. The screenshot itself is stored unchanged. Changing them does not start a new capture.",
            "default": []
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}