{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot Crawler",
    "description": "Returns one screenshot per page and device (JPEG or PNG, full page up to 15,000 px) with its link, URL, title and HTTP status, plus an HTML gallery. Finds a website's pages via its sitemaps or takes a URL list. Desktop, mobile or both; hides cookie banners, blocks ads, can capture only new pages.",
    "version": "1.0",
    "x-build-id": "dei5a6jUyD1OQDe4J"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/urameshi7k~website-screenshot-crawler/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-urameshi7k-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/urameshi7k~website-screenshot-crawler/runs": {
      "post": {
        "operationId": "runs-sync-urameshi7k-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/urameshi7k~website-screenshot-crawler/run-sync": {
      "post": {
        "operationId": "run-sync-urameshi7k-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",
        "properties": {
          "websites": {
            "title": "Websites",
            "type": "array",
            "description": "Domains or sitemaps to capture page by page, for example example.com or https://example.com/blog/. Pages are found through robots.txt and the sitemaps. A website without a sitemap gets its start page captured; Only new pages needs a sitemap.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Specific pages",
            "type": "array",
            "description": "Exact page URLs to capture, in addition to (or instead of) whole websites.",
            "items": {
              "type": "string"
            }
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of pages to capture in this run. Each device counts as one screenshot, so 20 pages on desktop and mobile = 40 screenshots. Pages past it are not captured; the run log and OUTPUT say so.",
            "default": 20
          },
          "devices": {
            "title": "Devices",
            "enum": [
              "desktop",
              "mobile",
              "desktop-and-mobile",
              "all-devices"
            ],
            "type": "string",
            "description": "Which screens to capture each page on. Desktop is 1440×900, tablet is an iPad Pro 11 and mobile is an iPhone 14.",
            "default": "desktop"
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole page height (up to the max height below). Turn off to capture only the first screen.",
            "default": true
          },
          "format": {
            "title": "Image format",
            "enum": [
              "jpeg",
              "png"
            ],
            "type": "string",
            "description": "JPEG files are much smaller; PNG is lossless.",
            "default": "jpeg"
          },
          "quality": {
            "title": "JPEG quality",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "From 10 to 100. Ignored for PNG.",
            "default": 80
          },
          "retina": {
            "title": "High resolution (retina)",
            "type": "boolean",
            "description": "Render like a retina screen: twice the pixel density on desktop and tablet (images 4 times larger), three times on mobile (9 times larger).",
            "default": false
          },
          "maxPageHeight": {
            "title": "Max page height (px)",
            "minimum": 1000,
            "maximum": 30000,
            "type": "integer",
            "description": "Very long pages are cut at this height so the image stays usable. With High resolution on mobile, a JPEG stops at 21,833 px, the most it holds.",
            "default": 15000
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners and pop-ups",
            "type": "boolean",
            "description": "Hide consent banners (OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast and others) and newsletter pop-ups (Klaviyo, Privy, Attentive, OptinMonster, Mailchimp and others) before capturing. Nothing is clicked or accepted on your behalf.",
            "default": true
          },
          "blockAds": {
            "title": "Block ads and trackers",
            "type": "boolean",
            "description": "Block requests to major ad networks and analytics trackers. Pages load faster and screenshots look cleaner.",
            "default": true
          },
          "reduceMotion": {
            "title": "Reduce motion",
            "type": "boolean",
            "description": "Ask pages to skip animations and not autoplay videos (prefers-reduced-motion). Captures are faster and steadier. Turn off to capture moving content as it plays.",
            "default": true
          },
          "darkMode": {
            "title": "Dark mode",
            "type": "boolean",
            "description": "Ask pages for their dark color scheme (prefers-color-scheme: dark).",
            "default": false
          },
          "includeUrlPatterns": {
            "title": "Only pages matching",
            "type": "array",
            "description": "Capture only pages whose URL matches one of these regular expressions, for example /blog/ or /products/.",
            "items": {
              "type": "string"
            }
          },
          "excludeUrlPatterns": {
            "title": "Skip pages matching",
            "type": "array",
            "description": "Skip pages whose URL matches one of these regular expressions, for example /tag/ or \\?page=",
            "items": {
              "type": "string"
            }
          },
          "sitemapUrlPatterns": {
            "title": "Only sitemaps matching",
            "type": "array",
            "description": "Read pages only from sitemaps whose URL matches, for example post-sitemap or products. Sitemap indexes are always followed.",
            "items": {
              "type": "string"
            }
          },
          "modifiedAfter": {
            "title": "Modified after",
            "type": "string",
            "description": "Capture only pages whose sitemap lastmod is after this moment: a date (2025-01-31) or a period such as \"7 days\"."
          },
          "onlyNewPages": {
            "title": "Only new pages",
            "type": "boolean",
            "description": "Capture only pages that the previous run did not see in the website's sitemaps. Schedule it to capture each new page once, and do not let two runs with the same list overlap. New pages past Max pages are captured by the next runs; screenshots missed because of an error or the spending limit are retried after the pages no run has taken yet. Specific pages are captured on every run and fill Max pages first.",
            "default": false
          },
          "monitoringName": {
            "title": "Monitoring name",
            "type": "string",
            "description": "Optional name for the saved list of known pages. Runs with the same name share it."
          },
          "baselineOnFirstRun": {
            "title": "First run only saves a baseline",
            "type": "boolean",
            "description": "On the first monitoring run, remember the current pages without capturing them.",
            "default": true
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "When the page counts as loaded before the screenshot.",
            "default": "load"
          },
          "delaySecs": {
            "title": "Extra wait (seconds)",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Minimum time between the page load and the screenshot, for animations and late content. Scrolling and image loading count toward it.",
            "default": 1
          },
          "scrollPage": {
            "title": "Scroll to load lazy images",
            "type": "boolean",
            "description": "Scroll through full pages before capturing, so lazy-loaded images appear.",
            "default": true
          },
          "skipErrorPages": {
            "title": "Skip error pages",
            "type": "boolean",
            "description": "Do not capture (or charge for) pages that answer with HTTP 400 or higher.",
            "default": true
          },
          "createGallery": {
            "title": "Create HTML gallery",
            "type": "boolean",
            "description": "Save gallery.html in the key-value store with thumbnails of up to 300 screenshots. The dataset lists all of them.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Pages in parallel",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many pages to capture at the same time. Leave empty to fit the run memory automatically (one page per 600 MB, up to 10). Values above what fits in memory are lowered."
          },
          "navigationTimeoutSecs": {
            "title": "Page timeout (seconds)",
            "minimum": 10,
            "maximum": 180,
            "type": "integer",
            "description": "Pages still loading after this many seconds are captured as rendered. Pages whose server sent nothing at all, or answered with an error (with Skip error pages on, the default), are skipped and not charged.",
            "default": 45
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}