# Website Screenshot & PDF API - Full Page, Bulk, Visual Diff (`technicaldost/website-screenshot-pdf-capture`) Actor

Capture full-page website screenshots (PNG/JPEG) or save any URL as PDF in bulk. Desktop, tablet and mobile views, cookie banners hidden, lazy images loaded, plus visual change detection between runs.

- **URL**: https://apify.com/technicaldost/website-screenshot-pdf-capture.md
- **Developed by:** [Technical Dost Solutions](https://apify.com/technicaldost) (community)
- **Categories:** Developer tools, SEO tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 successful captures

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 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 & PDF API - Full Page, Bulk, Visual Diff

**Try it now:** the prefilled input captures two pages in about 20 seconds for **less than $0.01**.

Capture **full-page website screenshots** (PNG or JPEG) or **convert any URL to PDF** — in bulk, from a list of thousands of URLs. Pick desktop, laptop, tablet or mobile, hide cookie banners automatically, load lazy images, and optionally **detect visual changes** between runs with a pixel diff image.

Each file is stored in the run's key-value store and returned as a **direct download link** in the dataset, together with the HTTP status, final URL after redirects, page title, size and load time.

### Who uses it

- **SEO and marketing agencies** – archive client and competitor pages, SERP landing pages and ads.
- **QA and web teams** – check responsive layouts on mobile, tablet and desktop after each deploy.
- **Compliance and legal** – timestamped PDF/PNG evidence of terms, prices and claims (SHA-256 hash included).
- **AI agents and automations** – a simple "URL → image/PDF" step for Make, n8n, Zapier or the Apify API.
- **Change monitoring** – schedule it with *Compare with previous run* to get alerted when a page visually changes.

### Features

- Full-page or first-screen screenshots, **PNG / JPEG / PDF** (A4, Letter, Legal, A3)
- Device presets: Desktop 1366×900, Laptop, **Tablet (iPad)**, **Mobile (iPhone, retina)** or a custom viewport
- **Cookie and consent banners hidden** with CSS (nothing is accepted on your behalf) + hide any extra CSS selector
- Scrolls the page first so **lazy-loaded images** render
- **Visual diff**: percent of pixels changed vs the previous run and a highlighted diff image
- Up to 10 pages in parallel, automatic retry on timeouts
- **Failed pages are never charged** – they are listed with the error for diagnosis

### Input example

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

Visual change monitor (schedule daily):

```json
{
  "urls": ["https://competitor.com/pricing"],
  "compareWithPrevious": true,
  "monitorName": "competitor-pricing",
  "changeThresholdPercent": 0.5
}
```

### Output example

```json
{
  "url": "https://apify.com/",
  "finalUrl": "https://apify.com/",
  "httpStatus": 200,
  "pageTitle": "Apify: Full-stack web scraping and data extraction platform",
  "format": "png",
  "device": "desktop",
  "width": 1366,
  "height": 8420,
  "fileUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/00001-3f2a9c.png",
  "fileSizeBytes": 2483120,
  "sha256": "9b1c…",
  "loadTimeMs": 4210,
  "capturedAt": "2026-11-21T08:00:00.000Z",
  "changed": true,
  "diffPercent": 3.42,
  "diffImageUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/00001-3f2a9c-diff.png",
  "error": null
}
```

Views: **Captures** (files, status, sizes) and **Visual changes** (changed flag, diff %, previous and diff images). Export as JSON, CSV or Excel, or fetch files via the API.

### Pricing

Pay per event, no subscription:

| Event | Price |
|---|---|
| Successful capture (screenshot or PDF) | **$0.0015** ($1.50 per 1,000) |
| Visual comparison with the previous run | $0.0005 |

Pages that fail to load are **not charged**. Use *Maximum cost per run* in the run options to cap spending.

### Tips

- Use **JPEG** for the smallest files and **PNG** when you need pixel-accurate comparison.
- Very long pages are cut at *Max full-page height* (default 15,000 px) to keep files usable.
- Sites that block automated browsers or require login may return an error page; the HTTP status shows it.
- Files are kept for your account's data-retention period; download or copy them if you need them longer.

### FAQ

**Can it log in or click consent buttons?** No. It captures public pages and hides banners visually only.

**Is there an API?** Yes — call the Actor through the Apify API or the Run sync endpoint and read `fileUrl` from the dataset.

***

Found it useful? A short review on the Store helps others find it. Problems or feature ideas → the Issues tab; they are answered quickly.

# Actor input Schema

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

Pages to capture. Domains without https:// are accepted. One capture per URL.

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

PNG is lossless and supports pixel diff. JPEG is smaller. PDF prints the page to a paged document.

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

Capture the whole scrollable page instead of only the first screen.

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

Viewport size, pixel density and user agent.

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

Overrides the device width. 0 keeps the device default.

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

Overrides the device height. 0 keeps the device default.

## `waitUntil` (type: `string`):

Navigation event to wait for before capturing.

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

Wait this long after load, e.g. for animations.

## `scrollToLoadLazy` (type: `boolean`):

Scrolls the page first so lazy-loaded images appear in full-page captures.

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

Hides common consent pop-ups with CSS. Nothing is clicked or accepted.

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

Extra elements to hide, e.g. chat widgets: #intercom-container

## `jpegQuality` (type: `integer`):

Only for JPEG.

## `pdfPaperFormat` (type: `string`):

Only for PDF.

## `maxPageHeight` (type: `integer`):

Very long pages are cut at this height.

## `compareWithPrevious` (type: `boolean`):

Keeps the last capture of each URL in a named store and reports the percent of pixels changed, with a diff image. Schedule the Actor to monitor pages.

## `monitorName` (type: `string`):

Separate monitors keep separate baselines.

## `changeThresholdPercent` (type: `number`):

A page counts as changed when more pixels than this differ.

## `maxConcurrency` (type: `integer`):

Pages captured at the same time.

## `pageTimeoutSecs` (type: `integer`):

Navigation timeout per page.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://example.com"
  ],
  "format": "png",
  "fullPage": true,
  "device": "desktop",
  "viewportWidth": 0,
  "viewportHeight": 0,
  "waitUntil": "load",
  "delayMs": 0,
  "scrollToLoadLazy": true,
  "hideCookieBanners": true,
  "hideSelectors": [],
  "jpegQuality": 80,
  "pdfPaperFormat": "A4",
  "maxPageHeight": 15000,
  "compareWithPrevious": false,
  "monitorName": "default",
  "changeThresholdPercent": 0.1,
  "maxConcurrency": 3,
  "pageTimeoutSecs": 45
}
```

# Actor output Schema

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

Links to every captured file with status, title, size and timing.

## `changes` (type: `string`):

Change flag, percent of pixels changed and diff images (when comparison is on).

## `files` (type: `string`):

All screenshot, PDF and diff files of this run.

## `summary` (type: `string`):

Captured, failed and changed counts with errors.

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

// Run the Actor and wait for it to finish
const run = await client.actor("technicaldost/website-screenshot-pdf-capture").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://apify.com",
        "https://example.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("technicaldost/website-screenshot-pdf-capture").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://apify.com",
    "https://example.com"
  ]
}' |
apify call technicaldost/website-screenshot-pdf-capture --silent --output-dataset

```

## MCP server setup

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

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/WdzjIOwOZxPZcU92O/builds/W6wzk7cW2u3O5KjoL/openapi.json
