{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot & PDF: full page, mobile, dark mode",
    "description": "Give it web page URLs, get a PNG, JPEG or PDF of each: full page or one element, desktop, tablet or mobile size, light or dark mode, cookie banners hidden. Every file gets a public link. $1.20 per 1,000 screenshots, failed pages free.",
    "version": "0.1",
    "x-build-id": "nyTu1kUHfqegTmp0l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/opstoolkit~website-screenshot-pdf/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-opstoolkit-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/opstoolkit~website-screenshot-pdf/runs": {
      "post": {
        "operationId": "runs-sync-opstoolkit-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/opstoolkit~website-screenshot-pdf/run-sync": {
      "post": {
        "operationId": "run-sync-opstoolkit-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": "Web pages",
            "type": "array",
            "description": "Web pages to capture, one address per line, for example https://example.com/pricing. A line without https:// gets it added. Public pages only, no logins. Duplicates are merged. Up to 10,000 per run.",
            "items": {
              "type": "string"
            }
          },
          "format": {
            "title": "File type",
            "enum": [
              "png",
              "jpeg",
              "pdf"
            ],
            "type": "string",
            "description": "File type to create: png (default, sharp), jpeg (smaller files) or pdf (prints the page like a browser would). Example: pdf.",
            "default": "png"
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "laptop",
              "tablet",
              "mobile",
              "custom"
            ],
            "type": "string",
            "description": "Screen size preset: desktop (1280 x 800, default), laptop (1440 x 900), tablet (820 x 1180), mobile (390 x 844) or custom. Mobile also loads the mobile version of the page. With custom, set the width and height below.",
            "default": "desktop"
          },
          "fullPage": {
            "title": "Capture the full page",
            "type": "boolean",
            "description": "true (default) captures the whole page from top to bottom. false captures only the first screen. Ignored for PDF.",
            "default": true
          },
          "colorScheme": {
            "title": "Light or dark mode",
            "enum": [
              "light",
              "dark"
            ],
            "type": "string",
            "description": "light (default) or dark. Sites that follow the visitor's color setting show their dark theme when this is dark. A site without a dark theme looks the same either way.",
            "default": "light"
          },
          "viewportWidth": {
            "title": "Custom width (px)",
            "minimum": 200,
            "maximum": 4000,
            "type": "integer",
            "description": "Width in pixels, 200 to 4000, for example 1600. Used only when device is custom. Leave empty otherwise."
          },
          "viewportHeight": {
            "title": "Custom height (px)",
            "minimum": 200,
            "maximum": 4000,
            "type": "integer",
            "description": "Height in pixels, 200 to 4000, for example 900. Used only when device is custom. Leave empty otherwise."
          },
          "deviceScaleFactor": {
            "title": "Sharpness (pixel ratio)",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Pixel ratio, 1 to 3. 1 is normal. 2 doubles the pixels in each direction for sharper images and bigger files. Leave empty to use the device default (3 on mobile, 2 on tablet)."
          },
          "maxFullPageHeight": {
            "title": "Max full-page height (px)",
            "minimum": 1000,
            "maximum": 16000,
            "type": "integer",
            "description": "Tallest full-page image in pixels, 1000 to 16000, default 12000. Longer pages are cut at this height so the file stays usable. These are image pixels: on mobile (3x) 12000 covers the first 4000 pixels of the page as seen on the phone.",
            "default": 12000
          },
          "waitUntil": {
            "title": "Wait for",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "When the page counts as loaded: load (default), domcontentloaded (fastest) or networkidle (slowest, for heavy single-page apps that keep loading files).",
            "default": "load"
          },
          "waitMs": {
            "title": "Extra wait (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Extra pause in milliseconds after the page loads, 0 to 30000, default 700, so fonts, animations and lazy images settle. Example: 2000.",
            "default": 700
          },
          "waitForSelector": {
            "title": "Wait for element (optional)",
            "type": "string",
            "description": "Optional CSS selector, for example #chart. The capture waits for it to appear, up to 20 seconds or the page timeout if that is shorter. If it never appears, the page is reported as failed (free). Leave empty to skip."
          },
          "selector": {
            "title": "Capture one element (optional)",
            "type": "string",
            "description": "Optional CSS selector, for example main or #pricing. Captures only the first element that matches, instead of the page. If nothing matches, the page is reported as failed (free). Ignored for PDF. Leave empty to capture the page."
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners",
            "type": "boolean",
            "description": "true (default) hides the common cookie and consent pop-ups with CSS. Nothing is clicked or accepted. false leaves them as they are.",
            "default": true
          },
          "blockTrackers": {
            "title": "Skip ads and trackers",
            "type": "boolean",
            "description": "true (default) does not load known ad and analytics scripts, so pages load faster and the image is cleaner. false loads everything the page asks for.",
            "default": true
          },
          "jpegQuality": {
            "title": "JPEG quality",
            "minimum": 30,
            "maximum": 100,
            "type": "integer",
            "description": "JPEG quality from 30 to 100, default 80. Higher means a sharper and bigger file. Used only when format is jpeg.",
            "default": 80
          },
          "pdfFormat": {
            "title": "PDF paper size",
            "enum": [
              "A4",
              "A3",
              "Letter",
              "Legal"
            ],
            "type": "string",
            "description": "Paper size for PDF files: A4 (default), A3, Letter or Legal. Ignored for images.",
            "default": "A4"
          },
          "pdfLandscape": {
            "title": "PDF landscape",
            "type": "boolean",
            "description": "true turns the PDF page on its side. Default false (portrait). Ignored for images.",
            "default": false
          },
          "pdfPrintBackground": {
            "title": "PDF background colors and images",
            "type": "boolean",
            "description": "true (default) prints background colors and images, as a browser does when you tick that option. false leaves them out. Ignored for images.",
            "default": true
          },
          "captureErrorPages": {
            "title": "Capture error pages too",
            "type": "boolean",
            "description": "false (default): a page that answers 404 or 500 is reported as failed and costs nothing. true: it is captured and charged like any other page.",
            "default": false
          },
          "timeoutSecs": {
            "title": "Timeout per page (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Seconds to wait for one page, 5 to 120, default 30. A page that takes longer is reported as failed, which is free. Raise it for slow sites.",
            "default": 30
          },
          "maxConcurrency": {
            "title": "Pages in parallel",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many pages to capture at the same time, 1 to 8, default 3. 3 fits the 1 GB of memory this Actor runs with. Lower it to 1 or 2 for very heavy pages.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}