{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot Crawler",
    "description": "Screenshot a whole website from one domain or sitemap: every page in desktop and mobile view, as PNG, JPEG, WebP or PDF, with cookie banners and ads hidden. On a schedule it flags which pages changed since the last run and links before, after and difference images.",
    "version": "0.1",
    "x-build-id": "PXWGxbbcbjjULvVFu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pumpkinapi~website-screenshot-crawler/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pumpkinapi-website-screenshot-crawler",
        "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/pumpkinapi~website-screenshot-crawler/runs": {
      "post": {
        "operationId": "runs-sync-pumpkinapi-website-screenshot-crawler",
        "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/pumpkinapi~website-screenshot-crawler/run-sync": {
      "post": {
        "operationId": "run-sync-pumpkinapi-website-screenshot-crawler",
        "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": "Websites, pages or sitemaps",
            "type": "array",
            "description": "One address per line. A domain such as example.com covers the whole site. An address with a path such as example.com/blog covers that section. A link to a sitemap .xml file takes the pages listed in it.",
            "items": {
              "type": "string"
            }
          },
          "crawlMode": {
            "title": "Which pages to capture",
            "enum": [
              "site",
              "sitemap",
              "links",
              "listed"
            ],
            "type": "string",
            "description": "Whole website reads the sitemap and follows links only if there is no sitemap. Sitemap only never follows links. Follow links ignores the sitemap. Listed pages only captures exactly the addresses above.",
            "default": "site"
          },
          "maxPagesPerSite": {
            "title": "Maximum pages per website",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stops adding pages after this many for each address above. With a long sitemap the pages with the shortest paths go first, so the home page and main sections are kept. Each device of a page is one screenshot. Listed pages only ignores this limit.",
            "default": 100
          },
          "devices": {
            "title": "Devices",
            "type": "array",
            "description": "Each page is captured once per device. Desktop is 1440 x 900 by default, tablet is 820 x 1180, mobile is 390 x 844 with double pixel density and a mobile browser identity.",
            "items": {
              "type": "string",
              "enum": [
                "desktop",
                "tablet",
                "mobile"
              ],
              "enumTitles": [
                "Desktop",
                "Tablet",
                "Mobile"
              ]
            },
            "default": [
              "desktop",
              "mobile"
            ]
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Use the same name on every run to compare with the previous one: each row then says new, changed or unchanged, and changed rows link to the old image and a picture of the difference. The last two images of each page stay in a named key-value store in your account. Leave empty to skip this. Does not work with PDF."
          },
          "changeThresholdPercent": {
            "title": "Change threshold",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "A page counts as changed when more than this share of its pixels moved. 0 catches a single changed digit. Raise it, or use Elements to hide, if rotating content marks pages as changed.",
            "default": 0
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole page from top to bottom. Turn off to capture only the first screen.",
            "default": true
          },
          "format": {
            "title": "Format",
            "enum": [
              "jpeg",
              "png",
              "webp",
              "pdf"
            ],
            "type": "string",
            "description": "JPEG is the default: fast and small. PNG is exact, but a page with many photos can take 10 MB. WebP is the smallest and stops at 16,383 pixels of height. PDF gives a printable document with A4 pages.",
            "default": "jpeg"
          },
          "quality": {
            "title": "Image quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "From 1 to 100, for JPEG and WebP only.",
            "default": 80
          },
          "desktopWidth": {
            "title": "Desktop width",
            "minimum": 320,
            "maximum": 3840,
            "type": "integer",
            "description": "Browser width for the desktop device.",
            "default": 1440
          },
          "desktopHeight": {
            "title": "Desktop height",
            "minimum": 240,
            "maximum": 2160,
            "type": "integer",
            "description": "Browser height for the desktop device. With Full page turned off this is also the height of the image.",
            "default": 900
          },
          "maxHeight": {
            "title": "Maximum page height",
            "minimum": 240,
            "maximum": 60000,
            "type": "integer",
            "description": "Taller pages are cut at this height and the row says truncated. It keeps endless pages from growing without limit.",
            "default": 20000
          },
          "selector": {
            "title": "Capture one element",
            "type": "string",
            "description": "CSS selector. When set, only the first matching element is captured, for example #pricing. Pages without it give a free row with an error."
          },
          "darkMode": {
            "title": "Dark mode",
            "type": "boolean",
            "description": "Ask the page for its dark theme. Sites without one look the same.",
            "default": false
          },
          "locale": {
            "title": "Browser language",
            "type": "string",
            "description": "Language the browser asks for, such as en-US or de-DE. Sites with several languages may answer with that one.",
            "default": "en-US"
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners",
            "type": "boolean",
            "description": "Hide cookie and consent banners. No button is clicked, so no consent is given.",
            "default": true
          },
          "blockAds": {
            "title": "Block ads and trackers",
            "type": "boolean",
            "description": "Do not load common ad and tracker networks. Pages load faster and ads do not show up as changes.",
            "default": true
          },
          "hideFloatingElements": {
            "title": "Hide floating bars",
            "type": "boolean",
            "description": "In full page images, hide fixed bars and chat buttons that would otherwise float in the middle of the image. Headers at the top stay.",
            "default": true
          },
          "hideSelectors": {
            "title": "Elements to hide",
            "type": "array",
            "description": "CSS selectors, one per line. Good for clocks, sliders and banners that change on every visit.",
            "items": {
              "type": "string"
            }
          },
          "waitUntil": {
            "title": "Page is ready when",
            "enum": [
              "load",
              "networkidle",
              "domcontentloaded"
            ],
            "type": "string",
            "description": "Load suits most sites. Network idle waits up to 10 seconds longer for pages that keep fetching data. DOM ready is the fastest and may miss images.",
            "default": "load"
          },
          "extraWaitSecs": {
            "title": "Extra wait",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Wait this long after the page is ready, for example for a slow chart.",
            "default": 0
          },
          "waitForSelector": {
            "title": "Wait for element",
            "type": "string",
            "description": "CSS selector to wait for before the image is taken. If it never appears, the image is still taken and the row says so."
          },
          "scrollPage": {
            "title": "Scroll through the page",
            "type": "boolean",
            "description": "Scroll down and back up before a full page image, so lazy images load.",
            "default": true
          },
          "pageTimeoutSecs": {
            "title": "Page timeout",
            "minimum": 5,
            "maximum": 180,
            "type": "integer",
            "description": "How long one page may take to respond. A page that fails gets one more try at the end of the run.",
            "default": 30
          },
          "includePatterns": {
            "title": "Only pages matching",
            "type": "array",
            "description": "Keep only pages that match one of these. Use * as a wildcard, as in /blog/*. Text without * matches any part of the address. In Follow links mode this also limits which links are followed.",
            "items": {
              "type": "string"
            }
          },
          "excludePatterns": {
            "title": "Skip pages matching",
            "type": "array",
            "description": "Skip pages that match one of these, such as /tag/* or ?page=.",
            "items": {
              "type": "string"
            }
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Skip pages that the robots.txt file of the site disallows. Addresses you list yourself in Listed pages only mode are always opened.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}