{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot & PDF: Full Page, Mobile, Element",
    "description": "Capture public web pages as PNG, JPEG or PDF: true full-page screenshots with lazy content loaded, phone and tablet views, single elements, dark mode, cookie banners hidden. Respects robots.txt. No login, no proxy needed.",
    "version": "0.1",
    "x-build-id": "5ERJ31M6OeEVZ5gb9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/praised_tumbler~website-screenshot-pdf/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-praised_tumbler-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/praised_tumbler~website-screenshot-pdf/runs": {
      "post": {
        "operationId": "runs-sync-praised_tumbler-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/praised_tumbler~website-screenshot-pdf/run-sync": {
      "post": {
        "operationId": "run-sync-praised_tumbler-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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "Page addresses",
            "minItems": 1,
            "maxItems": 200,
            "type": "array",
            "description": "Public http(s) addresses, one per line (up to 200). \"https://\" is added when missing.",
            "items": {
              "type": "string"
            }
          },
          "captureMode": {
            "title": "What to capture",
            "enum": [
              "fullPage",
              "viewport"
            ],
            "type": "string",
            "description": "Full page: the whole scrollable page in one picture. Visible part: only what fits the screen size.",
            "default": "fullPage"
          },
          "format": {
            "title": "File format",
            "enum": [
              "png",
              "jpeg",
              "pdf"
            ],
            "type": "string",
            "description": "PNG is exact, JPEG is smaller, PDF is a printable document of the whole page.",
            "default": "png"
          },
          "device": {
            "title": "Screen",
            "enum": [
              "desktop",
              "desktopLarge",
              "laptop",
              "tablet",
              "mobile",
              "custom"
            ],
            "type": "string",
            "description": "The screen the page is shown on. Phone and tablet use Chrome's mobile mode, so responsive sites show their mobile layout.",
            "default": "desktop"
          },
          "selector": {
            "title": "Capture one element (CSS selector)",
            "type": "string",
            "description": "Optional. Capture only the first element matching this CSS selector, for example \"#pricing\" or \"main article\". Not for PDF."
          },
          "darkMode": {
            "title": "Dark mode",
            "type": "boolean",
            "description": "Ask the page for its dark colour scheme (only pages that support it change).",
            "default": false
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners",
            "type": "boolean",
            "description": "Hide the consent layers of the common cookie tools. Nothing is clicked and no consent is given; the layer is only left out of the picture.",
            "default": true
          },
          "hideSelectors": {
            "title": "Hide other elements (CSS selectors)",
            "type": "array",
            "description": "Elements to leave out of the picture, for example a chat bubble or a sticky bar: \".chat-widget\", \"#promo-bar\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "blockAds": {
            "title": "Block ads and trackers",
            "type": "boolean",
            "description": "Do not load requests to well-known advertising and tracking hosts. Pages load faster; ad slots stay empty.",
            "default": false
          },
          "scrollToLoad": {
            "title": "Scroll first to load lazy content",
            "type": "boolean",
            "description": "For full-page pictures and PDFs: scroll through the page before capturing, so pictures and sections that load on scroll are there.",
            "default": true
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "When the page counts as loaded. \"Network is quiet\" waits longest and suits pages that load data after opening.",
            "default": "load"
          },
          "delaySecs": {
            "title": "Extra wait (seconds)",
            "minimum": 0,
            "maximum": 15,
            "type": "integer",
            "description": "Time to wait after loading, for animations or late content (0 to 15).",
            "default": 1
          },
          "waitForSelector": {
            "title": "Wait for an element (CSS selector)",
            "type": "string",
            "description": "Optional. Capture only after this element is visible, for example \".chart svg\". If it does not appear within 15 seconds the page fails and is not charged."
          },
          "jpegQuality": {
            "title": "JPEG quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "1 to 100. Used for JPEG only.",
            "default": 80
          },
          "pdfFormat": {
            "title": "PDF paper size",
            "enum": [
              "A4",
              "Letter"
            ],
            "type": "string",
            "description": "Used for PDF only.",
            "default": "A4"
          },
          "viewportWidth": {
            "title": "Custom width (px)",
            "minimum": 240,
            "maximum": 3840,
            "type": "integer",
            "description": "Used when Screen is \"Custom size\".",
            "default": 1366
          },
          "viewportHeight": {
            "title": "Custom height (px)",
            "minimum": 240,
            "maximum": 2160,
            "type": "integer",
            "description": "Used when Screen is \"Custom size\".",
            "default": 768
          },
          "deviceScaleFactor": {
            "title": "Custom pixel density",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "1 = normal, 2 = retina (picture twice as wide and high). Used when Screen is \"Custom size\".",
            "default": 1
          },
          "maxPageHeight": {
            "title": "Maximum page height (px)",
            "minimum": 500,
            "maximum": 30000,
            "type": "integer",
            "description": "Very long pages are cut at this height (500 to 30,000). At pixel density 2 one picture can be at most 8,000 px of page.",
            "default": 15000
          },
          "navigationTimeoutSecs": {
            "title": "Loading time limit (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "A page that has shown its content but is still loading something is captured as it is, with a warning.",
            "default": 30
          },
          "allowErrorPages": {
            "title": "Capture error pages too",
            "type": "boolean",
            "description": "Off: a page that answers with an error (HTTP 400 and above) fails and is not charged. On: the error page is captured and charged.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Pages at the same time",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "1 to 5 (also limited by the memory of the run). Pages of the same site are always opened one after another, with a pause.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}