# Website Screenshot Pro: full-page, element, mobile, PDF (`eze007/website-screenshot-pro`) Actor

Pixel-accurate screenshots of any URL: full page or viewport, desktop/tablet/mobile, element-only captures, dark mode, cookie-banner removal, lazy-load scrolling, optional PDF. Returns a hosted image URL per page. Pay per capture. Built for monitoring, QA, reports and AI agents.

- **URL**: https://apify.com/eze007/website-screenshot-pro.md
- **Developed by:** [Eric Birdsong](https://apify.com/eze007) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Website Screenshot Pro

Pixel-accurate screenshots of any URL, returned as a **hosted image link** per page — full page or viewport, desktop/laptop/tablet/mobile, element-only captures, dark mode, cookie-banner removal, lazy-load scrolling, ad/tracker blocking, and an optional **PDF** of the page.

Use it for visual monitoring, QA, competitor tracking, client reports, link previews, archiving — or give it to an AI agent that needs to *see* a page.

### Input

```json
{
  "urls": ["https://example.com/pricing", "https://competitor.com"],
  "fullPage": true,
  "device": "mobile",
  "format": "png",
  "hideCookieBanners": true,
  "pdf": true
}
```

| Option | What it does |
|---|---|
| `fullPage` | whole scrollable page (default) or just the viewport |
| `device` | desktop 1920×1080 · laptop 1366×768 · tablet 820×1180 · mobile 390×844 (iPhone-class) — or set `width`/`height` |
| `selector` | capture one element only, e.g. `#pricing` |
| `waitFor` / `delayMs` | wait for a selector and/or extra milliseconds before capturing |
| `scrollToBottom` | scrolls first so lazy-loaded images render |
| `hideCookieBanners`, `hideSelectors` | removes consent banners and anything else you name |
| `darkMode` | emulates `prefers-color-scheme: dark` |
| `blockAds` | blocks common ad and tracker hosts for cleaner, faster captures |
| `pdf` | also saves an A4 PDF with backgrounds |
| `proxy` | Apify proxy for sites that block datacenter IPs |

### Output

One dataset row per URL: `url, finalUrl, title, status, screenshotUrl, screenshotKey, pdfUrl, width, height, bytes, elapsedMs, error`. Files live in the run's key-value store; `screenshotUrl` is a direct link you can embed or download.

### Pricing

| Event | Price |
|---|---|
| Screenshot (viewport, full page or element) | $0.003 |
| PDF | $0.005 |

1,000 full-page screenshots = **$3.00**. Browser time is included — no platform usage on top. Free Apify plan: 10 captures per run.

### For AI agents (MCP)

Call with `urls: [page]` and read `screenshotUrl` from the result. Add `"device": "mobile"` for mobile checks or `"selector"` for a single component.

### Need a variant or a new data source?

Request it here — it ships as a pay-per-result Actor, usually within days, and you'll get the link in your request: https://github.com/Realdeal00/actor-requests/issues/new?template=request.yml

### Changelog

- 0.1 — initial release.

# Actor input Schema

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

Pages to capture. One screenshot (and optionally one PDF) per URL.

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

Capture the whole scrollable page instead of just the viewport.

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

Image format for the screenshot.

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

Compression quality for JPEG/WebP (1–100).

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

desktop 1920×1080, laptop 1366×768, tablet 820×1180, mobile 390×844 (iPhone-class UA).

## `width` (type: `integer`):

Overrides device width.

## `height` (type: `integer`):

Overrides device height.

## `selector` (type: `string`):

CSS selector — capture just this element (e.g. #pricing, .hero).

## `waitFor` (type: `string`):

Wait until this selector appears before capturing.

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

Extra wait after load for animations/lazy content.

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

Scroll the page before capturing so lazy-loaded content renders.

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

Hides common consent banners and overlays before capturing.

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

Extra CSS selectors to hide (chat widgets, popups).

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

Emulate prefers-color-scheme: dark.

## `pdf` (type: `boolean`):

Adds a full-page PDF per URL (billed separately).

## `blockAds` (type: `boolean`):

Block common ad and tracker hosts.

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

Maximum seconds to wait for navigation.

## `proxy` (type: `object`):

Turn on for sites that block datacenter IPs.

## Actor input object example

```json
{
  "urls": [
    "https://example.com"
  ],
  "fullPage": true,
  "format": "png",
  "quality": 80,
  "device": "desktop",
  "delayMs": 800,
  "scrollToBottom": true,
  "hideCookieBanners": true,
  "darkMode": false,
  "pdf": false,
  "blockAds": true,
  "timeoutSecs": 45,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `captures` (type: `string`):

No description

## `results` (type: `string`):

No description

# 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": [
        "https://example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("eze007/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": ["https://example.com"] }

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

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).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": [
    "https://example.com"
  ]
}' |
apify call eze007/website-screenshot-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,eze007/website-screenshot-pro"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/mh0FIM2pC0YtngJwJ/builds/B4CcTeRucruKbGOy1/openapi.json
