# Website Screenshot, PDF & Visual Change Monitor (`pakowithk/website-screenshot-pdf`) Actor

Bulk full-page screenshots (PNG/JPEG/WebP) and PDFs of any page or whole website, plus visual change monitoring: changes framed in red and webhook alerts. No height cap, cookie banners handled, ads blocked, carousels unfolded, mobile emulation. Pay only for successful captures.

- **URL**: https://apify.com/pakowithk/website-screenshot-pdf.md
- **Developed by:** [Paco Alberola](https://apify.com/pakowithk) (community)
- **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 screenshots

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 & Visual Change Monitor

Take **clean, complete screenshots and PDFs of any website in bulk**, capture **every page of a website** from its sitemap, and **get alerted when a page changes**, with every change framed in red.

Paste URLs or just a domain, pick a device and get PNG, JPEG, WebP or PDF files back. **Cookie banners are accepted or removed, ads are blocked**, products hidden in carousels can be unfolded so nothing is missed, and you only pay for screenshots that succeed.

![Visual change monitoring: every change since the previous run is framed in red](https://api.apify.com/v2/key-value-stores/kryiuaUJ4oDXd8Ban/records/01-change-monitoring)

### Why this screenshot tool?

- 🔔 **Visual change monitoring.** Schedule it and know when a competitor changes a price, a landing page, a banner or its terms: you get the % of the page that changed, an image with every changed area framed in red and an optional webhook alert.
- 🎠 **See (and monitor) what's hidden in carousels.** Product rows and sliders only show a few items; the rest sit off-screen to the right, invisible to normal screenshots and change monitors. Turn on *Show all carousel items*: every carousel is swiped through and unfolded into a grid, so every product and price is captured, and price changes in them are detected too. Works with native scroll rows and Swiper, Slick, Glide, Splide and Owl sliders.
- 🌐 **Whole websites in one run.** Enter `example.com` and every page in its sitemap is captured (filter by URL pattern, limit the number of pages).
- 📏 **Truly full pages, no 16,384 px cap.** Long pages are captured top to bottom, without the blank areas other tools leave on very tall pages or on sections the browser skips off-screen.
- 🧩 **Web apps captured whole.** Pages whose content scrolls inside a panel (Notion-, Gmail-, Spotify- or Stripe-docs-style layouts) are expanded automatically, so you get the full content instead of just the first screen. Boards that scroll sideways (Trello, Kanban apps) are captured with every column and every card. Mobile tab bars, floating chat buttons and promo pop-ups don't end up in the middle of the image.
- 🖼️ **No blank or grey images.** The page is scrolled first and every image is waited for, so lazy-loaded content actually appears.
- ♾️ **Infinite-scroll mode** for sites that unload images off-screen (AliExpress, Instagram, Pinterest, Shein…): the page is captured slice by slice and stitched into one clean image.
- 🍪 **Cookie consent handled.** Clicks "Accept" on OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast, TrustArc and generic banners in 8 languages, then hides anything left (including Shadow-DOM banners like TikTok's), modal popups and chat widgets.
- 🚫 **Ad & tracker blocking** for faster loads and cleaner shots.
- 💸 **Failed URLs are free.** DNS errors, timeouts and blocked pages are reported but never charged.

![Normal screenshot vs. "Show all carousel items": every product hidden in a carousel is captured](https://api.apify.com/v2/key-value-stores/kryiuaUJ4oDXd8Ban/records/02-carousels-before-after)

![A whole mobile page captured top to bottom in one image, with no 16,384 px cap](https://api.apify.com/v2/key-value-stores/kryiuaUJ4oDXd8Ban/records/03-full-page-mobile)

### Features

- Full-page or viewport screenshots in **PNG, JPEG or WebP**
- **Website to PDF** (A4, Letter, Legal, A3) with backgrounds
- **Device emulation**: desktop 1920×1080, laptop 1366×768, iPad Pro, iPhone 15 Pro, or any custom viewport
- **Element screenshots**: capture only `#pricing`, `header` or any CSS selector
- **Logged-in pages**: pass your own **cookies** and **HTTP headers** (e.g. `Authorization`)
- **Dark mode**, custom **browser locale** and optional **proxy** for geo-specific pages
- Hide any extra element with your own CSS selectors
- Fast bulk processing in parallel with automatic retries

### Visual change monitoring

1. Turn on **Monitor visual changes** and give the monitor a name (e.g. `competitors`).
2. **Schedule** the Actor (Apify Console → Schedules) to run daily or hourly.
3. The first run saves a baseline. From then on, every result tells you:
   - `changed` — whether the page changed since the last run
   - `changePercent` — how much of the page changed (a single price counts)
   - `diffUrl` — the new screenshot with each changed area framed in red (the rest of the page is dimmed)
   - `previousScreenshotUrl` — the screenshot from the previous run
4. Optional **webhook**: get a JSON POST only when something changes, and send it to Slack, Discord, email, Make, Zapier or n8n.

📖 **Step-by-step tutorial:** [How to get a Slack alert when a competitor changes their prices](https://dev.to/pacoalberolaa/how-to-get-a-slack-alert-when-a-competitor-changes-their-prices-no-code-2month-2hk) (setup, Slack via Zapier/Make/n8n, avoiding false alarms).

Tip: pages with rotating banners, ads or clocks change all the time. Hide those areas with **Extra elements to hide**, or raise the **Change threshold**.

```json
{
  "urls": [{ "url": "https://competitor.com/pricing" }],
  "monitorChanges": true,
  "monitorId": "competitors",
  "webhookUrl": "https://hooks.zapier.com/hooks/catch/..."
}
```

Webhook payload:

```json
{
  "event": "website.changed",
  "url": "https://competitor.com/pricing",
  "changePercent": 0.42,
  "changeArea": { "x": 320, "y": 880, "width": 410, "height": 60 },
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/.../records/...png",
  "diffUrl": "https://api.apify.com/v2/key-value-stores/.../records/...-diff.jpg",
  "previousTakenAt": "2026-11-15T08:00:03Z",
  "checkedAt": "2026-11-16T08:00:05Z"
}
```

### Whole-website screenshots

Add domains to **Whole websites**: the Actor reads `robots.txt` and the sitemaps (including sitemap indexes and `.gz` files) and captures every page, homepage first. Sites without a sitemap fall back to the links on their homepage. Use **Only pages matching** / **Skip pages matching** (regular expressions) and **Max pages per website** to control what's captured. Combine it with change monitoring to watch an entire site.

### Use cases

- **Competitor monitoring**: get alerted when competitors change prices, plans, landing pages or promotions
- **E-commerce & marketing**: track bestseller pages and campaigns over time
- **SEO & agencies**: screenshot a client's whole site on mobile and desktop before and after a redesign
- **Website monitoring & QA**: detect unexpected visual changes or broken layouts after each deploy
- **Compliance & evidence**: save a PDF/PNG of a page exactly as it looked on a given date
- **AI & automation**: feed clean screenshots to vision models or n8n, Make and Zapier workflows
- **Thumbnails & link previews** for directories and catalogs

### How to use it

1. Add one or more URLs.
2. Choose the format and the device.
3. Click **Start**. Each screenshot appears in the **Output** tab with a preview and a direct download link.

If a long page shows grey or missing images (typical on infinite-scroll stores and social sites), turn on **Infinite-scroll mode**.

#### Input example

```json
{
  "urls": [{ "url": "https://www.amazon.com/gp/bestsellers" }, { "url": "https://example.com" }],
  "format": "webp",
  "device": "mobile",
  "fullPage": true,
  "acceptCookies": true,
  "blockAds": true
}
```

Logged-in page example:

```json
{
  "urls": [{ "url": "https://app.example.com/dashboard" }],
  "cookies": [{ "name": "session", "value": "YOUR_SESSION_COOKIE", "domain": ".example.com" }],
  "headers": { "Accept-Language": "en-US" }
}
```

#### Output example

Files are stored in the run's key-value store. Each dataset item looks like this:

```json
{
  "url": "https://example.com",
  "finalUrl": "https://example.com/",
  "title": "Example Domain",
  "statusCode": 200,
  "device": "desktop",
  "format": "png",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/example-com-327c3fda87.png",
  "sizeBytes": 41015,
  "cookiesAccepted": true,
  "takenAt": "2026-11-16T10:27:31.786Z",
  "error": null
}
```

Download results as JSON, CSV, Excel or HTML, or fetch them via the Apify API.

### Pricing

Pay per successful screenshot, plus small optional fees: one per change comparison when monitoring is on, and one per page where carousels were actually unfolded when *Show all carousel items* is on (pages without carousels aren't charged for it), and one per page captured through Apify's **residential proxy**, only if you choose it (residential traffic is far more expensive than normal traffic; see the FAQ). See the **Pricing** tab. Failed captures are **free**, and the first run of a monitor (the baseline) has no comparison fee.

### Integrations

Use it from the **Apify API**, the Python/JavaScript clients, or connect it to **Make, Zapier, n8n, Google Sheets, Slack** and webhooks. Schedule it to run daily for visual monitoring.

### FAQ

**Can it bypass CAPTCHAs or bot protection?** No. It captures pages as a normal visitor would see them. For logged-in pages, pass your own cookies.

**A site still shows a popup.** Add the popup's CSS selector to *Extra elements to hide*, or open an issue with the URL and it will be added to the built-in rules.

**Carousel items are missing even with *Show all carousel items* on.** Some carousels only load the next item when you click an arrow, so those items don't exist on the page until then. Items that never load are left out and the result includes a note. On mobile, stores with many carousels can get very long and hit the maximum image height: use Desktop for those.

**WebP or JPEG came back as PNG.** WebP images can't be taller than 16,383 px (JPEG 65,500 px). Taller pages are saved as PNG automatically and the result includes a `note`.

**How long are previous screenshots kept?** The baseline used for comparisons is stored in a named key-value store (`screenshot-monitor-<name>`) in your account and kept until you delete it. Links to old screenshots and diff images follow your plan's data retention.

**I get change alerts every run.** The page has dynamic content (ads, carousels, dates, "X people viewing"). Hide it with **Extra elements to hide** or raise the **Change threshold** (e.g. `1`). Personalised or randomly ordered feeds (marketplace search results, social timelines) change on every visit: monitor a specific product, pricing or landing page instead.

**Some pages show "HTTP 403" or another HTTP error and no screenshot.** The site answered with an error (often because it doesn't allow automated browsers). These URLs are reported in the dataset and **not charged**. Turn on **Capture error pages** if you want a screenshot of the error page anyway.

**Some images are grey or empty boxes and the result has a note about images that didn't load.** Some big sites serve less content to cloud servers than to home visitors (the page loads, but some photos or sections never appear). The Actor scrolls over them and waits before capturing; if they still don't load, it tells you instead of failing silently. Run it again, or set **Proxy** to Apify Proxy → **Residential** with the site's country.

**Why does the residential proxy cost extra?** It loads the page through a real home internet connection, which sites trust, so they show their full content. That traffic is paid per gigabyte and is many times more expensive than a normal connection: a heavy store homepage can download 50+ MB through it. So each page captured through the residential proxy has an extra fee (see the **Pricing** tab). Failed pages are still free, and the default proxy or your own proxy URLs have no extra fee.

**A website only returned its homepage.** Its sitemap couldn't be read and its homepage had no usable links (or it doesn't allow automated access). Add the pages you need to **URLs** directly.

**Is it legal?** Taking screenshots of public web pages is generally fine, but you're responsible for how you use the images (copyright, trademarks, personal data).

**Need a custom feature?** Open an issue in the **Issues** tab — feature requests are welcome.

# Actor input Schema

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

Pages to capture. One screenshot (or PDF) per URL. 'https://' is added automatically if missing.

## `websites` (type: `array`):

Optional. Enter a domain (e.g. 'example.com') and every page listed in its sitemap is captured. If the site has no sitemap, the links on its homepage are used.

## `maxPagesPerWebsite` (type: `integer`):

Limit of pages captured for each website. The homepage comes first unless the URL filters exclude it.

## `includeUrlPattern` (type: `string`):

Optional. Only capture website pages whose URL matches this regular expression, e.g. '/blog/' or '/(es|en)/products'.

## `excludeUrlPattern` (type: `string`):

Optional. Skip website pages whose URL matches this regular expression, e.g. '/tag/|/author/'.

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

PNG (lossless), JPEG or WebP (much smaller files) or PDF (printable document). WebP is limited to 16,383 px: taller pages are saved as PNG.

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

Device to emulate. Mobile and tablet use a real device user agent, touch and pixel ratio.

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

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

## `stitchFullPage` (type: `boolean`):

For sites that unload images when they leave the screen (AliExpress, Instagram, Pinterest, Shein…): scrolls screen by screen, captures each part when it's loaded and stitches them into one image. Slower; use it only if a normal full-page capture shows grey or empty images.

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

Full-page captures stop at this height (CSS pixels, from the top). Output images are also limited to 65,000 real pixels (≈21,600 px of page on 3x mobile screens) so JPEG works and memory stays safe; the result includes a note when a page is cut.

## `acceptCookies` (type: `boolean`):

Clicks the 'Accept' button of cookie consent popups (OneTrust, Cookiebot, Didomi, Usercentrics… and generic buttons in 8 languages), so the page shows the content a consenting visitor sees.

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

Hides any consent banner still visible, modal popups and chat widgets for clean screenshots. Works together with 'Accept cookie consent'.

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

Blocks requests to major ad networks and trackers and hides ad slots. Pages load faster and screenshots are cleaner.

## `expandCarousels` (type: `boolean`):

Unfolds horizontal carousels and sliders (product rows, image sliders…) into rows so every item is visible, including the ones hidden to the right. Useful for monitoring prices or products that sit off-screen in a carousel. Each carousel is swiped through first so its items load; items that still never load (empty placeholders) are left out and the result includes a note. Notes: the screenshot will no longer look exactly like the live page, and on mobile, cards are shown 2 per row, smaller than on the live page. Carousels that only load the next item when you click an arrow can't be unfolded. On mobile, pages with many carousels (big stores) get very long and may hit the maximum image height: use Desktop for more compact results. Small extra fee per page where at least one carousel was unfolded (see the Pricing tab); pages without carousels aren't charged for it.

## `monitorChanges` (type: `boolean`):

Compare each screenshot with the one from the previous run: get the % of the page that changed and an image with every changed area framed in red. Schedule the Actor (daily, hourly…) to watch competitors' prices, landing pages or terms. The first run saves the baseline.

## `monitorId` (type: `string`):

Screenshots are compared with previous runs that used the same monitor name. Use different names for independent monitors.

## `changeThreshold` (type: `string`):

Minimum % of the page area that must change to report it as changed. 0 = report any real change (a price or a single word counts; rendering noise is already filtered). Raise it (e.g. 1) for pages with rotating banners or clocks, or hide those areas with 'Extra elements to hide'.

## `webhookUrl` (type: `string`):

Optional. When a page changes, a JSON POST is sent here (works with Slack/Discord via Zapier, Make, n8n or any webhook). Tip: hide dynamic areas (ads, carousels, dates) with 'Extra elements to hide' to avoid false alerts.

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

Only used when Device is 'Custom viewport'.

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

Only used when Device is 'Custom viewport'.

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

Optional. Screenshot just the first element matching this selector, e.g. '#pricing' or 'header'.

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

Optional CSS selectors to hide before capturing, e.g. '.newsletter-popup'.

## `cookies` (type: `array`):

Optional. Cookies to set before loading each URL, e.g. a session cookie exported from your browser: \[{"name": "session", "value": "abc", "domain": ".example.com"}]. Without 'domain' the cookie applies to each URL's site.

## `headers` (type: `object`):

Optional. Extra headers sent with every request, e.g. {"Authorization": "Bearer …"} or {"Accept-Language": "es-ES"}.

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

When the page is considered loaded. 'networkidle' is slower but safer for heavy JavaScript sites.

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

Wait this many milliseconds after loading (e.g. for animations).

## `scrollToLoad` (type: `boolean`):

For full-page captures, scroll the page first so lazy-loaded images appear.

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

Emulate prefers-color-scheme: dark.

## `locale` (type: `string`):

Optional, e.g. 'en-US', 'es-ES'. Affects language on sites that auto-detect it.

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

Only for JPEG and WebP output (1-100).

## `pdfFormat` (type: `string`):

Only for PDF output.

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

How many pages are captured in parallel.

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

Maximum time to load and capture each page. Raise it for very slow or heavy sites.

## `maxRetries` (type: `integer`):

How many times a failed page is retried (timeouts, network errors). Error pages and blocked sites are not retried. Retries are never charged.

## `captureErrorPages` (type: `boolean`):

By default, pages that answer with an HTTP error (404, 403, 500…) are reported as errors and not charged. Turn this on to capture and charge them like any other page (e.g. to document a broken page).

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

Optional. Use a proxy for sites that block datacenter IPs or to capture a country-specific version. If a site returns HTTP 403 or the result says some images didn't load, choose Apify Proxy → Residential (and the site's country): the page is loaded through a real home connection, so it usually shows everything. Residential traffic is much more expensive than normal traffic (a heavy page can download 50+ MB through it), so each page captured through it has an extra fee (see the Pricing tab); failed pages are still free. The default proxy and your own proxy URLs have no extra fee.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://apify.com"
    }
  ],
  "maxPagesPerWebsite": 50,
  "format": "png",
  "device": "desktop",
  "fullPage": true,
  "stitchFullPage": false,
  "maxPageHeight": 30000,
  "acceptCookies": true,
  "hideCookieBanners": true,
  "blockAds": true,
  "expandCarousels": false,
  "monitorChanges": false,
  "monitorId": "default",
  "changeThreshold": "0",
  "viewportWidth": 1920,
  "viewportHeight": 1080,
  "waitUntil": "load",
  "delayMs": 0,
  "scrollToLoad": true,
  "darkMode": false,
  "quality": 80,
  "pdfFormat": "A4",
  "maxConcurrency": 5,
  "timeoutSecs": 45,
  "maxRetries": 2,
  "captureErrorPages": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One item per URL: screenshotUrl, diffUrl, changed, changePercent, statusCode, note, error…

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

Every captured image or PDF (and the change-highlight images) in the run's key-value store.

# 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("pakowithk/website-screenshot-pdf").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("pakowithk/website-screenshot-pdf").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": [
    {
      "url": "https://apify.com"
    }
  ]
}' |
apify call pakowithk/website-screenshot-pdf --silent --output-dataset

```

## MCP server setup

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

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/P8fdpCIAIUEZczZRW/builds/vA7E3ZC4gQo2VNf8Y/openapi.json
