{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot & PDF - Fixed Price per File",
    "description": "Bulk website screenshots (PNG/JPEG) and PDFs at a fixed price per file. Full-page or element capture, devices, best-effort cookie handling.",
    "version": "0.1",
    "x-build-id": "pF8CxhnIfHoEBhk15"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tidyfetch~screenshot-fixed-price/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tidyfetch-screenshot-fixed-price",
        "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/tidyfetch~screenshot-fixed-price/runs": {
      "post": {
        "operationId": "runs-sync-tidyfetch-screenshot-fixed-price",
        "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/tidyfetch~screenshot-fixed-price/run-sync": {
      "post": {
        "operationId": "run-sync-tidyfetch-screenshot-fixed-price",
        "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",
            "minItems": 1,
            "maxItems": 1000,
            "uniqueItems": false,
            "type": "array",
            "description": "Pages to capture. One output per URL. http(s) only.",
            "items": {
              "type": "string"
            }
          },
          "format": {
            "title": "Output format",
            "enum": [
              "png",
              "jpeg",
              "pdf"
            ],
            "type": "string",
            "description": "PNG (lossless), JPEG (smaller, see quality) or PDF (paged, uses print CSS unless 'PDF: emulate screen media' is on).",
            "default": "png"
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole scrollable page instead of only the first viewport. Ignored for PDF and when a clip selector is set.",
            "default": true
          },
          "maxHeightPx": {
            "title": "Max page height (px)",
            "minimum": 200,
            "maximum": 30000,
            "type": "integer",
            "description": "Maximum document height in CSS pixels for full-page PNG/JPEG captures, so a 100,000 px infinite-scroll page does not produce a giant image. Ignored for PDF and clipSelector. Device scaling can make the image taller in real pixels; this is not a file-size limit.",
            "default": 20000
          },
          "viewportWidth": {
            "title": "Viewport width",
            "minimum": 320,
            "maximum": 5000,
            "type": "integer",
            "description": "Browser width in CSS pixels. Ignored when a device is selected.",
            "default": 1280
          },
          "viewportHeight": {
            "title": "Viewport height",
            "minimum": 200,
            "maximum": 5000,
            "type": "integer",
            "description": "Browser height in CSS pixels. This is the image height when 'Full page' is off. Ignored when a device is selected.",
            "default": 800
          },
          "device": {
            "title": "Device to emulate",
            "type": "string",
            "description": "Optional Playwright device name, e.g. 'iPhone 13', 'Pixel 7', 'iPad Pro 11', 'Desktop Chrome HiDPI'. Sets viewport, scale factor, touch and user agent. Full list: https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/deviceDescriptorsSource.json"
          },
          "darkMode": {
            "title": "Dark mode",
            "type": "boolean",
            "description": "Emulate prefers-color-scheme: dark.",
            "default": false
          },
          "clipSelector": {
            "title": "Clip to element (CSS selector)",
            "type": "string",
            "description": "Capture only the first element matching this CSS selector, e.g. '#pricing' or 'main article'. Not available for PDF."
          },
          "hideCookieBanners": {
            "title": "Close / hide cookie banners",
            "type": "boolean",
            "description": "Clicks the 'Accept' button of common consent libraries (OneTrust, Cookiebot, Quantcast, Didomi, Usercentrics, ...) or, failing that, hides the banner with CSS.",
            "default": true
          },
          "freezeStickyElements": {
            "title": "Freeze sticky / fixed elements",
            "type": "boolean",
            "description": "Turns position: fixed/sticky headers into normal elements so they appear once at the top of a full-page capture instead of repeating or floating mid-page. Bottom-anchored fixed elements (chat bubbles, cookie bars) are hidden.",
            "default": true
          },
          "delayMs": {
            "title": "Extra wait before capture",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Milliseconds to wait after the page loads (animations, web fonts, late JavaScript).",
            "default": 500
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "Navigation is considered finished at this event. 'networkidle' is slowest but best for JavaScript-heavy pages.",
            "default": "load"
          },
          "timeoutSecs": {
            "title": "Timeout per URL",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "Navigation and screenshot timeout; when exceeded the URL is reported as an error and the other URLs continue. Rendering may take up to 15 s more, and the robots.txt check and storing are outside this limit.",
            "default": 60
          },
          "jpegQuality": {
            "title": "JPEG quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "1-100, only for JPEG.",
            "default": 80
          },
          "blockResources": {
            "title": "Block heavy resources",
            "type": "boolean",
            "description": "Drops video/audio, websockets and common analytics/ad/chat-widget hosts to load faster. Images, CSS, fonts and scripts are kept.",
            "default": false
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "If the site's robots.txt disallows the URL path for 'User-agent: *', the URL is skipped with status 'skipped-robots' and is not charged. Redirect targets are checked against their own site's robots.txt before anything is stored. A robots.txt that answers 5xx or cannot be reached also skips the URL (RFC 9309); a 404 means no rules.",
            "default": true
          },
          "captureErrorPages": {
            "title": "Capture HTTP error pages (4xx/5xx)",
            "type": "boolean",
            "description": "Off (default): a page that answers 404, 500 etc. is reported as 'error' and is not stored or charged. On: the error page is captured, stored and charged like any other output (the HTTP status is recorded in 'notes').",
            "default": false
          },
          "scrollForLazyLoad": {
            "title": "Scroll to trigger lazy loading",
            "type": "boolean",
            "description": "Before a full-page capture, scroll through the page so lazy-loaded images render.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many URLs are rendered at the same time in the shared browser. Raise memory if you raise this.",
            "default": 2
          },
          "ignoreHttpsErrors": {
            "title": "Ignore HTTPS certificate errors",
            "type": "boolean",
            "description": "Ignore certificate errors while rendering (self-signed or expired certificates). The robots.txt check does not ignore them, so with respectRobotsTxt on, such a site may come back as skipped-robots.",
            "default": true
          },
          "pdfFormat": {
            "title": "PDF paper size",
            "enum": [
              "A4",
              "A3",
              "A5",
              "Letter",
              "Legal",
              "Tabloid",
              "Ledger"
            ],
            "type": "string",
            "description": "Only for PDF.",
            "default": "A4"
          },
          "pdfLandscape": {
            "title": "PDF landscape",
            "type": "boolean",
            "description": "Only for PDF.",
            "default": false
          },
          "pdfPrintBackground": {
            "title": "PDF: print backgrounds",
            "type": "boolean",
            "description": "Include background colours and images in the PDF.",
            "default": true
          },
          "pdfEmulateScreenMedia": {
            "title": "PDF: emulate screen media",
            "type": "boolean",
            "description": "Render the PDF with screen CSS instead of print CSS (closer to what you see in the browser; pages with print stylesheets may look better with this off).",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}