{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot — Clean Full Page, No Cookie Banners, No Ads",
    "description": "Clean screenshots of any URL: cookie banners dismissed, ads removed, full-page scrollshots of long pages, browser locale matched to the site's country.",
    "version": "0.1",
    "x-build-id": "ZXBzTWXrOTzTqaJab"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/f1_snail~website-screenshot/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-f1_snail-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/f1_snail~website-screenshot/runs": {
      "post": {
        "operationId": "runs-sync-f1_snail-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/f1_snail~website-screenshot/run-sync": {
      "post": {
        "operationId": "run-sync-f1_snail-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. Plain URLs, or objects {\"url\": ..., \"country\": \"DE\"} to pin the browser country for one page."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "scrollshot",
              "screenshot"
            ],
            "type": "string",
            "description": "scrollshot: the whole page, captured segment by segment while scrolling so lazy-loaded content is included. screenshot: the first screen only (1920 px wide).",
            "default": "scrollshot"
          },
          "format": {
            "title": "Image format",
            "enum": [
              "jpeg",
              "png"
            ],
            "type": "string",
            "description": "JPEG for both modes; PNG only for screenshot mode.",
            "default": "jpeg"
          },
          "country": {
            "title": "Browser country",
            "type": "string",
            "description": "auto: derived from the site's domain (.de → German locale and timezone, generic domains → US). Or a two-letter country code for all pages.",
            "default": "auto"
          },
          "useResidential": {
            "title": "Residential proxy",
            "type": "boolean",
            "description": "Visit through an Apify residential IP in the browser country. Apify bills the proxy traffic separately per GB.",
            "default": false
          },
          "respectRobots": {
            "title": "Respect robots.txt and TDM reservations",
            "type": "boolean",
            "description": "Skip pages the site's robots.txt disallows, and pages whose site reserves text and data mining rights (TDM-Reservation header or /.well-known/tdmrep.json). Such pages are reported with an error and not charged. Only switch this off for sites you own or have permission for. Switching it off is your confirmation of that, and the responsibility for the capture is yours.",
            "default": true
          },
          "consent": {
            "title": "Cookie banners",
            "enum": [
              "optOut",
              "optIn",
              "off"
            ],
            "type": "string",
            "description": "optOut: reject (banner gone, no tracking consent). optIn: accept, for sites that only show content after consent. off: leave banners alone.",
            "default": "optOut"
          },
          "blockAds": {
            "title": "Remove ads",
            "type": "boolean",
            "description": "Filter ads and trackers with EasyList, EasyPrivacy, EasyList Germany and uBlock Origin lists. Not applied on Google, Amazon, eBay and login pages.",
            "default": true
          },
          "blockAnnoyances": {
            "title": "Remove popups and overlays",
            "type": "boolean",
            "description": "Also hide newsletter overlays, sign-in prompts, app banners, chat widgets and similar with Fanboy's Annoyances, AdGuard Popups and uBlock annoyances lists. Switch off for a picture of the page as served. Needs \"Remove ads\".",
            "default": true
          },
          "waitSecs": {
            "title": "Settle time (s)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Wait after the page has loaded before capturing, for late content and banner handling.",
            "default": 5
          },
          "maxHeight": {
            "title": "Max page height (px)",
            "minimum": 1000,
            "maximum": 100000,
            "type": "integer",
            "description": "Scrollshots longer than this are cut and marked truncated.",
            "default": 30000
          },
          "maxScrollSecs": {
            "title": "Scrollshot time budget (s)",
            "minimum": 10,
            "maximum": 300,
            "type": "integer",
            "description": "Upper time limit per page for scrolling and capturing; longer pages are cut and marked truncated.",
            "default": 60
          },
          "navTimeoutSecs": {
            "title": "Navigation timeout (s)",
            "minimum": 5,
            "maximum": 180,
            "type": "integer",
            "description": "Pages that do not load within this time are reported as an error and not charged.",
            "default": 45
          },
          "refreshFilterLists": {
            "title": "Refresh filter lists",
            "type": "boolean",
            "description": "At start, ask each list server once whether its list changed since the build (one conditional request per list). Off: use the versions baked into the build.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}