# Website Screenshot Pro (`originalvi/website-screenshot-pro`) Actor

Pixel-perfect screenshots of any URL: full page, mobile devices, dark mode, cookie-banner removal, PNG/JPEG/WebP.

- **URL**: https://apify.com/originalvi/website-screenshot-pro.md
- **Developed by:** [Andrew Schneidwind](https://apify.com/originalvi) (community)
- **Categories:** AI, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 screenshot captureds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Website Screenshot Pro 📸 — full-page screenshots that actually work

Capture **pixel-perfect screenshots of any website** — full page or viewport, desktop or mobile, light or dark mode — and get back clean image files plus a structured dataset with download URLs.

Built for reliability: automatic cookie-banner removal, lazy-load scrolling, animation freezing, and a smart fallback when pages never finish loading.

### Why this Actor?

- ✅ **Full-page screenshots that actually work** — auto-scrolls first so lazy-loaded images render instead of showing up as blank gaps
- 🍪 **Cookie banners removed automatically** — covers OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast, Osano, HubSpot, and more
- 📱 **Real device presets** — iPhone 15, iPhone SE, Pixel 7, iPad, Galaxy S23, or any custom desktop viewport up to 4K
- 🌙 **Dark mode rendering** — capture how your site looks with `prefers-color-scheme: dark`
- 🖼️ **PNG, JPEG, or WebP** output with quality control
- 🎯 **Wait controls** — wait for a CSS selector, add a fixed delay, or tune the navigation timeout
- 🧹 **Hide anything** — pass extra CSS selectors to remove sticky headers, chat widgets, or popups
- 💰 **Pay only for successful screenshots** — failed pages are never charged

### How to screenshot a website

1. Paste one or more **URLs**.
2. Pick **full page** or viewport, a **device preset** or custom viewport, and the **image format**.
3. Click **Start**. Images land in the key-value store with direct download links in the dataset.

One URL or ten thousand — same three steps.

### Input example

```json
{
    "urls": [{ "url": "https://apify.com" }],
    "fullPage": true,
    "format": "png",
    "device": "desktop",
    "viewportWidth": 1920,
    "hideCookieBanners": true,
    "darkMode": false
}
````

### Output

Screenshots are saved to the run's **key-value store**. The **dataset** contains one record per URL with a direct download link:

```json
{
    "url": "https://apify.com",
    "screenshotUrl": "https://api.apify.com/v2/key-value-stores/.../records/screenshot_001_apify.com.png",
    "format": "png",
    "fullPage": true,
    "device": "desktop",
    "bytes": 245133,
    "status": "SUCCEEDED"
}
```

Failed URLs get `"status": "FAILED"` with an error message — and are not charged.

### Pricing

$2.00 per 1,000 screenshots captured, plus a few cents of platform usage. Failed pages are never charged. No subscriptions, no minimums — perfect for both one-off batches and scheduled monitoring.

### Use cases

- **AI agents & LLM apps** — give your agent eyes; capture pages for visual analysis or archiving
- **Monitoring** — schedule daily screenshots of your site, competitors, or price pages
- **Link previews & social cards** — generate preview images for URLs at scale
- **Archiving & compliance** — keep visual records of pages at a point in time
- **QA & design review** — check how pages render on mobile devices and in dark mode

### Using via API

Like every Apify Actor, you can run it via REST API, the Apify JavaScript/Python clients, CLI, or on a schedule. Integrate with Make, Zapier, n8n, LangChain, and more.

```bash
curl -X POST "https://api.apify.com/v2/acts/originalvi~website-screenshot-pro/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "urls": [{ "url": "https://example.com" }] }'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("originalvi/website-screenshot-pro").call(run_input={
    "urls": [{"url": "https://example.com"}, {"url": "https://news.ycombinator.com"}],
    "fullPage": True,
    "device": "iphone15",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["url"], "→", item["screenshotUrl"])
```

### FAQ

**Does it work on sites that block bots?**
Most sites render fine. For strict ones, enable Apify Proxy (residential) in the input.

**How do I screenshot pages behind a login?**
Not supported in this version — reach out via the Issues tab if you need it and I'll prioritize it.

**A page renders incompletely — what should I try?**
Add a `waitForSelector` for the main content element, or set `delayMs` to 2000–5000. For full-page shots keep `scrollToBottom` enabled.

**Can I capture a specific element only?**
Pass CSS selectors in `hideSelectors` to strip everything else, or open an issue — element-clipping is on the roadmap.

**What's the maximum page size?**
Full-page captures handle very long pages (tens of thousands of pixels). Extremely long pages are capped by Chromium's internal limits; the Actor falls back to the maximum capturable height.

**How fast is it?**
A typical page takes 3–8 seconds including navigation. Batches run URLs sequentially within one run; start several runs in parallel for large jobs.

### More Actors by this developer

- [eBay Sold Listings Scraper](https://apify.com/originalvi/ebay-sold-listings) — real sold prices + price statistics
- [Google Trends Explorer](https://apify.com/originalvi/google-trends-explorer) — interest over time, related queries & topics
- [Google News Scraper](https://apify.com/originalvi/google-news-scraper) — structured news articles by keyword
- [App Store Reviews Scraper](https://apify.com/originalvi/app-store-reviews-scraper) — iOS reviews & ratings across 20+ countries
- [Hacker News Scraper](https://apify.com/originalvi/hacker-news-scraper) — HN stories & comments by keyword

### Found a problem?

Open an issue on the **Issues** tab and I'll fix it fast — usually within a day.

# Actor input Schema

## `urls` (type: `array`):

List of web page URLs to screenshot.

## `fullPage` (type: `boolean`):

Capture the entire scrollable page instead of just the visible viewport.

## `format` (type: `string`):

Output image format.

## `quality` (type: `integer`):

1–100. Ignored for PNG.

## `device` (type: `string`):

Emulate a device. Overrides viewport width/height when not set to Desktop.

## `viewportWidth` (type: `integer`):

Browser window width. Used when device is Desktop.

## `viewportHeight` (type: `integer`):

Browser window height. Used when device is Desktop.

## `darkMode` (type: `boolean`):

Ask the page to render in dark color scheme (prefers-color-scheme: dark).

## `hideCookieBanners` (type: `boolean`):

Automatically hide common cookie-consent banners and overlays before capturing.

## `hideSelectors` (type: `array`):

Additional CSS selectors to hide before the screenshot, e.g. sticky headers or chat widgets.

## `scrollToBottom` (type: `boolean`):

Scroll through the page before capturing so lazy-loaded images appear. Recommended for full-page shots.

## `waitForSelector` (type: `string`):

Wait until this element appears before capturing (optional).

## `delayMs` (type: `integer`):

Additional wait after page load, for animations or late content. Max 30000.

## `timeoutSecs` (type: `integer`):

Maximum time to wait for a page to load.

## `proxyConfiguration` (type: `object`):

Proxy settings. Use Apify Proxy if target sites block datacenter IPs.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://apify.com"
    }
  ],
  "fullPage": true,
  "format": "png",
  "quality": 80,
  "device": "desktop",
  "viewportWidth": 1920,
  "viewportHeight": 1080,
  "darkMode": false,
  "hideCookieBanners": true,
  "hideSelectors": [],
  "scrollToBottom": true,
  "delayMs": 0,
  "timeoutSecs": 60,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        {
            "url": "https://apify.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("originalvi/website-screenshot-pro").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [{ "url": "https://apify.com" }] }

# Run the Actor and wait for it to finish
run = client.actor("originalvi/website-screenshot-pro").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    {
      "url": "https://apify.com"
    }
  ]
}' |
apify call originalvi/website-screenshot-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=originalvi/website-screenshot-pro",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Website Screenshot Pro",
        "description": "Pixel-perfect screenshots of any URL: full page, mobile devices, dark mode, cookie-banner removal, PNG/JPEG/WebP.",
        "version": "1.0",
        "x-build-id": "gFChQV1nU1cVEbMAD"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/originalvi~website-screenshot-pro/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-originalvi-website-screenshot-pro",
                "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/originalvi~website-screenshot-pro/runs": {
            "post": {
                "operationId": "runs-sync-originalvi-website-screenshot-pro",
                "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/originalvi~website-screenshot-pro/run-sync": {
            "post": {
                "operationId": "run-sync-originalvi-website-screenshot-pro",
                "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": "List of web page URLs to screenshot.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "fullPage": {
                        "title": "Full page",
                        "type": "boolean",
                        "description": "Capture the entire scrollable page instead of just the visible viewport.",
                        "default": true
                    },
                    "format": {
                        "title": "Image format",
                        "enum": [
                            "png",
                            "jpeg",
                            "webp"
                        ],
                        "type": "string",
                        "description": "Output image format.",
                        "default": "png"
                    },
                    "quality": {
                        "title": "Image quality (JPEG/WebP only)",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "1–100. Ignored for PNG.",
                        "default": 80
                    },
                    "device": {
                        "title": "Device preset",
                        "enum": [
                            "desktop",
                            "iphone-15",
                            "iphone-se",
                            "pixel-7",
                            "ipad",
                            "galaxy-s23"
                        ],
                        "type": "string",
                        "description": "Emulate a device. Overrides viewport width/height when not set to Desktop.",
                        "default": "desktop"
                    },
                    "viewportWidth": {
                        "title": "Viewport width (px)",
                        "minimum": 320,
                        "maximum": 3840,
                        "type": "integer",
                        "description": "Browser window width. Used when device is Desktop.",
                        "default": 1920
                    },
                    "viewportHeight": {
                        "title": "Viewport height (px)",
                        "minimum": 320,
                        "maximum": 2160,
                        "type": "integer",
                        "description": "Browser window height. Used when device is Desktop.",
                        "default": 1080
                    },
                    "darkMode": {
                        "title": "Dark mode",
                        "type": "boolean",
                        "description": "Ask the page to render in dark color scheme (prefers-color-scheme: dark).",
                        "default": false
                    },
                    "hideCookieBanners": {
                        "title": "Hide cookie banners",
                        "type": "boolean",
                        "description": "Automatically hide common cookie-consent banners and overlays before capturing.",
                        "default": true
                    },
                    "hideSelectors": {
                        "title": "Hide extra elements (CSS selectors)",
                        "type": "array",
                        "description": "Additional CSS selectors to hide before the screenshot, e.g. sticky headers or chat widgets.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "scrollToBottom": {
                        "title": "Scroll to bottom first",
                        "type": "boolean",
                        "description": "Scroll through the page before capturing so lazy-loaded images appear. Recommended for full-page shots.",
                        "default": true
                    },
                    "waitForSelector": {
                        "title": "Wait for CSS selector",
                        "type": "string",
                        "description": "Wait until this element appears before capturing (optional)."
                    },
                    "delayMs": {
                        "title": "Extra delay (ms)",
                        "minimum": 0,
                        "maximum": 30000,
                        "type": "integer",
                        "description": "Additional wait after page load, for animations or late content. Max 30000.",
                        "default": 0
                    },
                    "timeoutSecs": {
                        "title": "Navigation timeout (seconds)",
                        "minimum": 10,
                        "maximum": 180,
                        "type": "integer",
                        "description": "Maximum time to wait for a page to load.",
                        "default": 60
                    },
                    "proxyConfiguration": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Proxy settings. Use Apify Proxy if target sites block datacenter IPs.",
                        "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
                                    }
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
