{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot & URL to PDF: Full Page, Mobile & Retina",
    "description": "Screenshot any public web page or save it as PDF: full page, mobile, tablet, retina, dark mode. URLs in, PNG, JPEG, WebP or PDF files out with download links. Headless Chromium, no API key. Respects robots.txt; no logins, no bot-protection bypass, no proxies.",
    "version": "0.1",
    "x-build-id": "eC9cCOjgZja1DfjQg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data-done-right~website-screenshot-pdf/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data-done-right-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/data-done-right~website-screenshot-pdf/runs": {
      "post": {
        "operationId": "runs-sync-data-done-right-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/data-done-right~website-screenshot-pdf/run-sync": {
      "post": {
        "operationId": "run-sync-data-done-right-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 URLs",
            "type": "array",
            "description": "Web pages to capture, one per line. Example: https://example.com/pricing. A link without https:// gets https:// added. Duplicates are captured once. Pages that need a login, that robots.txt disallows or that sit behind bot protection are not captured and are not charged.",
            "items": {
              "type": "string"
            }
          },
          "format": {
            "title": "Output format",
            "enum": [
              "png",
              "jpeg",
              "webp",
              "pdf"
            ],
            "type": "string",
            "description": "File type of each result. PNG is lossless, JPEG and WebP are smaller (see Quality), PDF prints the page with its print layout. Example: png.",
            "default": "png"
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole scrollable page instead of only the first screen. Applies to PNG, JPEG and WebP; PDFs always contain the whole page. Very tall pages are cut at Max page height with a note. Example: true.",
            "default": true
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "mobile",
              "tablet"
            ],
            "type": "string",
            "description": "desktop uses the viewport size below. mobile (390 x 844) and tablet (820 x 1180) use their own screen size, touch and a phone or tablet user agent, so mobile layouts are served. Ignored for PDF. Example: mobile.",
            "default": "desktop"
          },
          "viewportWidth": {
            "title": "Viewport width (px)",
            "minimum": 320,
            "maximum": 3840,
            "type": "integer",
            "description": "Browser window width in CSS pixels for the desktop device, 320 to 3840. Example: 1280.",
            "default": 1280
          },
          "viewportHeight": {
            "title": "Viewport height (px)",
            "minimum": 240,
            "maximum": 2400,
            "type": "integer",
            "description": "Browser window height in CSS pixels for the desktop device, 240 to 2400. It is the image height when Full page is off. Example: 800.",
            "default": 800
          },
          "deviceScaleFactor": {
            "title": "Pixel density (retina)",
            "minimum": 1,
            "maximum": 3,
            "type": "number",
            "description": "1 = normal, 2 = retina (twice the pixels per side, four times the pixels), 3 = high-density phone. Larger values make bigger files and take longer. Ignored for PDF. Example: 2.",
            "default": 1
          },
          "colorScheme": {
            "title": "Colour scheme",
            "enum": [
              "light",
              "dark"
            ],
            "type": "string",
            "description": "Asks pages that support it for their light or dark theme (prefers-color-scheme). Example: dark.",
            "default": "light"
          },
          "delaySecs": {
            "title": "Extra wait after load (seconds)",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Wait this long after the page load event before capturing, for animations or late content. 0 to 10. The whole URL must still finish within the timeout. Example: 1.5.",
            "default": 0
          },
          "scrollToLoad": {
            "title": "Scroll to load lazy images",
            "type": "boolean",
            "description": "For full-page images, scroll down the page once (at most 3 seconds) so lazy-loaded images appear, then return to the top. Example: true.",
            "default": true
          },
          "quality": {
            "title": "JPEG / WebP quality",
            "minimum": 30,
            "maximum": 100,
            "type": "integer",
            "description": "Compression quality 30 to 100 for JPEG and WebP. Example: 85.",
            "default": 85
          },
          "maxPageHeight": {
            "title": "Max page height (px)",
            "minimum": 1000,
            "maximum": 30000,
            "type": "integer",
            "description": "Full-page images are cut at this height in CSS pixels (1000 to 30000) to protect memory; the row note says when it happened. At pixel density 2 or 3 the limit can be lower. Example: 16000.",
            "default": 16000
          },
          "pdfFormat": {
            "title": "PDF paper size",
            "enum": [
              "A3",
              "A4",
              "A5",
              "Letter",
              "Legal",
              "Tabloid"
            ],
            "type": "string",
            "description": "Paper size for PDF output. Example: A4.",
            "default": "A4"
          },
          "pdfLandscape": {
            "title": "PDF landscape",
            "type": "boolean",
            "description": "Print PDFs in landscape orientation. Example: false.",
            "default": false
          },
          "pdfPrintBackground": {
            "title": "PDF background colours and images",
            "type": "boolean",
            "description": "Include CSS backgrounds in the PDF. Example: true.",
            "default": true
          },
          "maxUrls": {
            "title": "Max URLs per run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on pages processed in one run (1 to 5000). URLs beyond the cap are listed as skipped and are free. Example: 100.",
            "default": 100
          },
          "concurrency": {
            "title": "Pages at the same time",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "How many pages are rendered in parallel in one browser, 1 to 6. Each page can use several hundred MB of memory; with the default 4096 MB, 3 is safe. Example: 3.",
            "default": 3
          },
          "timeoutSecs": {
            "title": "Timeout per URL (seconds)",
            "minimum": 10,
            "maximum": 60,
            "type": "number",
            "description": "Hard limit for loading and capturing one URL, 10 to 60. If the page loaded but did not finish, the part that loaded is captured with a note. Example: 30.",
            "default": 30
          },
          "outputStoreName": {
            "title": "Output store name (optional)",
            "type": "string",
            "description": "Save the files in a named key-value store that outlives the run instead of the default store of the run. File names then get a random prefix. Example: my-screenshots."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}