{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk Website Screenshot & URL to PDF Converter",
    "description": "Screenshot a list of websites and save them as PDFs in one run. Full page or first screen, desktop or iPhone/Android, PNG, JPEG or WebP, A4 or Letter PDF. Cookie banners and pop-ups hidden. Failed pages are free. $5 per 1,000 screenshots, $6 per 1,000 PDFs.",
    "version": "0.1",
    "x-build-id": "zGdJSwaUBLLXB9omC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/oldjard~screenshot-pdf/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-oldjard-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/oldjard~screenshot-pdf/runs": {
      "post": {
        "operationId": "runs-sync-oldjard-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/oldjard~screenshot-pdf/run-sync": {
      "post": {
        "operationId": "run-sync-oldjard-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": "URLs",
            "type": "array",
            "description": "Web pages to capture, one per line. Paste a spreadsheet column straight in: bare domains like \"example.com\" work, duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "captureScreenshot": {
            "title": "Take a screenshot",
            "type": "boolean",
            "description": "Save an image of each page. Charged per screenshot.",
            "default": true
          },
          "capturePdf": {
            "title": "Save as PDF",
            "type": "boolean",
            "description": "Also save each page as a PDF (URL to PDF). Charged per PDF.",
            "default": false
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "laptop",
              "tablet",
              "iphone",
              "android"
            ],
            "type": "string",
            "description": "Screen size and type to emulate. Phone and tablet presets load the mobile version of the site.",
            "default": "desktop"
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole scrolling page, not just the first screen.",
            "default": true
          },
          "imageFormat": {
            "title": "Image format",
            "enum": [
              "png",
              "jpeg",
              "webp"
            ],
            "type": "string",
            "description": "PNG is lossless. JPEG and WebP files are much smaller.",
            "default": "png"
          },
          "imageQuality": {
            "title": "JPEG / WebP quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "1–100. Ignored for PNG.",
            "default": 80
          },
          "viewportWidth": {
            "title": "Custom width (px)",
            "minimum": 240,
            "maximum": 3840,
            "type": "integer",
            "description": "Override the device's screen width in CSS pixels. Leave empty to use the device preset."
          },
          "viewportHeight": {
            "title": "Custom height (px)",
            "minimum": 240,
            "maximum": 2160,
            "type": "integer",
            "description": "Override the device's screen height. For full-page captures this is only the first screen."
          },
          "deviceScaleFactor": {
            "title": "Pixel density",
            "minimum": 1,
            "maximum": 3,
            "type": "number",
            "description": "1 = normal, 2 = retina. Leave empty to use the device preset (phones are 2.6–3×)."
          },
          "maxPageHeight": {
            "title": "Max page height (px)",
            "minimum": 500,
            "maximum": 30000,
            "type": "integer",
            "description": "Full-page captures stop here (in CSS pixels), so endless-scroll pages finish. The row says when a page was cut.",
            "default": 15000
          },
          "pdfFormat": {
            "title": "PDF paper size",
            "enum": [
              "A4",
              "Letter",
              "Legal",
              "A3",
              "A5",
              "Tabloid"
            ],
            "type": "string",
            "description": "Paper size for PDFs.",
            "default": "A4"
          },
          "pdfLandscape": {
            "title": "Landscape",
            "type": "boolean",
            "description": "Landscape instead of portrait pages.",
            "default": false
          },
          "pdfMargin": {
            "title": "Margin",
            "type": "string",
            "description": "Page margin on all sides, e.g. \"1cm\", \"0.5in\", \"10mm\" or \"0\".",
            "default": "1cm"
          },
          "pdfPrintBackground": {
            "title": "Print backgrounds",
            "type": "boolean",
            "description": "Keep background colours and images, as on screen.",
            "default": true
          },
          "pdfMediaType": {
            "title": "PDF layout",
            "enum": [
              "screen",
              "print"
            ],
            "type": "string",
            "description": "'As on screen' looks like the website. 'Print' uses the site's own print styles, if it has them.",
            "default": "screen"
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners",
            "type": "boolean",
            "description": "Hide cookie and consent pop-ups (OneTrust, Cookiebot, Didomi, Usercentrics and home-made ones). They are hidden, never accepted.",
            "default": true
          },
          "closePopups": {
            "title": "Close pop-ups",
            "type": "boolean",
            "description": "Hide sign-up, newsletter and app-install modals that cover the page.",
            "default": true
          },
          "hideFixedBottomBars": {
            "title": "Hide bottom bars in full-page shots",
            "type": "boolean",
            "description": "Bars and chat bubbles pinned to the bottom of the screen would otherwise float over the middle of a full-page image.",
            "default": true
          },
          "hideSelectors": {
            "title": "Hide these elements",
            "type": "array",
            "description": "CSS selectors of anything else to hide, e.g. \".ad-banner\" or \"#chat-widget\".",
            "items": {
              "type": "string"
            }
          },
          "customCss": {
            "title": "Custom CSS",
            "type": "string",
            "description": "CSS added to every page before the capture."
          },
          "darkMode": {
            "title": "Dark mode",
            "type": "boolean",
            "description": "Ask the site for its dark theme (prefers-color-scheme: dark).",
            "default": false
          },
          "blockAds": {
            "title": "Block ads and trackers",
            "type": "boolean",
            "description": "Skip the big ad networks and trackers. Pages load faster and ad slots come out empty. Turn off to capture pages exactly as visitors see them, ads included.",
            "default": true
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "domcontentloaded",
              "load",
              "networkidle"
            ],
            "type": "string",
            "description": "When the page counts as ready. Slow trackers are capped at 15 seconds either way.",
            "default": "load"
          },
          "delaySecs": {
            "title": "Extra delay (seconds)",
            "minimum": 0,
            "maximum": 30,
            "type": "number",
            "description": "Wait this long before the capture, e.g. for animations or charts.",
            "default": 0
          },
          "waitForSelector": {
            "title": "Wait for element",
            "type": "string",
            "description": "CSS selector to wait for before the capture, e.g. \"#chart canvas\". If it never shows, the page is reported as failed (and not charged)."
          },
          "scrollToLoadLazyContent": {
            "title": "Scroll to load lazy images",
            "type": "boolean",
            "description": "Scroll down the page first so lazy-loaded images and sections appear in full-page captures and PDFs.",
            "default": true
          },
          "navigationTimeoutSecs": {
            "title": "Page load timeout (seconds)",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "Give up on a page that does not start loading in this time (not charged).",
            "default": 45
          },
          "maxConcurrency": {
            "title": "Pages at once",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Pages captured in parallel. Leave empty for automatic (one per ~700 MB of memory: 2 at the default 2 GB)."
          },
          "canaryMinSuccessRate": {
            "title": "Fail the run below this success rate",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Internal monitoring only; leave empty. 0.8 fails the run if fewer than 80% of pages are captured (blank images count as failures)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}