# Website Screenshot & Visual Change Monitor — PNG, JPEG, PDF (`docflow-tools/website-screenshot-monitor`) Actor

Bulk website screenshots: full page or viewport, desktop/tablet/mobile/retina, PNG, JPEG or PDF, cookie banners hidden, lazy images loaded. Optional visual change detection vs the previous run for scheduled monitoring. Failed captures are free.

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

## Pricing

from $1.60 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 & Visual Change Monitor — PNG, JPEG, PDF

Take screenshots of many public web pages in one run: the first screen or the full scrollable page, on five device
profiles, as PNG, JPEG or A4 PDF. Common cookie consent pop-ups are hidden before the capture and, for full-page shots,
the page is scrolled first so lazy-loaded images appear. Turn on **Compare with previous run** and schedule the Actor
to get the percentage of pixels that changed on each page since the last run. You pay per screenshot delivered; failed
pages and pages that answer with an HTTP error are free.

### What you get

One dataset item per URL, plus the image or PDF file in the run's key-value store.

| Field | Description |
|---|---|
| `url` | The URL as you entered it |
| `finalUrl` | The URL after redirects |
| `httpStatus` | HTTP status of the page |
| `title` | Page title |
| `device`, `format`, `fullPage` | The settings used |
| `screenshotUrl` | Direct link to the PNG, JPEG or PDF file |
| `key` | Key of the file in the run's key-value store, e.g. `0001-example-com-327c3fda.png` |
| `bytes` | File size |
| `truncatedAtPx` | Present only if a full page was taller than 16,384 px and was cut at that height |
| `changePercent` | Monitor mode: % of pixels that visibly changed since the previous run (`null` on the first run) |
| `changed` | Monitor mode: `true` if `changePercent` reached your threshold (`null` on the first run) |
| `seconds` | Time spent on the page |
| `error` | Only when something went wrong (see below) |

### Use cases

- **Visual change monitoring**: schedule daily runs over your own pages or pages you follow and get alerted when
  `changed` is `true`.
- **Archiving and evidence**: keep dated PNG or PDF captures of public pages, landing pages or ads.
- **QA across devices**: check how a page renders on desktop, retina laptop, tablet and mobile in one go.
- **Reports and thumbnails**: generate preview images for link directories, dashboards or client reports.
- **AI and vision pipelines**: give a vision model the rendered page instead of raw HTML.

### How to use

1. Add your **URLs** (one per line). Without `http(s)://`, `https://` is added.
2. Choose **Device**, **Full page** and **Format** (for JPEG, also *JPEG quality*).
3. Optional: *Hide cookie banners* (on by default), *Dark mode*, *Extra wait (ms)* for animations, *Page timeout (s)*.
4. For monitoring: turn on *Compare with previous run*, give the monitor a *Monitor name*, set the *Change threshold
   (%)*, and create an **Apify schedule** for the Actor with that input.
5. Click **Start**. Open `screenshotUrl` in the *Output* tab, or browse all files in the run's key-value store.

Input example:

```json
{
  "urls": ["https://example.com", "apify.com"],
  "device": "mobile",
  "fullPage": true,
  "format": "png",
  "hideCookieBanners": true,
  "darkMode": false,
  "waitMs": 1000,
  "timeoutSecs": 45,
  "compareWithPrevious": true,
  "monitorName": "my-site",
  "changeThresholdPercent": "1"
}
```

Device profiles:

| `device` | Viewport | Pixel density |
|---|---|---|
| `desktop` (default) | 1366 × 768 | 1× |
| `desktop-hd` | 1920 × 1080 | 1× |
| `laptop-retina` | 1440 × 900 | 2× |
| `tablet` | 820 × 1180 | 2× (mobile mode, iPhone Safari user agent) |
| `mobile` | 390 × 844 | 3× (mobile mode, iPhone Safari user agent) |

### Output example

Values are illustrative; the link is shortened.

```json
{
  "url": "https://example.com",
  "device": "mobile",
  "format": "png",
  "fullPage": true,
  "finalUrl": "https://example.com/",
  "httpStatus": 200,
  "title": "Example Domain",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/.../records/0001-example-com-327c3fda.png",
  "key": "0001-example-com-327c3fda.png",
  "bytes": 48213,
  "changePercent": 0.0,
  "changed": false,
  "seconds": 3.4
}
```

A page that answered with an error (illustrative; the capture is kept so you can see the error or block page, and it is not
charged):

```json
{ "url": "https://example.org/missing", "device": "desktop", "format": "png", "fullPage": false,
  "finalUrl": "https://example.org/missing", "httpStatus": 404, "title": "Not Found",
  "error": "HTTP 404: the site returned an error or blocked the visit (screenshot kept, not charged)",
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/.../records/0003-example-org-b496a025.png",
  "key": "0003-example-org-b496a025.png", "bytes": 15320, "seconds": 2.1 }
```

### Pricing

> **Prices by Apify discount tier:** the prices below are for the Bronze tier. **Free plan: 50 % off.** Silver: 10 % off. Gold and higher: 20 % off. Apify applies the right price automatically.

Pay per event, in USD:

| Event | Price | When it is charged |
|---|---|---|
| Actor start | $0.00005 | Charged by Apify when a run starts, per GB of run memory (default memory: 4 GB) |
| `screenshot` | $0.002 | Per page captured with an HTTP status below 400 |

**Not charged**: pages that time out or fail to load, blocked or invalid URLs, and pages that return HTTP 400 or
higher (you still get that capture). The comparison in monitor mode has no extra cost.

Worked examples (4 GB run, start = $0.0002):

- 1,000 URLs, 950 captured, 50 failed or returned errors: 950 × $0.002 = $1.90, plus start = **$1.9002**.
- Monitor 20 pages once a day for 30 days: 600 × $0.002 = $1.20, plus 30 starts × $0.0002 = $0.006, total
  **$1.206**.
- 100 product pages as PDF: 100 × $0.002 = $0.20, plus start = **$0.2002**.

Set Apify's *maximum cost per run* to cap the spend: the Actor stops taking new pages when the limit is reached.

### Use it from code, AI agents and integrations

Apify API, run and get the results in one call (waits up to 5 minutes; use the regular run endpoint for long lists):

```bash
curl -X POST "https://api.apify.com/v2/acts/docflow-tools~website-screenshot-monitor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://example.com"], "device": "desktop-hd", "fullPage": true, "format": "jpeg", "jpegQuality": 70}'
```

Python with `apify-client`:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("docflow-tools/website-screenshot-monitor").call(run_input={
    "urls": ["https://example.com", "https://example.org"],
    "compareWithPrevious": True,
    "monitorName": "competitors",
    "changeThresholdPercent": "2",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item.get("changed"):
        print("Changed:", item["url"], item["changePercent"], item["screenshotUrl"])
```

- **AI agents**: the Actor can be found and called by AI agents through the Apify MCP server at https://mcp.apify.com.
- **No-code**: use it from Make, Zapier or n8n through Apify's integrations; send `changed` pages to Slack or email
  with a webhook.

### Limits and notes

- **Up to 5,000 URLs per run**; extra URLs are ignored.
- **Public pages only.** No logins, no cookies of yours and no custom headers are sent. The Actor does not try to get
  around bot protection: a site that blocks automated visits returns an HTTP error and the capture is free.
- **Internal addresses are blocked**: `localhost`, `.local`/`.internal` names, private, loopback, link-local and
  reserved IP ranges. Only `http` and `https`. HTTPS certificate errors do not stop the capture.
- **Loading**: the page is opened until the DOM is ready (within *Page timeout*, 10-120 s), then the Actor waits up to
  10 s more for the load event and up to 2.5 s for the network to go quiet, then applies *Extra wait* (max 30 s).
- **Full page** height is capped at 16,384 px (Chromium's limit); taller pages are cut and flagged with
  `truncatedAtPx`.
- **PDF** is printed in A4 with backgrounds. PDFs are not compared in monitor mode.
- **Cookie banners** are hidden with CSS for common consent tools (OneTrust, Cookiebot, Didomi, Usercentrics,
  Quantcast, CookieYes, Osano, Complianz and others). Nothing is clicked, so no consent is given. Unknown banners can
  still appear.
- **Monitor mode** keeps the last capture of each URL + device + full-page combination in a named key-value store in
  your account (`screenshot-monitor-<monitor name>`), so it survives between runs. A pixel counts as changed when its
  grey level differs by more than 24 out of 255, which ignores anti-aliasing noise; if the page height changed, the
  extra area counts as changed.
- **Memory and speed**: pages are captured in parallel, about one browser page per 512 MB of memory beyond the first
  512 MB (up to 8). Use at least 2 GB: in our tests at 1 GB, Chromium crashed on heavy sites. A capture that crashes
  is retried once.
- Files stay in the run's key-value store for as long as your Apify plan keeps run storage.

### FAQ

**Why did I get a screenshot with an `error` field?**
The page answered with HTTP 400 or higher (for example 403 from bot protection or 404). You get the capture of what
was served, and it is not charged.

**How do I get alerted when a page changes?**
Run with *Compare with previous run* on an Apify schedule, then filter items where `changed` is `true` (in code, or
with a Make/Zapier/n8n step after the run).

**Can I keep separate histories for different lists?**
Yes. Use a different *Monitor name* for each list; each name has its own stored history.

**Can I capture pages behind a login?**
No. Only public pages are supported.

**Does the first monitor run tell me anything?**
It stores the baseline; `changePercent` and `changed` are `null`. From the second run on you get the comparison.

### Related tools

- [Document to Markdown for RAG](https://apify.com/docflow-tools/document-to-markdown-rag) — PDF, DOCX, XLSX, PPTX and HTML to clean Markdown with RAG chunks.
- [Feed Reader — only new items](https://apify.com/docflow-tools/feed-reader-only-new) — RSS, Atom and JSON Feed, returning only items you haven't seen.
- [PageSpeed Bulk Regression Monitor](https://apify.com/docflow-tools/pagespeed-bulk-regression-monitor) — PageSpeed Insights and Core Web Vitals for many URLs, flags regressions.
- [Image OCR](https://apify.com/docflow-tools/image-ocr-own-engine) — extract text from images with an own OCR engine.
- [Audio & Video Transcriber](https://apify.com/docflow-tools/audio-transcriber-whisper-local) — Whisper transcripts, SRT and VTT, billed per minute.
- [Merge, Deduplicate & Convert Datasets](https://apify.com/docflow-tools/merge-dedupe-transform-data) — merge datasets and CSV/JSON/Excel files, remove duplicates, export.
- [Bulk Image Converter & Compressor](https://apify.com/docflow-tools/bulk-image-converter-compressor) — convert to WebP, AVIF, JPEG or PNG with a target size.
- [Sitemap URL Extractor](https://apify.com/docflow-tools/sitemap-url-extractor-reliable) — every URL of a website from its sitemaps.
- [SEO Audit Crawler](https://apify.com/docflow-tools/seo-audit-crawler-cheap) — on-page SEO score and issues per page.
- [Website to Markdown & llms.txt](https://apify.com/docflow-tools/website-to-markdown-llms-txt) — websites to clean Markdown and llms.txt for LLMs.

# Actor input Schema

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

Public web pages to capture (up to 5,000 per run). Without http(s):// it adds https://.

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

Screen size and pixel density used to render the page.

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

Capture the whole scrollable page (up to 16,384 px tall) instead of the first screen.

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

Output file type.

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

Only for JPEG: 30-100.

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

Hide the most common consent pop-ups (OneTrust, Cookiebot, Didomi, Usercentrics, Quantcast and more).

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

Ask the page for its dark color scheme (prefers-color-scheme: dark).

## `waitMs` (type: `integer`):

Extra milliseconds to wait after the page loads (animations, late widgets).

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

Give up on a page after this many seconds. Failed pages are not charged.

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

Keep the last screenshot of each URL and report the % of pixels that changed. Use it with an Apify schedule to monitor visual changes.

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

Separate monitors keep separate history (e.g. 'competitors', 'my-site').

## `changeThresholdPercent` (type: `string`):

Mark a page as changed when at least this % of pixels differ.

## Actor input object example

```json
{
  "urls": [
    "https://example.com"
  ],
  "device": "desktop",
  "fullPage": false,
  "format": "png",
  "jpegQuality": 80,
  "hideCookieBanners": true,
  "darkMode": false,
  "waitMs": 0,
  "timeoutSecs": 45,
  "compareWithPrevious": false,
  "monitorName": "default",
  "changeThresholdPercent": "1"
}
```

# Actor output Schema

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

No description

## `files` (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("docflow-tools/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://example.com"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,docflow-tools/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/jWjsJKQRyRoZfTA57/builds/LIhLA2S3OYzV0gObN/openapi.json
