# Website Screenshot & Visual Change Monitor (`rawtojson/website-visual-monitor`) Actor

Screenshot a list of URLs and detect visual changes since the last run with a pixel diff and diff image. Schedule it to monitor competitors, prices and landing pages.

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

## Pricing

Pay per event

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/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

Capture screenshots of any list of web pages and get told when a page **looks different** since the last run. Pixel-diff change detection, a diff image and a changed-percentage per URL, with state kept between runs. Pay only for successful screenshots.

### Who is it for

- Marketers and agencies watching competitors' landing pages, pricing and offers.
- Ecommerce teams tracking price banners and product pages.
- Compliance and QA teams proving what a page showed on a given day.
- Developers who need a cheap screenshot API in a scheduled pipeline.

### How it works

1. Give it URLs (optionally a CSS selector, full page, viewport size).
2. First run stores a baseline (`firstCheck: true`).
3. Every later run with the same URL and settings compares against the previous capture and returns `changed`, `changedPercent`, a link to the screenshot and a red-highlighted diff image when it changed.

#### Example input

```json
{ "urls": ["https://example.com", "https://www.wikipedia.org"], "fullPage": false }
```

#### Example output

```json
{
  "url": "https://example.com/",
  "title": "Example Domain",
  "ok": true,
  "firstCheck": false,
  "changed": false,
  "changedPercent": 0,
  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/<id>/records/shot-...png",
  "diffUrl": null,
  "checkedAt": "2026-11-23T18:40:30.914Z"
}
```

### Pricing (pay per event)

| Event | Price |
|---|---|
| Actor start | $0.00005 |
| Successful screenshot (with change detection) | $0.0015 (about $1.50 per 1,000) |

Failed pages (HTTP 4xx/5xx, timeouts) are not charged.

#### Compared with the alternatives

| Actor | Users (30 d) | Rating | What you get |
|---|---|---|---|
| apify/screenshot-url (leader) | ~1,990 | 3.9 | Screenshots only; runs at 2 GB memory by default, so you pay compute on top; no change detection |
| cheapapi/website-screenshot-api | ~315 | 5.0 | Screenshots, $0.89 per 1,000, no change detection |
| This Actor | new | n/a | Screenshots **plus** pixel-diff monitoring, diff image and state between runs, 1 GB memory |

Our pitch: if you only need raw screenshots the cheapest option is fine; if you need to know **what changed**, this does it in one run.

### Schedule it

Use Apify Schedules (e.g. daily) with the same input. Add an integration (webhook, Google Sheets, Slack, email) on the run and filter items where `changed` is true.

### FAQ

- **Is the baseline shared between users?** No. State lives in a named key-value store in your own account.
- **Why is a page flagged changed every time?** Ads, carousels and clocks. Raise `minChangePercent`, use a CSS `selector`, or increase `waitMs`.
- **Does it bypass logins or CAPTCHAs?** No. It captures only what a public visitor sees. Pages that block automated browsers return an error and are not charged.
- **Data retention:** screenshots are kept in your run's key-value store according to your plan's retention.

### Legal

You are responsible for monitoring only pages you are allowed to capture and for respecting each site's terms and robots rules. Screenshots may contain personal data shown on the page; handle them according to GDPR.

### Resumen en español

Captura pantallas de una lista de URLs y detecta cambios visuales respecto a la ejecución anterior (diff de píxeles, porcentaje de cambio, imagen de diferencias). Programa la ejecución a diario y filtra los resultados con `changed = true`. Se cobra solo por capturas correctas. No salta logins ni CAPTCHAs.

# Actor input Schema

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

Pages to capture (http or https). Duplicates are removed.

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

Browser width in pixels.

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

Browser height in pixels.

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

Capture the whole scrollable page instead of only the viewport.

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

Optional. Capture only the first element matching this selector, e.g. #pricing.

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

Wait after the page loads, for animations or lazy content.

## `detectChanges` (type: `boolean`):

Compare with the previous capture of the same URL and settings (stored between runs) and report the changed percentage plus a diff image.

## `threshold` (type: `number`):

Per-pixel color tolerance, 0 (strict) to 1 (lenient).

## `minChangePercent` (type: `number`):

Changes below this percentage of pixels are reported as not changed (filters noise).

## `maxUrls` (type: `integer`):

Safety cap on URLs processed per run.

## Actor input object example

```json
{
  "urls": [
    "https://example.com"
  ],
  "width": 1280,
  "height": 800,
  "fullPage": false,
  "waitMs": 1000,
  "detectChanges": true,
  "threshold": 0.1,
  "minChangePercent": 0.1,
  "maxUrls": 50
}
```

# Actor output Schema

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

Per-URL results.

# 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("rawtojson/website-visual-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("rawtojson/website-visual-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 rawtojson/website-visual-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rawtojson/website-visual-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/IhjaTHIgguMUQ4efI/builds/9f3YuUUuN7OxevPGq/openapi.json
