# Page Change Monitor: Website Change Detection & Diff Alerts (`neocraft/page-change-monitor`) Actor

Get alerted when a web page really changes. Noise filtered (dates, counters, ads, tokens) and every change re-checked before it is reported. Structured diff with before/after prices, dates and versions, optional highlighted screenshots. History in your own Apify storage. Pay per check.

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

## Pricing

from $0.43 / 1,000 page check (http)s

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

## Page Change Monitor: website change detection without false alarms

Watch web pages (or JSON / text files) and get a clean answer on every run: **changed or not, what changed, and the
before/after values**. Built for people who are tired of alerts for a new date, a view counter or a rotating ad, and
for developers and AI agents that want a stable JSON result without another subscription.

- **Noise filtered automatically**: clocks and today's dates, "5 minutes ago", view/visitor counters, random tokens
  and IDs, copyright years, ads, cookie banners, scripts and hidden elements never trigger a change.
- **Every change is double-checked**: when a difference is seen, the page is fetched again a few seconds later and
  only what both fetches show is reported. Rotating banners and A/B blocks are dropped.
- **A page in error is never a "change"**: failures are reported as errors (free) and the last good version stays the
  reference.
- **Structured diff**: added, removed and changed text blocks, plus extracted **prices** (with direction and % change),
  **dates**, **version numbers** and percentages.
- **Cheap when nothing changes**: plain HTTP first, with conditional requests (ETag / Last-Modified); a headless
  browser only for JavaScript pages (auto-detected and remembered).
- **Optional before/after screenshots** with the changed regions highlighted.
- **Your history stays in your account**: a named key-value store per monitor in your own Apify storage, snapshots kept
  90 days. Nothing is stored on our side.
- **Polite and honest**: respects robots.txt (and its Crawl-delay) for the start URL **and every redirect hop** (each
  hop obeys the robots.txt of its own site), identifies itself in its User-Agent, keeps no cookies between requests,
  \~1 request per second per site, never bypasses anti-bot protections (a challenge or 403 is reported as `blocked`,
  free).

### Pricing (pay per event, platform usage included)

| Event | Price | When |
|---|---|---|
| Actor start | $0.001 | once per run (per GB of memory, default 1 GB) |
| `check-http` | $0.0005 | one URL checked over plain HTTP (a 304 Not Modified answer counts) |
| `check-browser` | $0.002 | one URL that needed a browser (JavaScript page, screenshots or mode `browser`) - replaces `check-http` |
| `change-detected` | $0.01 | one **confirmed** change (diff, values and screenshots included) |
| Baseline (first capture of a URL) | **free** for the first 50 of a run | from the 51st baseline of the same run: charged as a normal check (`check-http` / `check-browser`) |
| Errors, blocked pages, robots.txt disallow, selector not found | **free** | |
| Differences dismissed as noise or by the re-check | **free** (only the check is paid) | |

Examples: 20 pages checked once a day, 2 real changes a month = 600 checks x $0.0005 + 2 x $0.01 + 30 starts x $0.001
\= **about $0.35 a month**. 100 pages every hour (72,000 checks a month) is $36+ a month: at that volume a subscription
tool (changedetection.io hosted, PageCrawl) is cheaper, and we say so. You can cap any run with Apify's "Maximum cost
per run": the Actor stops cleanly before it would be exceeded.

### How it compares

| | Page Change Monitor | Visualping | changedetection.io |
|---|---|---|---|
| Pricing | pay per check, no subscription | subscription from ~$10-14/month (free: 5 pages, 150 checks) | open source (self-host) or $8.99/month hosted |
| Noise filter | built in + double re-check | yes, "important" flag | filters and triggers you configure |
| Before/after values (price, version, date) | yes, structured JSON | AI summary | via your own rules / AI key |
| AI summary | no (deterministic one-line summary instead) | yes | with your own key |
| Login / clicks before checking | no | yes | yes |
| Anti-bot bypass | never | - | proxies / browser options |
| Where your history lives | your Apify account | their servers | your server / theirs |

If you need logins, click steps or AI summaries, Visualping or changedetection.io are better fits today.

### Input

```json
{
  "urls": ["https://example.com/pricing", "https://example.com/changelog"],
  "monitorName": "competitors",
  "selector": "main",
  "ignoreSelectors": [".sidebar", "#comments"],
  "ignorePatterns": ["Build #\\d+"],
  "mode": "auto",
  "screenshots": false,
  "targets": [{"url": "https://shop.example.com/item/42", "selector": "#price", "label": "Item 42 price"}],
  "onlyChanges": false
}
```

- `monitorName` is the memory of the monitor: runs with the same name compare with each other. Use one name per list.
- `targets` lets you set a selector, ignore rules, mode, screenshot and label per URL. Max 500 URLs per run.
- Changing the selector, ignore rules or rendering mode of a URL starts a new baseline. The first 50 baselines of a
  run are free, further ones are charged as a normal check (so a first run of 500 URLs costs 450 checks).
- `ignorePatterns` are regular expressions in [RE2 syntax](https://github.com/google/re2/wiki/Syntax) (linear time:
  no pattern can freeze a run). Backreferences and lookarounds are not supported and are refused at start.
- `ignoreTimes` (default `true`) treats times of day (9:00, 18:30, 3:45 PM) as noise. Set it to `false` to track
  opening hours, timetables or event times; the rest of the noise filter stays on.

### Output

One dataset item per URL (stable schema, views *Overview*, *Diff details*, *Errors*):

```json
{
  "url": "https://shop.example.com/item/42", "label": "Item 42 price", "status": "changed", "changed": true,
  "summary": "price $19.99 → $24.99. 1 block changed.",
  "diff": {"addedCount": 0, "removedCount": 0, "changedCount": 1,
           "changed": [{"before": "Price: $19.99", "after": "Price: $24.99"}], "added": [], "removed": []},
  "values": [{"type": "price", "before": "$19.99", "after": "$24.99", "direction": "up", "changePercent": 25.01,
              "context": "Price: $24.99"}],
  "confirmed": true, "noiseFiltered": false, "checkMode": "http", "lastChangedAt": "2026-11-17T08:00:03Z",
  "screenshotBeforeUrl": null, "screenshotAfterUrl": null, "charged": ["check-http", "change-detected"]
}
```

`status` is one of `changed`, `unchanged`, `baseline`, `error`, `blocked`. Errors carry `errorCode` (e.g.
`ROBOTS_DISALLOWED`, `BLOCKED_BY_SITE`, `HTTP_ERROR`, `TIMEOUT`, `SELECTOR_NOT_FOUND`) and are never charged.

#### Compliance receipt (free, on by default)

Each checked URL also gets a `receipt` object: a dated record of what was fetched and what the site declared about
robots and AI use at that moment. It is built from requests the monitor already makes (the page and the robots.txt
it reads anyway), so it adds **no request and no charge**. Turn it off with `"complianceReceipt": false`.

```json
"receipt": {
  "fetchedAt": "2026-11-17T08:00:03.120Z", "requestedUrl": "https://example.com/old", "finalUrl": "https://example.com/new",
  "redirectChain": [{"url": "https://example.com/old", "status": 301}], "httpStatus": 200,
  "contentSha256": "9f2c…", "contentHashBasis": "normalized-text", "rawBodySha256": "51ab…",
  "robotsTxt": {"url": "https://example.com/robots.txt", "httpStatus": 200, "sha256": "c0de…",
                "ourAgent": {"token": "pagechangemonitor", "allowed": true},
                "aiAgents": {"GPTBot": {"decision": "blocked", "purpose": "training", "rule": "Disallow: /"},
                             "OAI-SearchBot": {"decision": "allowed", "purpose": "search", "rule": null}},
                "contentSignal": {"search": "yes", "ai-train": "no"}},
  "xRobotsTag": {"raw": "noai", "directives": ["noai"], "perAgent": {}},
  "metaRobots": {"robots": ["noimageai"]},
  "aiDirectives": {"noai": true, "noimageai": true, "noindex": false, "nosnippet": false},
  "tdm": {"reserved": true, "source": "header", "policy": null, "wellKnown": "not checked (deepPolicyChecks off)"},
  "licenseLinks": ["https://creativecommons.org/licenses/by/4.0/"]
}
```

- `contentSha256` hashes the monitored text (after your selector and ignore rules, one block per line);
  `rawBodySha256` hashes the bytes received. On a `304 Not Modified` answer the content hash is the one of the stored
  text and `rawBodySha256` is `null`. In browser mode `rawBodySha256` hashes the rendered page and response headers
  are not recorded.
- AI agents covered: GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, Claude-User, Google-Extended,
  PerplexityBot, Perplexity-User, Applebot-Extended, CCBot, meta-externalagent, Bytespider, Amazonbot. Each decision is
  computed for the checked URL path with the RFC 9309 rules (the agent's own group, else `*`).
- `"deepPolicyChecks": true` also reads `/.well-known/tdmrep.json` (TDMRep) and `/ai.txt`: one request each per
  website per run, only when robots.txt allows it, 64 kB cap. Off by default.
- The receipt records declarations; it is not legal advice and does not prove what a page said before `fetchedAt`.

A **`SUMMARY`** record in the run's key-value store gives the whole run in one small JSON (`hasChanges`, counts, the list
of changes with their values, errors, charges): ideal for webhooks and agents.

### Schedule it and get alerts

1. Run it once (the baseline), then **Schedules > Create schedule** (e.g. daily at 08:00) with the same input.
2. Alerts: on the Actor's **Integrations** tab, add Slack, e-mail, Google Sheets, Zapier, Make or n8n, or a
   **webhook** on "Run succeeded". With `onlyChanges: true`, an empty dataset means nothing changed.
3. Webhook payload tip: fetch `https://api.apify.com/v2/key-value-stores/{{resource.defaultKeyValueStoreId}}/records/SUMMARY`
   and alert only when `hasChanges` is true.

### For developers, CI and AI agents

```bash
curl -s -X POST "https://api.apify.com/v2/acts/<username>~page-change-monitor/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"urls":["https://docs.example.com/api/changelog"],"monitorName":"ci-docs","onlyChanges":true}'
```

In CI, fail or open a ticket when the returned array is not empty. Through the Apify MCP server an agent can call the
Actor with a `monitorName` and read `status`, `summary` and `values` without keeping any state itself.

### Limits and honest notes

- Text is compared, not pixels: a pure styling change (colour, image) is not reported. Image-only pages are compared
  by file hash.
- Up to 500 URLs and 5 MB per document per run; ~1 request per second per site (more if robots.txt asks).
- Times of day are treated as noise by default; set `ignoreTimes: false` to report a change of opening hours from 9:00
  to 10:00.
- No logins, no form steps, no proxies, no CAPTCHA solving. Sites that block automated tools cannot be monitored.
- History (snapshots and screenshots) is kept 90 days in your store `page-change-monitor-<name>`; delete the store to
  erase it. The saved state of a URL that no run of the monitor has checked for 90 days is deleted too.

### Privacy of links and history

- Text snapshots are never linked: the dataset only gives their record key (`historyKey`) in **your** store, readable
  with your API token.
- Screenshots are **off by default**. When you turn them on, `screenshotBeforeUrl` / `screenshotAfterUrl` are Apify
  record links into your own store: the store ID is random and, when your account restricts general resource access,
  the link carries a signature for that single record. Treat these links like an unlisted share link: anyone who has
  the link can open that one image, so only post them in channels (Slack, e-mail) you would share the page with.

# Actor input Schema

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

Web pages (or JSON / text files) to watch. Up to 500 per run. Each URL is compared with its previous capture stored in your monitor's history. The first run of a URL only stores a baseline (free).

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

Name of this monitor (lowercase letters, digits and dashes, max 40). The history lives in a named key-value store 'page-change-monitor-<name>' in YOUR Apify account, so every scheduled run with the same name compares with the previous one. Use one name per watch list.

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

Only watch the part of the page matching this CSS selector (e.g. '#pricing', 'main', '.changelog'). Applies to every URL unless a target sets its own. Leave empty to watch the whole page text.

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

Parts of the page to leave out of the comparison (e.g. '.sidebar', '#comments', '.stock-ticker'). Ads, cookie banners, scripts and hidden elements are already ignored.

## `ignorePatterns` (type: `array`):

Regular expressions (RE2 syntax, linear time) removed from the text before comparing (e.g. 'Build #\d+'). Max 20 patterns of 200 characters; backreferences and lookarounds are not supported.

## `mode` (type: `string`):

auto (recommended): plain HTTP first, a headless browser only when the page needs JavaScript (remembered for next runs). http: never start a browser (cheapest). browser: always render with Chromium.

## `screenshots` (type: `boolean`):

Store a screenshot at the baseline and at every confirmed change, with the changed regions highlighted. Needs the browser, so every check of these URLs is a browser check. Screenshots are kept 90 days in your monitor's store.

## `targets` (type: `array`):

Optional list of objects for per-URL settings, added to 'urls': {"url": "https://...", "selector": "#price", "ignoreSelectors": \[".promo"], "ignorePatterns": \["\d+ in stock"], "mode": "auto|http|browser", "screenshot": true, "label": "Competitor pricing"}. Only 'url' is required.

## `noiseFilter` (type: `boolean`):

Ignore changes that are only clocks and today's dates, relative times ('5 minutes ago'), view/visitor counters, random tokens and IDs, copyright years. Dates further than 2 days from today (release dates, deadlines) and prices are never ignored.

## `ignoreTimes` (type: `boolean`):

Treat times of day (9:00, 18:30, 3:45 PM) as noise. Turn off to track opening hours, timetables or event times (the rest of the noise filter stays on).

## `complianceReceipt` (type: `boolean`):

Add a free `receipt` object to every result: UTC time, final URL and redirect chain, HTTP status, SHA-256 of the monitored text and of the raw body, robots.txt decision for this tool and for the main AI crawlers (GPTBot, ClaudeBot, Google-Extended, PerplexityBot, CCBot...) with the robots.txt hash, X-Robots-Tag / meta robots (noai, noimageai, noindex), TDMRep header/meta, Content-Signal and license links. Uses only what is already downloaded: no extra request, no extra charge.

## `deepPolicyChecks` (type: `boolean`):

Also read /.well-known/tdmrep.json and /ai.txt for the receipt: at most one request each per website per run, only if robots.txt allows it, 64 kB cap. Off by default to keep runs light.

## `confirmChanges` (type: `boolean`):

When a change is seen, fetch the page again a few seconds later and report only what both fetches show (removes rotating ads, A/B tests, random widgets). The re-check is included in the price of the check.

## `confirmDelaySecs` (type: `integer`):

Wait before the confirmation re-check (0-60).

## `onlyChanges` (type: `boolean`):

Leave unchanged and baseline URLs out of the dataset, so an empty dataset means 'nothing changed' (handy for alert integrations). The SUMMARY record always lists everything.

## `cookieBanners` (type: `string`):

What to do with cookie banners when a browser is used: hide them (default, no consent given), click 'reject', click 'accept', or leave them.

## Actor input object example

```json
{
  "urls": [
    "https://example.com/"
  ],
  "monitorName": "my-first-monitor",
  "mode": "auto",
  "screenshots": false,
  "noiseFilter": true,
  "ignoreTimes": true,
  "complianceReceipt": true,
  "deepPolicyChecks": false,
  "confirmChanges": true,
  "confirmDelaySecs": 5,
  "onlyChanges": false,
  "cookieBanners": "hide"
}
```

# Actor output Schema

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

No description

## `changes` (type: `string`):

No description

## `errors` (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://example.com/"
    ],
    "monitorName": "my-first-monitor"
};

// Run the Actor and wait for it to finish
const run = await client.actor("neocraft/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": ["https://example.com/"],
    "monitorName": "my-first-monitor",
}

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

```

## MCP server setup

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