# Website Screenshot API & Visual Change Monitor (`pegton/website-screenshot-monitor`) Actor

Full-page website screenshots in bulk on desktop, laptop, tablet and mobile, with cookie banners hidden, lazy images loaded, optional PDF, and a visual change monitor with diff images. Failed pages are never charged.

- **URL**: https://apify.com/pegton/website-screenshot-monitor.md
- **Developed by:** [Rafael Iovi](https://apify.com/pegton) (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 $2.00 / 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 API & Visual Change Monitor: Full-Page, Mobile, PDF

**Take full-page screenshots of any list of websites on desktop, laptop, tablet and mobile in one run. Cookie banners are hidden, lazy-loaded images are scrolled into view, and you can save a PDF too. Turn on the visual change monitor to compare every capture with the previous run. It is shift-tolerant: when a banner is inserted or a section grows, the content below is matched to its new position, so only what really changed is counted and highlighted in red.**

Every screenshot is saved as a PNG or JPEG file with a direct link in the dataset, ready for reports, archives, QA, SEO audits, competitor tracking or AI vision models.

### Why this Actor

| | |
|---|---|
| 📱 **4 devices in one run** | Desktop 1920×1080, laptop 1366×768, tablet (iPad, retina) and mobile (iPhone, retina, mobile user agent). One row per URL × device. |
| 🍪 **Clean screenshots** | Hides 80+ cookie-consent banners (OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast, Sourcepoint, Borlabs, Complianz, CookieYes …) with CSS. Nothing is clicked or accepted. Add your own selectors for chat widgets or pop-ups. |
| 📜 **Real full-page captures** | Scrolls once through the page so lazy images and sections load, then captures up to 16,000 px of height. |
| 🔍 **Shift-tolerant change monitor** | `compareWithPrevious` stores the last capture per URL and device. Rows are aligned like lines in a text diff, so a 60 px banner no longer flags the whole page below it. Each run returns `changePct`, `changed`, the `changedRegions` as boxes, the detected `contentShiftPx` and a red-highlighted `diffImageUrl`. Use `onlyChanged` to output and pay only for pages that changed. |
| 🎛️ **Noise control** | Blank out ads, clocks and carousels with `ignoreSelectors` or `ignoreRegions`. `noiseBaseline` learns each page's usual noise level and only alerts above it. |
| 📄 **PDF export** | Optional PDF of the page as rendered on screen (desktop/laptop). |
| 🎯 **Precise control** | Wait for a CSS selector, capture only one element (`#pricing`), extra delay, dark mode, PNG or JPEG with quality, page timeout, concurrency. |
| 💸 **Fair billing** | Failed pages (DNS errors, timeouts) and HTTP 4xx/5xx pages are never charged. A hard `maxChargeUsd` cap is available. |

### Use cases

- **Competitor & price monitoring:** schedule daily captures of competitors' pricing, landing and product pages and get alerted only when something visibly changes.
- **Website QA & visual regression:** check your own site on mobile and desktop after every deploy, with diff images.
- **SEO & agency reporting:** before/after screenshots of client sites, SERP landing pages or ad landing pages.
- **Archiving & compliance:** timestamped full-page evidence of terms, prices, claims or ads (`capturedAt`, PNG + PDF).
- **Lead generation & outreach:** thumbnails of prospect websites for CRMs, audits and personalised videos.
- **AI agents & vision models:** feed screenshots to GPT-4o, Claude or Gemini for UX reviews, data extraction or classification.

### Input examples

**Desktop + mobile full-page screenshots**

```json
{
  "urls": ["https://apify.com", "https://www.wikipedia.org"],
  "devices": ["desktop", "mobile"]
}
```

**Daily visual change monitor for competitor pricing pages (pay only for changes)**

```json
{
  "urls": ["https://www.competitor-a.com/pricing", "https://www.competitor-b.com/pricing"],
  "devices": ["desktop"],
  "compareWithPrevious": true,
  "changeThresholdPct": 0.1,
  "ignoreSelectors": [".ad-slot", "time", "#live-ticker"],
  "onlyChanged": true,
  "format": "jpeg"
}
```

Save it as a task, add a daily schedule, and connect a Slack, email or webhook integration on "run succeeded". Every run then reports only the pages that changed, each with a diff image.

**Capture just one element, with an archive PDF**

```json
{
  "urls": ["https://example.com/pricing"],
  "elementSelector": "#pricing-table",
  "waitForSelector": "#pricing-table",
  "savePdf": true
}
```

### Output

```json
{
  "url": "https://www.spiegel.de",
  "finalUrl": "https://www.spiegel.de/",
  "device": "desktop",
  "viewport": "1920x1080",
  "fullPage": true,
  "title": "DER SPIEGEL | Online-Nachrichten",
  "httpStatus": 200,
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/…/records/www-spiegel-de-desktop-08fffccc82665e58.png",
  "pdfUrl": "https://api.apify.com/v2/key-value-stores/…/records/www-spiegel-de-desktop-08fffccc82665e58.pdf",
  "imageWidth": 1920,
  "imageHeight": 16000,
  "fileSizeKb": 1592.8,
  "loadTimeMs": 3673,
  "changePct": 0.47,
  "changed": true,
  "noiseBaselinePct": 0.03,
  "pixelChangePct": 26.34,
  "contentShiftPx": 77,
  "changedRegions": [{ "x": 0, "y": 0, "width": 1920, "height": 77 }],
  "previousCapturedAt": "2026-11-18T18:40:12Z",
  "diffImageUrl": "https://api.apify.com/v2/key-value-stores/…/records/www-spiegel-de-desktop-08fffccc82665e58-diff.jpg",
  "errorCode": null,
  "charged": true,
  "capturedAt": "2026-11-18T18:41:02Z"
}
```

The dataset's **Screenshots** view shows image previews. Files live in the run's key-value store. `RUN_SUMMARY` holds counts, errors and the estimated charge.

### Pricing (pay per event)

| Event | Price | Charged when |
|---|---|---|
| Screenshot | **$0.002** ($2 per 1,000) | A screenshot is delivered for a page that loaded (HTTP < 400). |
| PDF | $0.001 | A PDF is saved (`savePdf`). |
| Actor start | $0.00005 per GB | Apify's standard start event. |

Monitoring 20 pages daily on one device costs about $1.20 a month. With `onlyChanged` you pay only for days with changes. Compute is included in the price.

### FAQ

**Does it accept cookies or click anything?**
No. Consent banners are only hidden with CSS for the image. The Actor doesn't log in, click "accept", solve CAPTCHAs or get around paywalls. Pages behind a login or bot protection are captured as they appear to a normal visitor.

**How is `changePct` calculated?**

1. Both captures are scaled to the same width (area averaging smooths anti-aliasing), keeping every pixel row.
2. Each row gets a coarse fingerprint, and rows are aligned like lines in a text diff. Content that only moved up or down is paired with its new position. Blocks that did not match exactly try the offsets of the surrounding content, which also handles JPEG noise and edits inside shifted sections.
3. Paired rows are compared pixel by pixel with a colour tolerance, and isolated changed pixels are dropped.
4. New rows count where they differ from the page background, and removed content counts too. Blank space that grew or shrank does not.

`changePct` is the changed share of the page. `pixelChangePct` is the old position-by-position score, kept so you can compare. `contentShiftPx` is the main vertical shift found (e.g. 77 = everything below moved down 77 px). The first run of a URL stores the reference, so `changed` is `null`.

**How well does it ignore layout shifts? (measured 18 Nov 2026)**
Same page captured twice, or captured again with a yellow banner (61–82 px) inserted at the top. Desktop 1920 px, full page, PNG.

| Page | Situation | Old score (`pixelChangePct`) | New `changePct` |
|---|---|---|---|
| example.com | captured twice | 0 % | 0 % |
| Notion pricing | captured twice, layout moved 79 px between runs (Apify cloud, JPEG) | 5.05 % | 0.53 % |
| BBC homepage | captured twice, content moved 16 px | 16.54 % | 0.03 % |
| Wikipedia article | captured twice | 0 % | 0 % |
| Notion pricing | banner inserted (banner = 0.85 % of page) | 7.83 % | 0.85 % |
| BBC homepage | banner inserted (banner = 0.55 % of page) | 26.34 % | 0.47 % |
| Wikipedia article | banner inserted (banner = 0.43 % of page) | 2.01 % | 0.47 % |

With the old method the BBC page looked a quarter changed. The new score is about the size of the banner, and the diff image marks only the banner. As JPEG, the banner cases score 0.48–1.6 %, because compression noise around the shifted edges counts a little.

**Which threshold should I use?**
The default of 0.1 % catches layout and content changes on most pages. A single edited price or word is tiny compared with a whole page (0.003–0.02 % in our tests, still listed in `changedRegions`). To watch one price, capture just that block with `elementSelector` (e.g. `#pricing`), so the edit is a large share of the image. On busy news pages, use 1–2 % or let `noiseBaseline` learn the page.

**I added `ignoreSelectors` and the next run reported a change.**
That's expected once: the stored reference was captured without the masks. From the following run on, both captures are masked the same way.

**Why is my screenshot cut at 16,000 px?**
Very long pages are clipped at 16,000 CSS pixels so images stay usable and runs stay fast. Use `elementSelector` to capture a specific section further down.

**Which memory should I use?**
The default of 2 GB with 4 parallel pages handles about 30–60 screenshots per minute. For big lists, use 4 GB and `maxConcurrency: 8`.

**Can I use it from Make, Zapier, n8n or my own code?**
Yes. Call the Actor through the Apify API or an integration and read `screenshotUrl` from the dataset. It works well as a screenshot API for no-code automations.

### More tools by pegton

- [ATS Jobs Scraper](https://apify.com/pegton/ats-jobs-scraper): open jobs from Greenhouse, Lever, Ashby, Workable, Personio and more.
- [Website Contact Details Scraper](https://apify.com/pegton/website-contact-enricher): emails, phones and socials from company websites.
- [App Store & Google Play Reviews Scraper](https://apify.com/pegton/app-review-monitor) with new-review alerts.
- Ready-made n8n automation templates: [pegton.gumroad.com](https://pegton.gumroad.com)

# Actor input Schema

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

Pages to capture, one per line. 'https://' is added if missing.

## `devices` (type: `array`):

One screenshot per URL and device. Empty = desktop.

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

Capture the whole scrollable page (up to 16,000 px high). Off = only the visible viewport.

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

PNG is pixel-exact; JPEG files are 5–10× smaller.

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

Only for JPEG.

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

Hides 80+ common consent banners (OneTrust, Cookiebot, Usercentrics, Didomi, Quantcast, Borlabs, Complianz, CookieYes …) via CSS. Nothing is clicked or accepted.

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

E.g. chat widgets or newsletter pop-ups: #intercom-container, .newsletter-modal

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

Scrolls through the page once before a full-page capture so lazy-loaded images and sections appear.

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

When navigation counts as finished.

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

Gives animations and late scripts time to settle.

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

Optional. Capture only after this element appears (max 20 s).

## `elementSelector` (type: `string`):

Optional CSS selector, e.g. #pricing or .product-card. Overrides full page.

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

Emulates prefers-color-scheme: dark.

## `savePdf` (type: `boolean`):

Single-page PDF of the page as rendered on screen. Charged separately.

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

Stores the latest capture per URL and device and compares the next run with it. Content that only moved (a banner inserted above, a section that grew) is matched to its new position, so only what really changed is counted and highlighted in red in the diff image. Schedule the Actor to monitor competitors, prices, landing pages or your own site.

## `changeThresholdPct` (type: `number`):

changed = true when at least this share of the page differs (after layout shifts are matched and above the page's own noise baseline). 0.1 % catches small text and price edits on most pages; use 1–2 % for busy news pages.

## `ignoreSelectors` (type: `array`):

CSS selectors of dynamic areas to blank out before comparing (layout is kept): ads, clocks, carousels, live counters, chat widgets. E.g. .ad-slot, #live-ticker, time

## `ignoreRegions` (type: `array`):

Rectangles in CSS pixels of the page, ignored in both captures. Example: \[{"x": 0, "y": 0, "width": 1920, "height": 80}]

## `noiseBaseline` (type: `boolean`):

Remembers the last 7 change scores per URL and device. From the third run, changed = true only when changePct exceeds the page's usual (median) noise by the threshold. Rotating teasers on news sites stop triggering alerts.

## `onlyChanged` (type: `boolean`):

In monitor mode, unchanged pages are not output and not charged (the stored reference is still updated).

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

Per page and device.

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

Use 2 for 1 GB memory, 4 for 2 GB, 8 for 4 GB.

## `maxChargeUsd` (type: `number`):

Hard spending cap for this run.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://www.wikipedia.org"
  ],
  "devices": [
    "desktop",
    "mobile"
  ],
  "fullPage": true,
  "format": "png",
  "jpegQuality": 80,
  "hideCookieBanners": true,
  "scrollToLoad": true,
  "waitUntil": "load",
  "delayMs": 1000,
  "darkMode": false,
  "savePdf": false,
  "compareWithPrevious": false,
  "changeThresholdPct": 0.1,
  "ignoreRegions": [],
  "noiseBaseline": true,
  "onlyChanged": false,
  "timeoutSecs": 45,
  "maxConcurrency": 4
}
```

# Actor output Schema

## `screenshots` (type: `string`):

No description

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

No description

## `summary` (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://apify.com",
        "https://www.wikipedia.org"
    ],
    "devices": [
        "desktop",
        "mobile"
    ],
    "ignoreRegions": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("pegton/website-screenshot-monitor").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://www.wikipedia.org",
    ],
    "devices": [
        "desktop",
        "mobile",
    ],
    "ignoreRegions": [],
}

# Run the Actor and wait for it to finish
run = client.actor("pegton/website-screenshot-monitor").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://www.wikipedia.org"
  ],
  "devices": [
    "desktop",
    "mobile"
  ],
  "ignoreRegions": []
}' |
apify call pegton/website-screenshot-monitor --silent --output-dataset

```

## MCP server setup

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

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/oHrU9uBjek4wc4sfQ/builds/JhJ64KGlhCMp1KcmC/openapi.json
