# Website Change Monitor: Text Diff Alerts for Any Page (`forgeloop/website-change-monitor`) Actor

Watch web pages for text changes. Each run compares the visible text, or only a CSS selector, with the last run and lists added and removed lines. Ignore numbers, dates or lines by pattern. Run on a schedule, alert by webhook. Pay per checked URL.

- **URL**: https://apify.com/forgeloop/website-change-monitor.md
- **Developed by:** [Markus Heiß](https://apify.com/forgeloop) (community)
- **Categories:** Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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: Text Diff Alerts for Any Page

Watch a list of web pages for text changes. Run the Actor on an Apify schedule. Each run downloads the pages, extracts the visible text (the whole page or only the part you pick with a CSS selector), compares it with the text saved by the previous run and tells you what changed: one row per URL with the status `new`, `changed`, `unchanged` or `error`, plus the added and removed lines.

Built for competitor pricing pages, terms and policy pages, job pages, release notes and stock notices. Noise like counters, dates or footer lines can be ignored, so only real changes show up.

### What it does

- **Compares text, not HTML.** Scripts, styles, hidden elements and markup are removed. What is left is the text a reader sees, split into lines.
- **Watches a part of the page** when you give a CSS selector, for example `#pricing`, `.price` or `main article`.
- **Ignores noise:** numbers, dates and times, or any line that matches a regular expression you give (`^Copyright`, `visitors online`).
- **Keeps state between runs** in a named key-value store in your Apify account, one store per monitor name. The first run saves a baseline, every later run compares with the last saved text.
- **Reports the diff:** up to 50 added and 50 removed lines per URL, their counts and a change ratio.
- **Only changes on request:** with "Only output changes" on, unchanged URLs produce no row and cost nothing.
- **Summary** of every run under `OUTPUT` in the default key-value store, with the list of changed URLs.
- **Polite and safe:** follows up to 10 redirects, at most 2 parallel requests per host with a short pause, retries HTTP 429 and 5xx twice with backoff, and never requests private or local network addresses.

### Use cases

- **Competitor pricing:** watch pricing and plan pages, with a selector on the price table.
- **Terms and policies:** see when terms of service, privacy policies or cookie policies of suppliers and partners change.
- **Job pages:** get the new and removed job titles from a career page.
- **Release notes and changelogs:** learn about new versions of tools you depend on.
- **Stock notices:** see when "Out of stock" turns into "In stock" on a product page.

### Alerts by email or Slack

The Actor writes the result of each run to its dataset and to `OUTPUT`. To get alerts, use what Apify offers for every Actor:

1. Create a **schedule** in Apify Console that runs the Actor, for example every day at 7:00, with your saved input.
2. Add an **integration or webhook** on the Actor or the schedule, for example the Slack or email integration, or a webhook to Zapier, Make or your own endpoint. Turn on "Only output changes" so the dataset holds only new and changed pages and errors.

You set up and own schedules, integrations and webhooks in your Apify account. We do not set them up for you.

### Input

| Field | Description | Default |
|---|---|---|
| URLs | Pages to watch, at most 1,000 per run | |
| Monitor name | Name of the watch list. The state is saved in the store `website-change-monitor-<name>` | `default` |
| CSS selector | Compare only the matching elements. Empty means the whole page | |
| Ignore numbers | Every number counts as the same value | off |
| Ignore dates and times | Dates, times, weekdays and "3 hours ago" count as the same value | off |
| Ignore lines matching | Regular expressions, not case sensitive. Matching lines are left out | |
| Only output changes | Unchanged URLs produce no row and are not charged | off |
| Reset saved state | Delete the saved texts of this monitor before the run | off |
| Timeout | Seconds per page, 5 to 120 | 30 |
| Parallel URLs | 1 to 20 | 5 |

Example, watch the price table of two pages and ignore the footer:

```json
{
  "monitorName": "competitor-pricing",
  "urls": ["https://books.toscrape.com/", "https://books.toscrape.com/catalogue/page-2.html"],
  "selector": ".product_pod",
  "ignoreLinePatterns": ["^Add to basket$"],
  "onlyChanges": true
}
```

Example, watch policy pages and ignore dates and "last updated" lines:

```json
{
  "monitorName": "supplier-terms",
  "urls": ["https://www.iana.org/help/example-domains", "https://www.rfc-editor.org/rfc/rfc9110.txt"],
  "ignoreDates": true,
  "ignoreLinePatterns": ["last updated"]
}
```

### Output

One dataset item per URL:

```json
{
  "url": "https://books.toscrape.com/",
  "status": "changed",
  "changed": true,
  "checkedAt": "2026-11-18T07:00:04.112Z",
  "previousCheckedAt": "2026-11-17T07:00:03.870Z",
  "lastChangedAt": "2026-11-18T07:00:04.112Z",
  "statusCode": 200,
  "finalUrl": "https://books.toscrape.com/",
  "textLength": 1809,
  "addedCount": 1,
  "removedCount": 1,
  "changeRatio": 0.0141,
  "addedLines": ["£49.99"],
  "removedLines": ["£51.77"],
  "selector": null,
  "note": null,
  "error": null
}
```

- `status` is `new` when the monitor has no saved text for this URL yet (first run, after a reset, or after you changed the selector or ignore settings), `changed`, `unchanged` or `error`.
- `previousCheckedAt` is the time of the check the text was compared with. `lastChangedAt` is the last time a change was seen (or the first check).
- `addedLines` and `removedLines` hold at most 50 lines each. `addedCount` and `removedCount` hold the full counts.
- `changeRatio` is (added + removed lines) divided by (old + new lines): 0 means unchanged, 1 means nothing in common.
- With "Ignore numbers" or "Ignore dates", the comparison uses masked lines, but `addedLines` and `removedLines` show the real text.
- `note` says when a page had no visible text (see Limits) or when its text is longer than 200 KB.
- `error` explains why a URL could not be checked, for example `HTTP 404`, a timeout, a blocked private address, an invalid URL or a selector without match. The saved state stays as it is, so the next successful run compares with the last good text.

The key-value store record `OUTPUT` holds the run summary:

```json
{
  "monitorName": "competitor-pricing",
  "storeName": "website-change-monitor-competitor-pricing",
  "urls": 2,
  "new": 0,
  "changed": 1,
  "unchanged": 1,
  "errors": 0,
  "unchangedNotOutput": 1,
  "changedUrls": [{ "url": "https://books.toscrape.com/", "addedCount": 1, "removedCount": 1, "changeRatio": 0.0141 }]
}
```

Export the dataset as JSON, CSV or Excel, or read it through the Apify API.

### Where the state lives and how to reset it

- Each monitor name has its own **named key-value store** in your Apify account: `website-change-monitor-<name>`, for example `website-change-monitor-default`. Named stores are kept until you delete them, so the state survives between runs. It belongs to the Apify account that runs the Actor.
- The store holds one record per URL and settings: the SHA-256 hash of the compared text, the text itself (up to 200 KB) and the time of the check. You can open it in Apify Console under Storage.
- The selector and the ignore settings are part of the record key. When you change them, each URL starts a new baseline and comes back as `new` once.
- To start over, run once with **Reset saved state** on, then turn it off again. Or delete the store in Apify Console.
- Do not run two runs of the same monitor at the same time. Both would compare with the same old state.

### Pricing

Pay per check: 0.002 USD per checked URL that appears in the output (`new`, `changed`, or `unchanged` when shown), so 2.00 USD per 1,000 checks. Errors, invalid URLs and blocked addresses are free. With "Only output changes" on, unchanged URLs are free too.

Example: 50 pages checked once a day cost about 0.10 USD per day, or about 3 USD per month, less with "Only output changes".

Each run also has a start fee of 0.00005 USD per GB of memory, which Apify shows as Actor Start. The named store adds a small Apify storage cost to your account.

### Limits

- **No browser.** The Actor reads the HTML the server sends and does not run JavaScript. Pages that build their content in the browser (many single page apps) show little or no text. Such a row gets a `note`. Try the URL of the data the page loads, or a page that renders on the server.
- Pages larger than 5 MB return an error item. For text longer than 200 KB the change check covers the whole text, but the added and removed lines and the saved text cover the first 200 KB.
- Only HTML and text formats (plain text, JSON, XML, RSS) are compared. PDF, images and other files return an error item. The CSS selector works only on HTML pages.
- Line diffs are exact for normal pages. When a very large part of a long page changes at once, lines are compared by count, so a pure change of order is reported as `changed` without added or removed lines.
- Some sites block automated requests or answer differently from country to country. The Actor does not work around such blocks. Blocked pages return an error item, for example HTTP 403.
- "Ignore dates" knows numeric date and time formats and English month and weekday names.
- At most 1,000 URLs per run. Use several monitor names for longer lists.

### Data source, permitted use and legal

- **Data source:** the pages at the URLs you enter. The Actor sends plain HTTP GET requests and reads the visible text. It saves that text, up to 200 KB per URL, in a key-value store in your own Apify account so the next run can compare with it.
- **Snapshot:** Results show the state at the time of the run. We do not guarantee that they are complete, current or correct.
- **For business use:** This Actor is offered to businesses only, not to consumers.
- **Permitted use:** Watch only pages you have a legitimate reason to watch, for example public pricing, terms or job pages. Respect the terms of use and the copyright of the sites you watch. The saved text is for your change detection, not for republishing.
- **Your responsibility:** You choose the URLs and decide what happens with the results. If your input or the results contain personal data, you are the controller and need your own legal basis.
- **No circumvention:** The Actor sends plain HTTP requests without login. It does not bypass access restrictions, paywalls, CAPTCHAs or rate limits.
- **Request volume:** At most 2 parallel requests per host with a short pause between requests, and at most 2 retries on HTTP 429 and 5xx. Do not use it to put excessive load on a site, and keep schedules reasonable (once an hour or less often is usually enough).
- **Provider:** forgeloop, Markus Heiss, Austria. [Imprint](https://devhem.github.io/forgeloop-legal/imprint.html), [Privacy Notice](https://devhem.github.io/forgeloop-legal/privacy.html), [Terms of Use](https://devhem.github.io/forgeloop-legal/terms.html).

### Questions and issues

Open an issue on the Actor page.

# Actor input Schema

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

Pages to watch, one per entry. URLs without a scheme get https://. Fragments (#part) and duplicates are removed. At most 1,000 URLs per run.

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

Name of this watch list. The saved page texts live in a named key-value store in your account, website-change-monitor-<name>. Runs with the same name compare with each other. Use different names for separate watch lists.

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

Optional. Compare only the text of the elements that match, for example #pricing, .price or main article. Empty means the whole visible page.

## `ignoreNumbers` (type: `boolean`):

Treat every number as the same value. Counters, view counts and prices then do not count as changes. Turn off to catch price changes.

## `ignoreDates` (type: `boolean`):

Treat dates, times, weekdays and texts like "3 hours ago" as the same value. Covers numeric formats (2026-11-18, 18.11.2026, 11/18/2026, 10:45) and English month names.

## `ignoreLinePatterns` (type: `array`):

Optional regular expressions, one per entry, not case sensitive. Lines that match any of them are left out before the comparison, for example ^Copyright or visitors online.

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

Unchanged URLs produce no dataset item and are not charged. New and changed URLs and errors still appear.

## `resetState` (type: `boolean`):

Delete the saved texts of this monitor before the run. Every URL then comes back as new and becomes the new baseline. Turn it off again for the scheduled runs.

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

Give up on a single page after this many seconds.

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

How many URLs are checked at the same time. Requests to one host are limited to 2 at a time anyway.

## Actor input object example

```json
{
  "urls": [
    "https://books.toscrape.com/",
    "https://www.iana.org/help/example-domains",
    "https://httpbin.org/uuid"
  ],
  "monitorName": "default",
  "ignoreNumbers": false,
  "ignoreDates": false,
  "onlyChanges": false,
  "resetState": false,
  "timeoutSecs": 30,
  "maxConcurrency": 5
}
```

# Actor output Schema

## `results` (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://books.toscrape.com/",
        "https://www.iana.org/help/example-domains",
        "https://httpbin.org/uuid"
    ],
    "monitorName": "default"
};

// Run the Actor and wait for it to finish
const run = await client.actor("forgeloop/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/",
        "https://www.iana.org/help/example-domains",
        "https://httpbin.org/uuid",
    ],
    "monitorName": "default",
}

# Run the Actor and wait for it to finish
run = client.actor("forgeloop/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/",
    "https://www.iana.org/help/example-domains",
    "https://httpbin.org/uuid"
  ],
  "monitorName": "default"
}' |
apify call forgeloop/website-change-monitor --silent --output-dataset

```

## MCP server setup

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