Website Screenshot and PDF
Pricing
from $3.00 / 1,000 captures
Website Screenshot and PDF
Capture full-page or viewport screenshots (PNG, JPEG) or PDFs of any list of URLs, with device presets, dark mode and cookie banner hiding.
Website Screenshot and PDF
Pricing
from $3.00 / 1,000 captures
Capture full-page or viewport screenshots (PNG, JPEG) or PDFs of any list of URLs, with device presets, dark mode and cookie banner hiding.
You can access the Website Screenshot and PDF programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
{ "openapi": "3.0.1", "info": { "version": "0.1", "x-build-id": "7XZ0z2HjkFwkLsBeE" }, "servers": [ { "url": "https://api.apify.com/v2" } ], "paths": { "/acts/parkville~website-screenshot-pdf/run-sync-get-dataset-items": { "post": { "operationId": "run-sync-get-dataset-items-parkville-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/parkville~website-screenshot-pdf/runs": { "post": { "operationId": "runs-sync-parkville-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/parkville~website-screenshot-pdf/run-sync": { "post": { "operationId": "run-sync-parkville-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": "URLs", "minItems": 1, "type": "array", "description": "Pages to capture, one per line. Bare domains such as example.com get https:// added. Every entry is captured in order, duplicates included.", "items": { "type": "string" } }, "format": { "title": "Output format", "enum": [ "png", "jpeg", "pdf" ], "type": "string", "description": "PNG is lossless, JPEG is smaller, PDF prints the page as a document.", "default": "png" }, "fullPage": { "title": "Full page", "type": "boolean", "description": "Capture the whole scrollable page instead of only the visible viewport. Images are cut at 16384 pixels tall. Ignored for PDF, which always contains the whole page.", "default": true }, "device": { "title": "Device preset", "enum": [ "Desktop", "iPhone 15", "iPhone 15 Pro Max", "iPhone SE (3rd gen)", "Pixel 7", "Galaxy S24", "iPad Pro 11", "iPad Pro 11 landscape" ], "type": "string", "description": "Emulate a phone or tablet. A preset replaces the viewport size, scale factor and user agent below. Desktop uses the viewport settings below.", "default": "Desktop" }, "viewportWidth": { "title": "Viewport width", "minimum": 200, "maximum": 3840, "type": "integer", "description": "Browser window width in CSS pixels (Desktop only).", "default": 1280 }, "viewportHeight": { "title": "Viewport height", "minimum": 200, "maximum": 2160, "type": "integer", "description": "Browser window height in CSS pixels (Desktop only). This is the image height when Full page is off.", "default": 800 }, "deviceScaleFactor": { "title": "Device scale factor", "minimum": 1, "maximum": 3, "type": "number", "description": "Pixel density (Desktop only), from 1 to 3. 2 gives a retina image twice as wide and tall. Larger values use more memory and produce bigger files.", "default": 1 }, "waitUntil": { "title": "Wait until", "enum": [ "load", "domcontentloaded", "networkidle" ], "type": "string", "description": "Page state to wait for before capturing. Each wait is capped (30 s for load, 15 s more for network idle), so pages that never go quiet are still captured.", "default": "load" }, "delaySecs": { "title": "Extra delay", "minimum": 0, "maximum": 30, "type": "integer", "description": "Seconds to wait after the page has loaded and been scrolled, before capturing. Useful for animations and late content.", "default": 1 }, "waitForSelector": { "title": "Wait for selector", "type": "string", "description": "Optional CSS selector to wait for (up to 30 s) before capturing. If it never appears the page is captured anyway and a warning is added to the result." }, "scrollToBottom": { "title": "Scroll to load lazy content", "type": "boolean", "description": "Scroll through the page before a full-page capture so lazy-loaded images appear, then scroll back to the top. Capped at 8 seconds and 16384 pixels.", "default": true }, "selector": { "title": "Capture only this element", "type": "string", "description": "Optional CSS selector. The first visible matching element is captured instead of the page. PNG and JPEG only; ignored for PDF." }, "hideCookieBanners": { "title": "Hide cookie banners", "type": "boolean", "description": "Hide consent banners of common platforms (OneTrust, Cookiebot, Didomi, Quantcast, Usercentrics, TrustArc, Osano, CookieYes, Complianz, iubenda, Sourcepoint and others) with CSS and remove their scroll locks. Nothing is clicked or accepted.", "default": true }, "hideSelectors": { "title": "Hide elements", "type": "array", "description": "CSS selectors of elements to hide before capture, for example chat widgets or sticky headers.", "items": { "type": "string" }, "default": [] }, "customCss": { "title": "Custom CSS", "type": "string", "description": "Optional CSS injected into every page before capture." }, "darkMode": { "title": "Dark mode", "type": "boolean", "description": "Emulate prefers-color-scheme: dark. Only affects sites that support a dark theme.", "default": false }, "jpegQuality": { "title": "JPEG quality", "minimum": 1, "maximum": 100, "type": "integer", "description": "Quality from 1 to 100 when the format is JPEG.", "default": 80 }, "pdfFormat": { "title": "PDF paper size", "enum": [ "A4", "Letter", "Legal", "A3" ], "type": "string", "description": "Paper size when the format is PDF.", "default": "A4" }, "pdfLandscape": { "title": "PDF landscape", "type": "boolean", "description": "Print the PDF in landscape orientation.", "default": false }, "pdfPrintBackground": { "title": "PDF background graphics", "type": "boolean", "description": "Include background colours and images in the PDF.", "default": true }, "pdfMarginMm": { "title": "PDF margin", "minimum": 0, "maximum": 50, "type": "integer", "description": "Margin on all four sides of each PDF page.", "default": 10 }, "proxyConfiguration": { "title": "Proxy configuration", "type": "object", "description": "Optional proxy. Leave it off for most sites; use Apify Proxy for sites that block data centre traffic or show region-specific content.", "default": { "useApifyProxy": false } }, "maxConcurrency": { "title": "Max concurrency", "minimum": 1, "maximum": 20, "type": "integer", "description": "Maximum number of pages captured at the same time. The Actor also scales down automatically when memory runs low.", "default": 5 }, "navigationTimeoutSecs": { "title": "Navigation timeout", "minimum": 5, "maximum": 180, "type": "integer", "description": "How long to wait for the page to start rendering (DOM ready) before the attempt fails.", "default": 60 }, "maxRetries": { "title": "Max retries", "minimum": 0, "maximum": 5, "type": "integer", "description": "How many times a failed URL is retried. Errors that cannot be fixed by retrying, such as an unknown domain, are not retried.", "default": 2 } } }, "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 } } } } } } } } }}OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.
OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.
By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.
You can download the OpenAPI definitions for Website Screenshot and PDF from the options below:
If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.
You can also check out our other API clients: