{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot & PDF: Full Page, Mobile, No Cookie Popups",
    "description": "Clean full-page screenshots or PDFs of any website on desktop, laptop, tablet and mobile in one run. Cookie banners and chat widgets hidden automatically. Dark mode, element capture, PNG, JPEG or PDF, with a direct link to every file.",
    "version": "2.0",
    "x-build-id": "pZhHzYViZSeM858Ue"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datafetch-lab~website-screenshot-pdf/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datafetch-lab-website-screenshot-pdf",
        "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/datafetch-lab~website-screenshot-pdf/runs": {
      "post": {
        "operationId": "runs-sync-datafetch-lab-website-screenshot-pdf",
        "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/datafetch-lab~website-screenshot-pdf/run-sync": {
      "post": {
        "operationId": "run-sync-datafetch-lab-website-screenshot-pdf",
        "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, for example https://example.com. Add as many as you need.",
            "items": {
              "type": "string"
            }
          },
          "sitemapUrls": {
            "title": "Sitemap URLs",
            "type": "array",
            "description": "Capture every page listed in a sitemap.xml (sitemap index files are supported). Pages are added to the Website URLs above.",
            "items": {
              "type": "string"
            }
          },
          "maxSitemapPages": {
            "title": "Maximum pages from sitemaps",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper limit of pages taken from each sitemap.",
            "default": 100
          },
          "devices": {
            "title": "Devices",
            "type": "array",
            "description": "One file is created for every URL and device.",
            "items": {
              "type": "string",
              "enum": [
                "desktop",
                "laptop",
                "tablet",
                "mobile"
              ],
              "enumTitles": [
                "Desktop (1440 px)",
                "Laptop (1280 px)",
                "Tablet (iPad)",
                "Mobile (iPhone)"
              ]
            },
            "default": [
              "desktop"
            ]
          },
          "format": {
            "title": "File format",
            "enum": [
              "png",
              "jpeg",
              "pdf"
            ],
            "type": "string",
            "description": "PNG for sharp images, JPEG for smaller files, PDF for documents and archives.",
            "default": "png"
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole page from top to bottom, not only the first screen.",
            "default": true
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners and chat widgets",
            "type": "boolean",
            "description": "Hides common consent pop-ups (OneTrust, Cookiebot, Didomi, Usercentrics and more) and chat bubbles.",
            "default": true
          },
          "hideSelectors": {
            "title": "Hide these elements (CSS selectors)",
            "type": "array",
            "description": "Extra elements to hide, for example .newsletter-popup or #promo-bar.",
            "items": {
              "type": "string"
            }
          },
          "clickSelectors": {
            "title": "Click these elements before capture (CSS selectors)",
            "type": "array",
            "description": "For example a \"Load more\" button, a tab, or a pop-up close button (button.close). Clicked in order; missing elements are skipped.",
            "items": {
              "type": "string"
            }
          },
          "darkMode": {
            "title": "Dark mode",
            "type": "boolean",
            "description": "Ask the website to use its dark theme, if it has one.",
            "default": false
          },
          "waitUntil": {
            "title": "Page is ready when",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "When the page is considered ready. Use Network idle for heavy web apps.",
            "default": "load"
          },
          "waitForSelector": {
            "title": "Wait for this element (CSS selector, optional)",
            "type": "string",
            "description": "Wait until this element appears, for example #pricing-table."
          },
          "delaySeconds": {
            "title": "Extra wait before capture (seconds)",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Extra time for animations and late content.",
            "default": 1
          },
          "timeoutSeconds": {
            "title": "Page load timeout (seconds)",
            "minimum": 10,
            "maximum": 180,
            "type": "integer",
            "description": "Pages that take longer are skipped and not charged.",
            "default": 60
          },
          "elementSelector": {
            "title": "Capture only this element (CSS selector, optional)",
            "type": "string",
            "description": "For example #hero or .pricing. Leave empty to capture the page."
          },
          "quality": {
            "title": "JPEG quality",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "Only used for JPEG files.",
            "default": 80
          },
          "pdfPaperSize": {
            "title": "PDF paper size",
            "enum": [
              "A4",
              "Letter"
            ],
            "type": "string",
            "description": "Only used for PDF files.",
            "default": "A4"
          },
          "maxHeightPx": {
            "title": "Maximum full-page height (px)",
            "minimum": 1000,
            "maximum": 30000,
            "type": "integer",
            "description": "Very long pages are cut at this height to keep files usable.",
            "default": 16000
          },
          "customWidth": {
            "title": "Custom desktop width (px)",
            "minimum": 320,
            "maximum": 3840,
            "type": "integer",
            "description": "Overrides the desktop width. Use together with height."
          },
          "customHeight": {
            "title": "Custom desktop height (px)",
            "minimum": 320,
            "maximum": 2160,
            "type": "integer",
            "description": "Overrides the desktop height. Use together with width."
          },
          "compareWithPrevious": {
            "title": "Detect visual changes since the last run",
            "type": "boolean",
            "description": "Compares every PNG screenshot with the previous run of the same monitor and reports the share of the page that changed, with an image that highlights the changes. Schedule it to monitor pages.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Use different names to keep separate baselines, for example \"competitors\" and \"my-site\".",
            "default": "default"
          },
          "changeThresholdPercent": {
            "title": "Changed when more than (% of page)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "A page is marked as changed when at least this share of its pixels differs. Small values catch small edits; larger values ignore rotating banners.",
            "default": 0.5
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Capture through a proxy, for example to see a website as visitors from another country see it. Off by 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}