# Website Change Monitor - Page Diffs & Price Alerts, $1/1K (`plotpointtech/website-change-monitor`) Actor

Track changes on any web page and get line-by-line diffs, similarity %, keyword and price alerts, with optional JS rendering and before/after screenshots. Built for schedules and Slack/email alerts. $1 per 1,000 URL checks.

- **URL**: https://apify.com/plotpointtech/website-change-monitor.md
- **Developed by:** [Plot Point Technologies](https://apify.com/plotpointtech) (community)
- **Categories:** Automation, Developer tools, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 87.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.62 / 1,000 url checkeds

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

## Website Change Monitor - Track Page Changes & Get Diffs

Know when a web page changes and see exactly what changed. Give this Actor a list of pages, run it on a schedule, and every run returns one record per page: **changed / unchanged / new / error**, a line-by-line text diff, a similarity score, keyword alerts and price changes. Plain HTTP checks cost **$1 per 1,000 URL checks**; JavaScript-rendered checks in a real browser (with optional before/after screenshots) are charged separately.

### What it does

For each URL you supply, the Actor:

1. Checks the website's robots.txt and skips pages it does not allow.
2. Downloads the page (plain HTTP, or a real Chrome browser if you turn on JavaScript rendering).
3. Extracts the content you want to watch: the page's main text without menus, header and footer; the readable article text (via trafilatura); all visible text; or only the part matching a CSS selector. Noisy parts such as ads, timestamps or "recently viewed" boxes can be removed with ignore selectors and ignore patterns.
4. Normalizes the text (whitespace, Unicode), hashes it and compares it with the snapshot saved by the previous run in a **named key-value store** in your Apify account.
5. Outputs a record with the status, a unified diff, added and removed lines, similarity %, keyword alerts, extracted prices and price changes, and (in browser mode) links to before/after screenshots.
6. Saves the new snapshot so the next run compares against it.

The first time a page is checked its status is `new` and a baseline is saved. From the second run on you get `changed` or `unchanged`.

### Use cases

- **Competitor monitoring**: pricing pages, plan tables, product pages, landing page copy.
- **Price and stock tracking** on product pages of stores you are allowed to monitor: price-like amounts are extracted and compared automatically, and keyword alerts can tell you when "In stock" or "Sold out" appears.
- **Compliance and legal**: terms of service, privacy policies, regulatory notices and public tender pages.
- **Release and changelog watching**: software download pages, changelogs, documentation and status pages.
- **Content QA**: make sure your own pages did not change unexpectedly after a deploy.

### How to use

1. Add the pages under **URLs to monitor**.
2. Optional: set a **CSS selector** to watch only one part of the page (for example `.price` or `#changelog`), and **ignore selectors / patterns** for noisy elements.
3. Optional: add **keywords** to be alerted when they appear or disappear.
4. Give the monitor its own **snapshot store name** (for example `competitor-pricing`) so different monitors keep separate histories.
5. Click **Save & Start** once to create the baseline, then create a **schedule** (Actor or task → Schedules), for example every hour or every morning.
6. Add an **integration** to get notified (see below).

#### Notifications by Slack or email

This Actor is built for Apify schedules and integrations:

- Save your input as a **task**, then open the task's **Integrations** tab.
- **Slack**: add the Slack integration, choose the "Run succeeded" event and a channel. Each finished run posts a message; the run's status message reads like `5 checked: 1 changed, 0 new, 4 unchanged, 0 errors`.
- **Email**: add the email integration (or use Apify's run notifications) to receive a message when a run finishes.
- To have the dataset contain **only real changes**, turn on **Output only changed pages**. Your integration, Make/Zapier/n8n scenario or webhook then only has to look at the dataset items.
- Every run also stores a `SUMMARY` record in its default key-value store with counts and the list of changed URLs.
- For custom routing, use a **webhook** on "Run succeeded" and read `https://api.apify.com/v2/datasets/{defaultDatasetId}/items` in your own system.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `startUrls` | array | 2 sample pages | Pages to monitor. |
| `contentMode` | string | `pageText` | `pageText` (main area without nav/header/footer), `readable` (trafilatura article text), `fullText` (all visible text). |
| `cssSelector` | string | - | Watch only elements matching this selector. |
| `ignoreSelectors` | array | \[] | Elements removed before comparing (ads, timestamps, counters). |
| `ignorePatterns` | array | \[] | Regular expressions removed from each line, e.g. `\d{1,2}:\d{2}`. |
| `keywords` | array | `In stock`, `Python 3.14` | Words/phrases to watch (case-insensitive, whole words). |
| `trackPrices` | boolean | true | Extract and compare amounts with a currency. |
| `onlyChangedResults` | boolean | false | Write only `changed` records to the dataset. |
| `renderJavaScript` | boolean | false | Load pages in a real browser (use 2 GB memory or more). |
| `saveScreenshots` | boolean | false | Browser mode only: before/after JPEG screenshots. |
| `waitAfterLoadMs` | integer | 0 | Browser mode only: extra wait for late content. |
| `snapshotStoreName` | string | `website-change-monitor` | Named key-value store that keeps the snapshots. |
| `maxDiffLines` | integer | 300 | Longest diff kept per record. |
| `maxConcurrency` | integer | 5 | Pages checked in parallel (max 10). |
| `requestTimeoutSecs` | integer | 30 | Per-page timeout. |

#### Input example

```json
{
  "startUrls": [
    { "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html" },
    { "url": "https://www.python.org/downloads/" }
  ],
  "contentMode": "pageText",
  "ignoreSelectors": [".advert", "time"],
  "keywords": ["In stock", "Python 3.14"],
  "trackPrices": true,
  "snapshotStoreName": "my-first-monitor"
}
```

### Output

One record per URL. Main fields:

- `url`, `finalUrl`, `httpStatus`, `status` (`new`, `changed`, `unchanged`, `error`), `changed` (true/false)
- `checkedAt`, `changedAt` (time of the most recent detected change), `previousCheckedAt`
- `previousHash`, `currentHash` (SHA-256 of the normalized watched text)
- `similarityPercent` (100 = identical), `linesAdded`, `linesRemoved`, `addedLines`, `removedLines`, `diff` (unified diff), `diffTruncated`
- `keywordsFound` (counts), `keywordAlerts` (`appeared`, `disappeared`, `countChanged`)
- `prices`, `priceChanged`, `priceChanges` (previous, current, % change), `pricesAdded`, `pricesRemoved`
- `screenshotBefore`, `screenshotAfter` (browser mode with screenshots)
- `summary` (one human-readable line, handy for Slack messages), `contentPreview`, `textLength`, `snapshotKey`, `snapshotStore`, `error`

#### Output example

A `changed` record from a run with the default input. For this test the stored snapshot of the page had been edited beforehand to an older price and stock status, so the run shows how a price and stock change is reported:

```json
{
  "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
  "status": "changed",
  "changed": true,
  "checkedAt": "2026-11-01T19:13:29Z",
  "changedAt": "2026-11-01T19:13:29Z",
  "httpStatus": 200,
  "similarityPercent": 80.77,
  "linesAdded": 5,
  "linesRemoved": 5,
  "addedLines": ["£51.77", "In stock (22 available)", "£51.77", "£51.77", "In stock (22 available)"],
  "removedLines": ["£55.00", "Out of stock (0 available)", "£55.00", "£55.00", "Out of stock (0 available)"],
  "diff": "--- previous\n+++ current\n@@ -4,6 +4,6 @@\n A Light in the Attic\n A Light in the Attic\n-£55.00\n-Out of stock (0 available)\n+£51.77\n+In stock (22 available)\n ...",
  "keywordsFound": { "In stock": 2 },
  "keywordAlerts": [{ "keyword": "In stock", "change": "appeared", "previousCount": 0, "currentCount": 2 }],
  "prices": ["£51.77", "£51.77", "£51.77", "£0.00"],
  "priceChanged": true,
  "priceChanges": [{ "previous": "£55.00", "current": "£51.77", "previousValue": 55, "currentValue": 51.77, "currency": "£", "changePercent": -5.87 }],
  "summary": "5 line(s) added, 5 removed; keyword 'In stock' appeared; price £55.00 -> £51.77",
  "snapshotStore": "website-change-monitor"
}
```

### Pricing

Pay per event, no subscription:

| Event | Price |
|---|---|
| URL checked (plain HTTP) | $0.001 ($1 per 1,000) |
| Browser-rendered check (JavaScript, screenshots) | $0.003 ($3 per 1,000) |

A check is charged once per URL per run, whether the page changed or not. Failed checks (robots.txt block, HTTP errors, timeouts) are not charged. Volume discounts apply on higher Apify plans.

Worked examples:

- 20 competitor pages checked every hour: 20 x 24 x 30 = 14,400 checks a month = **$14.40**.
- 50 product pages checked once a day: 1,500 checks a month = **$1.50**.
- 10 JavaScript-heavy pages every 6 hours in browser mode: 1,200 browser checks = **$3.60**.

Snapshots and screenshots are kept in your own key-value store; normal Apify storage rates apply.

### Notes and limits

- Only monitor pages you are allowed to. The Actor obeys robots.txt and does not log in, solve CAPTCHAs or use proxies to get around blocking. Pages behind a login or bot wall will return an error.
- Snapshots are keyed by URL and by the extraction settings (content mode, selector, ignore rules). Changing those settings starts a fresh baseline; changing keywords does not.
- Keyword alerts and price changes compare with the previous check, so the first run only records a baseline.
- Price detection looks for amounts next to a currency symbol or code. Use a CSS selector on the price element for the cleanest results.
- Screenshots are limited to the top 6,000 pixels of the page. Screenshot links are signed URLs to your key-value store.

### FAQ

**Is website change monitoring legal?** Checking public pages for changes is common practice, but you are responsible for monitoring only pages you have the right to access and for following each website's terms. The Actor respects robots.txt and fetches each page only once per run.

**Can I use it through the API?** Yes. Start runs with the Apify API or a client library and read results from the run's dataset. Schedules and webhooks are available in Apify Console.

**Does it work with Make, Zapier or n8n?** Yes, through Apify's official integrations: trigger on a finished run and read the dataset items, ideally with "Output only changed pages" turned on.

**Can AI agents use it?** Yes, through the Apify MCP server, so assistants can check pages and read diffs.

**Why is a page always "changed"?** Something dynamic is in the watched content (dates, counters, rotating banners). Add ignore selectors or patterns, or watch a specific CSS selector.

### Related tools from Plot Point Technologies

- [Website Screenshot & PDF API](https://apify.com/plotpointtech/website-screenshot-pdf-generator): full-page screenshots and PDFs of any page.
- [Website to Markdown Crawler](https://apify.com/plotpointtech/website-to-markdown-crawler): turn pages into clean Markdown for LLMs and RAG.
- [Wayback Machine Scraper](https://apify.com/plotpointtech/wayback-machine-scraper): historical snapshots of a page from the Internet Archive.
- [RSS Feed Reader & Monitor](https://apify.com/plotpointtech/rss-feed-reader-monitor): watch feeds for new items.
- [Broken Link Checker](https://apify.com/plotpointtech/broken-link-checker): find 404s and redirects on your website.

Plot Point Technologies is not affiliated with any of the websites you monitor.

***

If this Actor is useful, please leave a review. Found a problem or need a feature? Open an issue on the Issues tab and we will look at it.

# Actor input Schema

## `startUrls` (type: `array`):

Pages to check for changes. Each run compares every page with the snapshot saved by the previous run. Only monitor pages you are allowed to; pages blocked by the site's robots.txt are skipped.

## `contentMode` (type: `string`):

'Page text' compares the page's main area with navigation, header, footer, sidebars, forms and cookie banners removed (good for product, pricing, changelog and listing pages). 'Readable article text' uses trafilatura to keep only the main article prose, which is the least noisy but can drop lists and tables. 'All visible text' compares everything in the page body. Ignored when a CSS selector is set.

## `cssSelector` (type: `string`):

Optional. Compare only the text inside elements matching this selector, e.g. '.price', '#changelog' or 'main table'. The check fails with an error if nothing matches.

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

Optional. Elements removed before comparing, for noisy parts such as ads, timestamps, counters or 'related items' boxes, e.g. '.ad', 'time', '#recently-viewed'.

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

Optional. Regular expressions removed from each line before comparing, e.g. '\d{1,2}:\d{2}' for clock times or 'Updated .\* ago'. Invalid expressions are treated as plain text.

## `keywords` (type: `array`):

Optional. Words or phrases to watch (case-insensitive). The record reports when one appears, disappears or its count changes compared with the previous check, e.g. 'In stock', 'Sold out', 'deadline'.

## `trackPrices` (type: `boolean`):

Extract price-like amounts with a currency ($19.99, 1.299,00 €, 250 USD) from the watched content and report which ones changed, with percent change.

## `onlyChangedResults` (type: `boolean`):

If on, unchanged pages, first-time baselines and errors are not written to the dataset (they are still checked and baseline checks are still charged). Handy when an integration should only receive changes.

## `renderJavaScript` (type: `boolean`):

Load pages in a real Chrome browser for sites that build their content with JavaScript. Slower and charged as a browser check. Use 2 GB memory or more.

## `saveScreenshots` (type: `boolean`):

Only with browser rendering. Saves a JPEG screenshot (up to 6,000 px tall) on each check; when a page changes, the record links to the before and after images.

## `waitAfterLoadMs` (type: `integer`):

Only with browser rendering. Extra time to let late content appear.

## `snapshotStoreName` (type: `string`):

Name of the key-value store in your account that keeps the previous snapshot of each page. Use a different name per monitor (e.g. 'competitor-prices') to keep separate histories. Lowercase letters, digits and dashes.

## `maxDiffLines` (type: `integer`):

Longest unified diff kept in a record. Added/removed lines are capped at 100 each.

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

How many pages are checked at the same time. Requests to the same website are always spaced at least 1 second apart.

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

How long to wait for each page before the check counts as an error.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
    },
    {
      "url": "https://www.python.org/downloads/"
    }
  ],
  "contentMode": "pageText",
  "ignoreSelectors": [],
  "ignorePatterns": [],
  "keywords": [
    "In stock",
    "Python 3.14"
  ],
  "trackPrices": true,
  "onlyChangedResults": false,
  "renderJavaScript": false,
  "saveScreenshots": false,
  "waitAfterLoadMs": 0,
  "snapshotStoreName": "website-change-monitor",
  "maxDiffLines": 300,
  "maxConcurrency": 5,
  "requestTimeoutSecs": 30
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
        },
        {
            "url": "https://www.python.org/downloads/"
        }
    ],
    "keywords": [
        "In stock",
        "Python 3.14"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("plotpointtech/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 = {
    "startUrls": [
        { "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html" },
        { "url": "https://www.python.org/downloads/" },
    ],
    "keywords": [
        "In stock",
        "Python 3.14",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("plotpointtech/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 '{
  "startUrls": [
    {
      "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
    },
    {
      "url": "https://www.python.org/downloads/"
    }
  ],
  "keywords": [
    "In stock",
    "Python 3.14"
  ]
}' |
apify call plotpointtech/website-change-monitor --silent --output-dataset

```

## MCP server setup

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