{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot & URL to PDF API — Bulk",
    "description": "Take full-page website screenshots in PNG, JPEG or WebP. Convert URLs to PDF, merge PDFs and monitor visual changes. Batch public URLs from lists, Apify datasets or sitemaps.",
    "version": "0.1",
    "x-build-id": "UBL18zwlfbW74FwM5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/olliolli~website-screenshot-pdf/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-olliolli-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/olliolli~website-screenshot-pdf/runs": {
      "post": {
        "operationId": "runs-sync-olliolli-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/olliolli~website-screenshot-pdf/run-sync": {
      "post": {
        "operationId": "run-sync-olliolli-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": "urls",
            "type": "array",
            "description": "Public HTTP(S) pages to capture. No authentication, internal addresses or credential-bearing URLs.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "datasetId",
            "type": "string",
            "description": "Select a resource to grant access. Monitor store is optional when a named store is available."
          },
          "monitorStoreId": {
            "title": "monitorStoreId",
            "type": "string",
            "description": "Select a resource to grant access. Monitor store is optional when a named store is available."
          },
          "urlField": {
            "title": "urlField",
            "type": "string",
            "description": "Dataset field containing a URL or list; dot paths supported.",
            "default": "url"
          },
          "sitemapUrl": {
            "title": "sitemapUrl",
            "type": "string",
            "description": "Public XML sitemap or sitemap index; at most 20 sitemap documents, 5 MB each."
          },
          "monitorName": {
            "title": "monitorName",
            "type": "string",
            "description": "Separate baseline name: 1–40 letters, digits or hyphens. Do not overlap runs with the same name."
          },
          "waitForSelector": {
            "title": "waitForSelector",
            "type": "string",
            "description": "Optional CSS selector to wait for before capture."
          },
          "output": {
            "title": "output",
            "enum": [
              "screenshot",
              "pdf",
              "both"
            ],
            "type": "string",
            "description": "Choose output.",
            "default": "screenshot"
          },
          "format": {
            "title": "format",
            "enum": [
              "png",
              "jpeg",
              "webp"
            ],
            "type": "string",
            "description": "Choose format.",
            "default": "png"
          },
          "device": {
            "title": "device",
            "enum": [
              "desktop",
              "laptop",
              "tablet",
              "mobile",
              "iphone-13",
              "pixel-7",
              "ipad-pro",
              "macbook-13"
            ],
            "type": "string",
            "description": "Choose device.",
            "default": "desktop"
          },
          "pdfFormat": {
            "title": "pdfFormat",
            "enum": [
              "A4",
              "Letter",
              "Legal"
            ],
            "type": "string",
            "description": "Choose pdfFormat.",
            "default": "A4"
          },
          "waitUntil": {
            "title": "waitUntil",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "Choose waitUntil.",
            "default": "load"
          },
          "loadFallback": {
            "title": "loadFallback",
            "type": "boolean",
            "description": "If the load event stalls, use DOM readiness only after checking fonts and images, within the original deadline.",
            "default": true
          },
          "scrollToLoad": {
            "title": "scrollToLoad",
            "type": "boolean",
            "description": "Bounded scrolling to trigger lazy content before capture.",
            "default": true
          },
          "fullPage": {
            "title": "fullPage",
            "type": "boolean",
            "description": "Capture page height up to 16,383 output pixels; longer output is partial.",
            "default": true
          },
          "pdfPrintBackground": {
            "title": "pdfPrintBackground",
            "type": "boolean",
            "description": "Print background colours and images.",
            "default": true
          },
          "pdfHeaderFooter": {
            "title": "pdfHeaderFooter",
            "type": "boolean",
            "description": "Print URL, date and page numbers.",
            "default": false
          },
          "mergePdf": {
            "title": "mergePdf",
            "type": "boolean",
            "description": "Combine successful PDFs into merged.pdf with a bookmark per URL.",
            "default": false
          },
          "hideCookieBanners": {
            "title": "hideCookieBanners",
            "type": "boolean",
            "description": "Hide known cookie banners with original CSS rules; does not accept cookies.",
            "default": true
          },
          "acceptCookies": {
            "title": "acceptCookies",
            "type": "boolean",
            "description": "Explicitly allow clicking the known CMP accept button. Default off; no login or challenge clicking.",
            "default": false
          },
          "darkMode": {
            "title": "darkMode",
            "type": "boolean",
            "description": "Request a dark colour scheme.",
            "default": false
          },
          "monitor": {
            "title": "monitor",
            "type": "boolean",
            "description": "Compare against the previous successful capture; first run establishes a free baseline comparison.",
            "default": false
          },
          "maxUrls": {
            "title": "maxUrls",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Bounded maxUrls.",
            "default": 100
          },
          "timeoutPerUrlSecs": {
            "title": "timeoutPerUrlSecs",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Bounded timeoutPerUrlSecs.",
            "default": 45
          },
          "maxConcurrency": {
            "title": "maxConcurrency",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Bounded maxConcurrency.",
            "default": 3
          },
          "delayMs": {
            "title": "delayMs",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Bounded delayMs.",
            "default": 0
          },
          "width": {
            "title": "width",
            "minimum": 240,
            "maximum": 3840,
            "type": "integer",
            "description": "Bounded width."
          },
          "height": {
            "title": "height",
            "minimum": 240,
            "maximum": 2160,
            "type": "integer",
            "description": "Bounded height."
          },
          "deviceScaleFactor": {
            "title": "deviceScaleFactor",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Bounded deviceScaleFactor."
          },
          "changeThreshold": {
            "title": "changeThreshold",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Changed when more than this percentage of thumbnail pixels differs beyond the noise threshold.",
            "default": 2
          },
          "hideSelectors": {
            "title": "hideSelectors",
            "type": "array",
            "description": "Optional CSS selectors for widgets you own; no paywall or login bypass.",
            "items": {
              "type": "string"
            }
          },
          "pdfMargins": {
            "title": "pdfMargins",
            "type": "object",
            "description": "Margins in millimetres (top, right, bottom, left), each 0–50.",
            "default": {
              "top": 10,
              "bottom": 10,
              "left": 10,
              "right": 10
            }
          },
          "proxyConfiguration": {
            "title": "proxyConfiguration",
            "type": "object",
            "description": "Optional Apify or HTTP proxy. Direct by default. No automatic IP rotation.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}