# Website Change Monitor: Changed-Only Page Watchlist (`rivetfinch/website-change-monitor`) Actor

Watch a list of web pages and get a dataset row only when one changes, with a clear diff, change %, before and after. Cookie banners and menus are ignored, a bad selector or blocked page never fails the run, and checks that don't work are free. Plain HTTP, honours robots.txt.

- **URL**: https://apify.com/rivetfinch/website-change-monitor.md
- **Developed by:** [Rivetfinch](https://apify.com/rivetfinch) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 page checks

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: Changed-Only Page Watchlist

Give it a list of web pages. Each run checks them all, and **the dataset gets a row only when a page changed**, is new, or could not be checked. Unchanged pages stay silent. A changed page looks like this:

```json
{
  "status": "changed",
  "label": "Python releases",
  "url": "https://www.python.org/downloads/",
  "finalUrl": null,
  "checkedAt": "2026-11-22T08:00:12Z",
  "previousSnapshotAt": "2026-11-21T08:00:09Z",
  "changePercent": 0.9,
  "changedChars": 47,
  "addedLines": 4,
  "removedLines": 0,
  "before": null,
  "after": "Python 3.15.3\nNov. 20, 2026\nDownload\nRelease notes",
  "added": ["Python 3.15.3", "Nov. 20, 2026", "Download", "Release notes"],
  "removed": [],
  "diff": "--- before\n+++ after\n@@ -4,4 +4,8 @@\n Release date\n Click for more\n+Python 3.15.3\n+Nov. 20, 2026\n+Download\n+Release notes\n Python 3.15.2\n Oct. 25, 2026",
  "diffTruncated": false,
  "oldHash": "9f2c4be01a7d33e5",
  "newHash": "51ad07c2e9b04f18",
  "textLength": 2610,
  "httpStatus": 200,
  "contentType": "text/html; charset=utf-8",
  "problem": null,
  "message": null,
  "selector": ".download-list-widget",
  "watchId": "3b1f0c9a5d2e7f64"
}
```

(Values are illustrative.) Schedule the Actor or a saved task daily or hourly, connect an integration, and you have change alerts for any list of public pages.

### What you get

- **A row only when it matters.** Each row is one of:

  - `changed`: the watched text differs from the last snapshot;
  - `firstSeen`: the first check of a page (its baseline);
  - `blocked`, `needsJavaScript`, `selectorNotFound`, `error`: see [Statuses](#statuses).

  Unchanged pages give no row, so an empty dataset means nothing changed. The `SUMMARY` record lists every page's result.
- **A diff you can read.** You get a unified diff, the added and removed lines, the first changed passage before and after, the share of the page that changed, and checksums.
- **Noise left out.** By default these are not compared:

  - cookie and consent banners (OneTrust, Cookiebot, Usercentrics and many more);
  - newsletter pop-ups, ad slots and hidden elements;
  - menus, the site header, footer and sidebars;
  - clock times, "5 minutes ago" and view counters.

  Add your own ignore patterns, or set a minimum change size.
- **A run that never dies on one page.** A selector that matches nothing, a dead link, a blocked page or a bad address gives a row (once, not every run) and the run carries on.
- **Pay only for checks that worked.** Blocked, robots.txt-disallowed, JavaScript-only, selector-not-found and failed checks are free.
- **Many pages per run.** Up to 5,000 watches; 4 sites are read at once, one page at a time per site.
- **Memory that just works on a schedule.** Each saved task keeps its own snapshots in a key-value store this Actor creates, so it runs with limited permissions.

### Input

| Field | What it does |
|---|---|
| Pages to watch (`urls`) | Web addresses, one per line. The whole readable page is compared. |
| Watches with settings (`watches`) | JSON objects for pages with their own settings: `url`, `label`, `selector`, `startMarker`, `endMarker`, `ignorePatterns`. |
| CSS selector for all pages (`selector`) | Compare only the elements this selector matches, on pages without a selector of their own. |
| Ignore text matching (`ignorePatterns`) | Regular expressions removed before comparing, matched per line, e.g. `\d+ comments`. Start with `(?i)` to ignore case. |
| Ignore clock times, "x minutes ago" and view counters | On by default. Dates still count. |
| Ignore cookie banners, pop-ups and ads | On by default. |
| Ignore menus, site header, footer and sidebars | On by default, for pages without a selector. Headers inside the article stay. It is skipped automatically when it would remove almost everything. |
| Compare as | Plain text (default), or Markdown, which also shows changed link addresses: handy for pages that list documents or downloads. |
| Ignore upper and lower case, Ignore spacing and blank lines | Case is compared by default; spacing is not. |
| Minimum changed characters, Minimum change (%) | Smaller changes are kept back, and they add up until they reach the minimum. |
| Output a row for new pages | On by default: the first check gives a `firstSeen` row with the start of the page's text, so you can confirm you are watching the right part. |
| Repeat problem rows on every run | Off by default. A problem is reported when it first appears, when it changes, and again if it comes back after the page recovered. |
| Remove personal emails and phone numbers | On by default. They are removed before comparing and storing. |
| Maximum diff size | The diff in each row is cut at this length (default 10,000 characters). |
| Memory name (`stateName`) | Each saved task has its own memory; direct and API runs share one called `default`. Lists sharing a memory keep separate entries and their saves are merged, and the run warns when it sees another list's pages, but give each list its own name (or a saved task) to keep things tidy. A new name starts fresh; adding a URL to a list never does. |
| Sites checked at once, Seconds between requests to one site, Request timeout, Preferred language | Politeness and timing. The defaults are 4 sites, 2 seconds and 30 seconds. A longer robots.txt Crawl-delay is honoured. |

Examples:

```json
{"urls": ["https://www.python.org/downloads/", "https://www.iana.org/help/example-domains"]}
```

```json
{
  "watches": [
    {"url": "https://shop.example.com/product/42", "label": "Price", "selector": "#price"},
    {"url": "https://example.org/notices", "startMarker": "Latest notices", "endMarker": "Archive",
     "ignorePatterns": ["Page generated in .*"]}
  ],
  "minChangeChars": 5
}
```

The prefilled example watches a sandbox site made for trying scrapers. Sandbox and example sites (toscrape.com, example.com) keep no memory, so every run shows them as `firstSeen`. Put your own pages in to get real change alerts.

### Statuses

| status | When | Charged |
|---|---|---|
| `changed` | The watched text differs from the last snapshot by at least your minimum. | yes |
| `firstSeen` | The first check of a page, or the first check after you changed its settings (a new baseline). | yes |
| (no row) | Unchanged, or changed less than your minimum. Listed in `SUMMARY`. | yes |
| `blocked` | robots.txt disallows the page; the site answered with a bot check, 401, 403 or 429; or the address is not public. | free |
| `needsJavaScript` | The page's HTML is an empty app shell that builds its content in the browser. | free |
| `selectorNotFound` | The selector or a start/end marker matched nothing, or the selector can't be read. | free |
| `error` | Not found (404), server error, timeout, unreachable site or an invalid address. | free |

`problem` gives a short code and `message` a plain explanation.

### Alerts in Slack, email or your own app

Alerts use Apify's own integrations on the Actor or on your saved task (Integrations tab):

- **Slack or email after every run.** Add the Slack integration for the event "Run succeeded". The status line reads, for example, "Checked 50 of 50 pages: 2 changed, 0 new, 48 unchanged". A message template can carry it and a link to the rows:
  `{{resource.statusMessage}} <https://console.apify.com/storage/datasets/{{resource.defaultDatasetId}}|Open the changes>`.
  See [Slack integration](https://docs.apify.com/platform/integrations/slack).
- **A message only when something changed.** Apify's run integrations fire on every run, so add the "only if there are rows" step in your flow:
  - **Make:** the Apify "Watch Actor Runs" trigger, then "Get Dataset Items". Each row becomes one bundle and one message, so an empty run sends nothing. See [Make](https://docs.apify.com/platform/integrations/make).
  - **Zapier:** the Apify "Finished Actor Run" trigger, then "Fetch Dataset Items", then a Filter step that continues only when the item count is greater than 0. Without the filter, every run alerts. See [Zapier](https://docs.apify.com/platform/integrations/zapier).
  - Alternatively, send a [webhook](https://docs.apify.com/platform/integrations/webhooks) on `ACTOR.RUN.SUCCEEDED` with `{{resource.defaultDatasetId}}` in the payload. Your endpoint reads the dataset's items and stays quiet when there are none.
- Every row has a stable `watchId`, so your flow can group or deduplicate messages per page.

### Pricing

Pay per page check: **$1.00 per 1,000 page checks** ($0.001 per check). A page check is one page fetched and compared, and it is charged whether the page changed or not. Blocked, robots.txt-disallowed, JavaScript-only, selector-not-found and failed checks are free, and so are all rows.

Also charged, so there are no surprises:

- **First checks (baselines) are page checks too**, even with "Output a row for new pages" off. Changing a page's settings takes a new baseline, which is also charged.
- **The prefilled example's checks are charged** like any other page check, although sandbox pages keep no memory.

For example:

- 10 pages checked daily is about 300 checks a month;
- 100 pages daily is about 3,000.

Set a maximum charge per run in the run options to cap spending. The run then checks only the pages the limit covers and stops cleanly, and the `SUMMARY` says how many were left.

### How it reads pages, and what it won't do

- **Plain HTTP, no browser.** Pages are fetched like a simple reader would fetch them. They are parsed with an HTML5 parser, so selectors copied from your browser's developer tools usually work. Content that only appears after scripts run is not seen; such pages are reported as `needsJavaScript`.
- **robots.txt is honoured** for every page and every redirect, with the agent name `website-change-monitor`. A disallowed page is reported as `blocked` and never fetched.
- **Blocks are reported, never bypassed.** A bot check (Cloudflare, AWS WAF, DataDome and similar, whatever HTTP status it comes with), 401, 403 or 429 gives a free `blocked` row, never a `changed` one. A site that asks it to slow down (429) or challenges it is left alone for the rest of the run. There are no proxies, logins, cookies or browser disguises.
- **Polite pacing.** One request at a time per site, 2 seconds apart by default, with conditional requests (ETag and Last-Modified), so unchanged pages often cost the site almost nothing.
- **Public pages only.** Private, local and cloud-metadata addresses are refused, both before a request and on every redirect, and the connection goes to the very address that was checked.
- **Watch only pages you are allowed to.** You are responsible for the pages you list and how you use the results.

### Limits

- **Pages per run.** Each site is read one page at a time, 2 seconds apart by default: about **1,750 pages per site per hour** of run time, and up to 4 sites in parallel. A list too big for one run's timeout rotates: each run checks the least recently checked pages first, so the pages one run did not reach come first in the next.
- With a selector or start/end markers, only known consent tools (OneTrust, Cookiebot and similar) are removed from the watched part; menus, pop-up look-alikes, ads and hidden text inside your chosen region stay, as you chose them.
- Pages are read up to 5 MB, and the first 400,000 characters of text are compared. Use a selector for very long pages; a row's `message` says when a page was cut.
- PDFs, images and other files are compared by checksum: you learn that they changed, without a diff.
- When a change touches thousands of scattered lines, the diff lists the changed lines rather than aligning every one of them, and the row stays fast to produce.
- The same problem is reported once until it changes or the page recovers. Turn on "Repeat problem rows" to see it every run.

### Run summary

The `SUMMARY` record in the run's key-value store holds:

- counts per status;
- each page's result (the first 1,000 pages);
- how many page checks were charged;
- requests and bytes per site, and how many pages the memory holds;
- any warnings, such as ignored input fields or skipped ignore patterns.

This Actor's code was written with the help of AI.

# Actor input Schema

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

Web addresses to check, one per line. The whole readable page is compared, without menus, header, footer, sidebars and cookie banners. Use Watches with settings below to watch only part of a page.

## `watches` (type: `array`):

Pages with their own settings, as JSON objects: url (required), label, selector (CSS, e.g. "#price" or "main article"), startMarker and endMarker (watch only the text between them), ignorePatterns (regular expressions).

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

Compare only the elements this CSS selector matches, on every page that has no selector of its own. Leave empty to compare the whole readable page. A selector that matches nothing gives a selectorNotFound row; the run goes on.

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

Regular expressions for text that should never count as a change, on every page (e.g. "Updated .\* ago", "\d+ comments"). Matched per line. Add (?i) at the start to ignore case.

## `ignoreVolatileText` (type: `boolean`):

On: times of day (10:42, 3:15 PM), relative ages (5 minutes ago, just now) and counters such as 1,204 views or 35 watching are left out of the comparison, so they never trigger a change. Dates are still compared.

## `removeCookieBanners` (type: `boolean`):

On: consent and cookie banners (OneTrust, Cookiebot, Usercentrics and many more), newsletter pop-ups, ad slots and hidden elements are removed before comparing. With a selector or markers, only known consent tools are removed from the part you chose.

## `removePageChrome` (type: `boolean`):

On: navigation, the site-wide header and footer and sidebars are removed when a page has no selector. Headers inside the main content stay. Skipped automatically if it would remove almost everything.

## `compareAs` (type: `string`):

Plain text, or Markdown, which also shows changed link addresses (useful for pages that list documents or downloads).

## `caseInsensitive` (type: `boolean`):

On: a change of case only (Sale to SALE) is not a change.

## `normalizeWhitespace` (type: `boolean`):

On: runs of spaces, line breaks and blank lines don't count as changes. Off compares the text exactly as extracted.

## `minChangeChars` (type: `integer`):

Report a change only when at least this many characters changed. Smaller changes are kept back and add up until they reach it.

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

Report a change only when at least this share of the page's text changed (0 to 100). 0 reports every change.

## `emitBaseline` (type: `boolean`):

On: the first check of a page gives a firstSeen row with the start of its text, so you can see the right part is watched. Off: first checks give no row and only later changes do. Either way a first check (baseline) is a charged page check.

## `repeatProblems` (type: `boolean`):

Off: a blocked, unreadable or missing page gives a row the first time, then again only when the problem changes or after it recovers. On: a row on every run while the problem lasts.

## `redactPersonalData` (type: `boolean`):

On: personal email addresses, phone numbers and LinkedIn profile links are replaced with \[email removed] and similar before comparing and storing, so they never appear in diffs or snapshots. Role mailboxes such as info@ stay.

## `maxDiffChars` (type: `integer`):

The unified diff in each row is cut at this length; diffTruncated says when. Added and removed lines are listed separately as well (up to 50 each).

## `stateName` (type: `string`):

Name of the memory that holds the last snapshot of each page. Each saved task gets its own by default; direct and API runs share one called default (lists keep separate entries, and a warning shows when it is shared). Use a new name to start fresh. Letters, digits, dot, dash, underscore.

## `maxConcurrentHosts` (type: `integer`):

How many different websites are read in parallel. Pages on the same site are always read one at a time.

## `secondsBetweenRequests` (type: `number`):

Pause between two requests to the same website (robots.txt Crawl-delay is honoured when longer). 2 seconds is polite for most sites.

## `requestTimeoutSecs` (type: `integer`):

How long to wait for a site to answer before the page counts as an error for this run.

## `acceptLanguage` (type: `string`):

Sent as the Accept-Language header, so sites that offer several languages answer in the same one every run (e.g. en, de, fr-FR).

## Actor input object example

```json
{
  "urls": [
    "https://www.python.org/downloads/",
    "https://www.iana.org/help/example-domains"
  ],
  "watches": [
    {
      "url": "https://www.python.org/downloads/",
      "label": "Python releases",
      "selector": ".download-list-widget"
    },
    {
      "url": "https://www.iana.org/help/example-domains",
      "label": "IANA example domains",
      "ignorePatterns": [
        "Last updated .*"
      ]
    }
  ],
  "selector": "main",
  "ignorePatterns": [
    "Updated .* ago",
    "\\d+ comments"
  ],
  "ignoreVolatileText": true,
  "removeCookieBanners": true,
  "removePageChrome": true,
  "compareAs": "text",
  "caseInsensitive": false,
  "normalizeWhitespace": true,
  "minChangeChars": 1,
  "minChangePercent": 0,
  "emitBaseline": true,
  "repeatProblems": false,
  "redactPersonalData": true,
  "maxDiffChars": 10000,
  "maxConcurrentHosts": 4,
  "secondsBetweenRequests": 2,
  "requestTimeoutSecs": 30,
  "acceptLanguage": "en"
}
```

# Actor output Schema

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

One row per changed, new, blocked or unreadable page. Unchanged pages give no row.

## `summary` (type: `string`):

JSON record: counts per status, every page's result (first 1,000), pages charged, requests per site and notes.

# 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://books.toscrape.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rivetfinch/website-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://books.toscrape.com/"] }

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

```

## MCP server setup

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