# Website Change Monitor & Page Diff Alerts (`adaptive_labs/website-change-monitor`) Actor

Monitor any web page for changes. Get added and removed text lines, keyword alerts and change percent on every run. CSS selector, ignore rules and schedules. Free.

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 & Page Diff Alerts

Watch any web page and find out **exactly what changed**. Each run compares the page's visible text with the last snapshot and returns the **added and removed lines**, a change percentage and a plain summary. Watch the whole page or just one part with a **CSS selector**, ignore noisy text such as timestamps, and get **keyword alerts** when words like "In stock" or "Hiring" appear or disappear.

Add a schedule (hourly, daily or weekly) and connect Slack, email, Google Sheets or a webhook for instant change alerts. No login, no API key and no proxy needed.

### What you get

- Line-by-line text diff: added lines, removed lines, counts and change percentage
- Watch the whole page or just a CSS selector (prices, tables, job lists, notices)
- Keyword alerts when watched words appear or disappear
- Ignore rules (regular expressions) to skip dates, counters and other noise
- Minimum change threshold and an only-changed-pages mode for clean alerts
- Separate watch lists with monitor names, up to 1,000 pages per run
- Works with plain text and HTML pages; clear error rows for pages that fail

### Who uses it

- **Competitor tracking**: pricing pages, feature lists, plans and terms
- **E-commerce**: stock status and price changes on product pages
- **Job seekers and recruiters**: new roles on careers pages
- **Compliance and legal**: changes to terms, privacy policies and regulator notices
- **Researchers and journalists**: government pages, notices and announcements

### Quick start (under a minute)

1. Enter the **Pages to watch** (the examples work out of the box).
2. Optionally add a **CSS selector**, **Keywords to watch** or **Ignore** rules.
3. Click **Start**. The first run saves a snapshot of each page (status first-check).
4. Add a schedule. Every later run reports what changed since the previous one. Turn on **Save only changed pages** for alert-style output.

### Input example

```json
{
  "urls": [
    "https://www.example.com/pricing",
    "https://www.example.com/careers"
  ],
  "cssSelector": "main",
  "watchKeywords": [
    "Enterprise",
    "Sold out"
  ],
  "ignorePatterns": [
    "\\d{1,2} \\w+ 20\\d\\d"
  ],
  "onlyChanges": true,
  "minChangedLines": 1,
  "monitorName": "competitor-pages"
}
```

#### Input fields

- **cssSelector**: Any CSS selector. If it matches nothing, the result shows a clear error instead of a false change.
- **ignorePatterns**: Regular expressions removed from the text before comparing.
- **monitorName**: Snapshots are stored per monitor name and URL.

### Output example

```json
{
  "url": "https://www.example.com/pricing",
  "title": "Pricing | Example",
  "status": "changed",
  "changed": true,
  "addedLines": [
    "Pro plan £29 per month"
  ],
  "removedLines": [
    "Pro plan £25 per month"
  ],
  "addedCount": 1,
  "removedCount": 1,
  "changePercent": 2.4,
  "summary": "1 line(s) added, 1 line(s) removed.",
  "keywords": [
    {
      "keyword": "Enterprise",
      "present": true,
      "wasPresent": true
    }
  ],
  "keywordAlerts": [],
  "contentHash": "9f2c...",
  "textLines": 84,
  "httpStatus": 200,
  "previousCheckAt": "2026-11-10T07:00:00.000Z",
  "checkedAt": "2026-11-11T07:00:00.000Z",
  "monitorKey": "competitor-pages"
}
```

#### Output fields

- **status**: first-check (snapshot saved), changed, unchanged or error.
- **addedLines, removedLines**: The changed text lines, capped by Max diff lines.
- **keywordAlerts**: For example "Sold out" appeared.

### Use it from your code or tools

**Apify API (cURL)**: start a run and get the results in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/adaptive_labs~website-change-monitor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://news.ycombinator.com"], "onlyChanges": false}'
```

**JavaScript / TypeScript**

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('adaptive_labs/website-change-monitor').call({
  "urls": [
    "https://news.ycombinator.com"
  ],
  "onlyChanges": false
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Python**

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("adaptive_labs/website-change-monitor").call(run_input={
  "urls": [
    "https://news.ycombinator.com"
  ],
  "onlyChanges": False
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**No-code and AI agents**

- **Make, Zapier, n8n, Google Sheets, Slack**: use the Apify integration for your tool, pick this Actor and map the dataset fields.
- **Schedules and webhooks**: add the Actor to an Apify schedule (for example every morning) and send results anywhere with a webhook.
- **AI agents and MCP**: this Actor works with the Apify MCP server, so Claude, ChatGPT, Cursor and other MCP clients can call it as a tool. Clean, flat JSON output is easy for LLMs to read.
- **Export**: download results as JSON, CSV, Excel, XML or HTML from the Storage tab.

### FAQ

**Why does the first run show first-check?**
The Actor needs a previous snapshot to compare with. The first run saves it; every later run with the same monitor name reports changes.

**How do I get alerts?**
Schedule the Actor, turn on Save only changed pages, and connect Slack, email or a webhook in the Integrations tab. You only get messages when something changed.

**Can it watch pages that need a login or heavy JavaScript?**
It reads the page HTML without a browser or login, which covers most public pages. Content that only appears after JavaScript runs may not be visible.

**A page changes every time because of a clock or counter. What can I do?**
Add an ignore rule for that text, use a CSS selector for the part you care about, or raise the minimum changed lines.

**Where are snapshots stored?**
In a key-value store in your own Apify account, separate for each monitor name.

### Pricing

This Actor is **free to use**. You only pay for your own Apify platform usage (compute), and small runs use very little compute, so light use fits within the free monthly credit on Apify's free plan.

### Feedback and support

We build and maintain this Actor at **Adaptive Labs** and we read every message.

- If it helped you, please **leave a quick review** on the Actor page. It really helps other people find it.
- Feature requests, bugs or a source you would like added: email **support@adaptivelabs.app** or open an issue on the Issues tab.

### Responsible use

This Actor reads public web pages, like a browser would, at the schedule you choose. It does not log in or bypass access controls. Keep check frequency reasonable and respect each website's terms.

***

If this Actor saved you time, a quick review on Apify Store would mean a lot. Ideas or problems? Email support@adaptivelabs.app.

# Actor input Schema

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

Web page URLs to monitor, one per line, for example a pricing page, careers page, product page, terms of service or a government notice page.

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

Watch only part of each page, for example #pricing, .price, main or table. Leave empty to watch all visible text.

## `watchKeywords` (type: `array`):

Optional. Get an alert when any of these words appear on or disappear from a page, for example In stock, Sold out, Hiring, Deadline.

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

Optional regular expressions for changing text you do not care about, such as dates, counters or timestamps, for example \d+ points or \d+ (minutes|hours) ago.

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

Save a result only when a page changed. Leave off to get a row for every page on every run.

## `minChangedLines` (type: `integer`):

Ignore tiny changes: a page counts as changed only when at least this many lines were added or removed.

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

Upper limit of added and removed lines listed in each result.

## `includeText` (type: `boolean`):

Also save the current extracted text (up to 20,000 characters).

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

Name of the saved snapshots. Use a different key for each watch list so their history stays separate.

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

How many pages to check at the same time.

## Actor input object example

```json
{
  "urls": [
    "https://news.ycombinator.com",
    "https://example.com"
  ],
  "watchKeywords": [],
  "ignorePatterns": [],
  "onlyChanges": false,
  "minChangedLines": 1,
  "maxDiffLines": 50,
  "includeText": false,
  "monitorName": "default",
  "maxConcurrency": 5
}
```

# Actor output Schema

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

Page checks (overview view).

# 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://news.ycombinator.com",
        "https://example.com"
    ],
    "watchKeywords": [],
    "ignorePatterns": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("adaptive_labs/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://news.ycombinator.com",
        "https://example.com",
    ],
    "watchKeywords": [],
    "ignorePatterns": [],
}

# Run the Actor and wait for it to finish
run = client.actor("adaptive_labs/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://news.ycombinator.com",
    "https://example.com"
  ],
  "watchKeywords": [],
  "ignorePatterns": []
}' |
apify call adaptive_labs/website-change-monitor --silent --output-dataset

```

## MCP server setup

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