# Website Change Monitor: Visual & Text Diff with Screenshots (`squarish_altruism/page-change-monitor`) Actor

Watch any web page for changes. Each run screenshots your pages in a real browser, compares them with the last run, and reports what changed: highlighted diff image, percent changed, and the text lines added or removed. Schedule it for alerts on pricing, landing or policy pages.

- **URL**: https://apify.com/squarish_altruism/page-change-monitor.md
- **Developed by:** [John Joseph Wheatley](https://apify.com/squarish_altruism) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 page checkeds

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 Change Monitor: Visual & Text Diff with Screenshots

> **At a glance:** watch web pages and see exactly what changed. **You get** the changed text and a highlighted screenshot diff. **Cost:** checking 10 pages daily is about $1.20 a month.

Watch any web page and find out **what changed since the last time you looked**. Each run opens your pages in a real Chrome browser, compares them with the previous capture, and tells you:

- **whether the page changed**, and by how much (percent of pixels);
- **where**: a diff image with every changed area highlighted in red, next to the before and after screenshots;
- **what the text says now**: the lines that were added and the lines that were removed.

Put it on a schedule and you have an alert for competitor pricing pages, landing pages, terms and policies, job pages, product listings or your own site after a deploy.

### How it works

1. **First run:** the Actor saves a starting capture of each page. Nothing is compared yet (status `baseline`).
2. **Every later run:** it captures the page again and compares it with the saved one. Status is `changed` or `unchanged`.
3. **Captures are kept under a monitor name.** Runs that use the same *Monitor name* share their saved captures, so a schedule keeps comparing against its own history.

### Avoiding false alarms

Pages often have parts that differ on every visit. The Actor deals with the common ones and lets you handle the rest:

- **Cookie banners** are hidden automatically.
- **Animations and transitions** are frozen before the capture.
- **Ignore these elements:** list CSS selectors for ads, carousels, visitor counters or timestamps, and they're hidden before comparing.
- **Minimum visual change:** changes below this share of the page (0.1% by default) are treated as rendering noise.
- **Pixel sensitivity:** how different two pixels must be to count.

### Input

```json
{
  "urls": [{ "url": "https://example.com/pricing" }, { "url": "https://example.com/terms" }],
  "monitorName": "competitor-pricing",
  "compareTo": "previous",
  "ignoreSelectors": [".ad-banner", "#live-visitors"],
  "onlyChanged": true
}
```

- **Compare with:** *the previous run* shows what changed since last time; *the first capture* shows everything that changed since you started monitoring.
- **Output changed pages only:** handy for alerts, because an empty result means nothing changed.
- **Device** and **Full page** control what is captured. Use the same settings on every run of a monitor; each device keeps its own captures.

### Output

One item per page:

```json
{
  "url": "https://example.com/pricing",
  "status": "changed",
  "changeTypes": ["visual", "text"],
  "changedPercent": 0.304,
  "changedPixels": 3192,
  "changedArea": { "top": 190, "bottom": 647 },
  "pageSizeChanged": false,
  "textChanged": true,
  "textAdded": ["Price: €12 per month", "New: annual billing", "Two months free."],
  "textRemoved": ["Price: €10 per month"],
  "diffUrl": "https://api.apify.com/v2/key-value-stores/…/records/0001-example-com-pricing-diff.png",
  "currentUrl": "https://api.apify.com/v2/key-value-stores/…/records/0001-example-com-pricing-current.png",
  "previousUrl": "https://api.apify.com/v2/key-value-stores/…/records/0001-example-com-pricing-previous.png",
  "comparedWith": "2026-11-13T08:00:00.000Z",
  "checkedAt": "2026-11-14T08:00:00.000Z",
  "title": "Pricing",
  "statusCode": 200,
  "device": "laptop"
}
```

`changedArea` gives the vertical range, in pixels from the top, where the differences are. A run summary with totals is saved as `OUTPUT` in the key-value store.

### Pricing

- **$0.004 per page checked** ($4 per 1,000 checks). Checking 10 pages every day costs about $1.20 a month.
- The first capture of a page counts as a check.
- Pages that fail to load or return an error (404, 500 and so on) are **free**, and are reported with status `error`.

### Getting alerts

1. Turn on **Output changed pages only**.
2. Create a **schedule** for the Actor in Apify Console (hourly, daily, weekly).
3. Add an **integration** on the Actor (Slack, email, webhook, Zapier, Make, n8n) that fires when a run succeeds. With *changed pages only* on, the results it passes along contain just the pages that changed; in Zapier, Make or n8n, add a filter step to skip empty results.

### Use cases

- **Competitor monitoring:** pricing, plans, feature pages and landing pages.
- **Compliance and legal:** terms of service, privacy policies and regulatory notices.
- **Your own site:** catch unintended visual changes after a release.
- **Availability and listings:** a product page, a job posting, a tender notice or a waiting list.

### Use with AI agents (MCP)

This Actor works as a tool for AI assistants such as Claude, ChatGPT and Cursor, through [Apify's MCP server](https://mcp.apify.com).

1. Add the server to your MCP client, with this Actor selected:

```json
{
  "mcpServers": {
    "apify": { "url": "https://mcp.apify.com?tools=squarish_altruism/page-change-monitor" }
  }
}
```

In Claude Code: `claude mcp add apify "https://mcp.apify.com?tools=squarish_altruism/page-change-monitor" -t http`

2. Sign in with your Apify account when your client asks. If it can't use OAuth, send your Apify API token in an `Authorization: Bearer` header.
3. Ask in plain language, for example: *"Check https://example.com/pricing against my 'competitor-pricing' monitor and tell me what changed."*

Runs started by an agent are billed to your Apify account at the same prices as above.

### Limitations

- **Pages behind a login** aren't supported.
- **Very long pages** are compared up to the *Max page height* (8,000 px by default).
- **Heavily personalised or randomised pages** (rotating hero images, A/B tests) will show as changed unless you ignore those elements.
- **Some sites block automated browsers.** Those pages are reported with status `error` and not charged; a proxy may help.
- **Changing the device or full-page setting** starts a new history for that page.

### Feedback

Getting false alarms on a page, or missing a change? Open an issue on the Issues tab with the URL and your settings.

### Related tools

- [Website Screenshot & URL to PDF](https://apify.com/squarish_altruism/screenshot)
- [Hacker News Search & Mention Monitor](https://apify.com/squarish_altruism/hn-monitor)
- [Website SEO Audit & Broken Link Checker](https://apify.com/squarish_altruism/site-audit)

# Actor input Schema

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

The exact pages to watch, one per line. The first run saves a starting capture of each page; every later run compares against it.

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

A name for this set of pages. Runs with the same name share their saved captures, so use one name per schedule (for example competitor-pricing).

## `compareTo` (type: `string`):

Previous run: each run is compared with the one before it, so you see what changed since last time. First capture: every run is compared with the original capture, so you see everything that changed since you started.

## `checkVisual` (type: `boolean`):

Compare screenshots pixel by pixel and produce a highlighted diff image.

## `checkText` (type: `boolean`):

Compare the visible text and list the lines that were added or removed.

## `minChangePercent` (type: `string`):

Report a visual change only when at least this share of the page's pixels differ. 0.1 ignores tiny rendering noise; raise it to ignore small edits. Text changes are always reported.

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

CSS selectors of parts that change on every visit and should be hidden before comparing, such as ads, carousels, counters or timestamps. Example: .ad-banner, #live-visitors

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

Hide common cookie-consent banners so they don't show up as changes.

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

Leave unchanged pages and first captures out of the results. Useful with alerts: an empty result means nothing changed.

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

Screen size used for the capture.

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

Compare the whole scrollable page. Turn off to compare only the first screen.

## `maxFullPageHeight` (type: `integer`):

Very long pages are compared up to this height.

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

Optional CSS selector to wait for before capturing, for pages that load content late.

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

Time to wait after the page loads, so late content settles.

## `sensitivity` (type: `string`):

How different two pixels must be to count, from 0 (any difference) to 1 (only extreme differences). 0.1 suits most pages.

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

Pages checked in parallel.

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

Optional proxy. Most pages don't need one.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://example.com"
    }
  ],
  "monitorName": "default",
  "compareTo": "previous",
  "checkVisual": true,
  "checkText": true,
  "minChangePercent": "0.1",
  "hideCookieBanners": true,
  "onlyChanged": false,
  "device": "laptop",
  "fullPage": true,
  "maxFullPageHeight": 8000,
  "delayMs": 1000,
  "sensitivity": "0.1",
  "maxConcurrency": 3
}
```

# Actor output Schema

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

One item per monitored page, with its status and what changed.

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

Current, previous and highlighted diff images saved to the run's default 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://example.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("squarish_altruism/page-change-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": [{ "url": "https://example.com" }] }

# Run the Actor and wait for it to finish
run = client.actor("squarish_altruism/page-change-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": [
    {
      "url": "https://example.com"
    }
  ]
}' |
apify call squarish_altruism/page-change-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,squarish_altruism/page-change-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/81CQeKgAdMJJA18A5/builds/o00dnqFj3MCUJqc37/openapi.json
