# Website Change Monitor - Detect Text Changes on Any Page (`kotaro-project/website-change-monitor`) Actor

Watch web pages for changes. Each run compares a page's visible text with the previous run and returns the lines added and removed. Ignore lines with dates or counters. Schedule it daily for price, stock, policy or news pages. Pay per page. No login, no API key.

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

## Pricing

from $2.00 / 1,000 page checkeds

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

Know when a web page changes. Each run reads the visible text of your pages, compares it with the previous run, and tells you exactly which lines were **added** and which were **removed**.

Run it on a schedule (daily or hourly) to watch:

- competitor prices and product pages
- stock and availability notices
- terms of service, privacy policies and pricing pages
- job boards, news pages and announcement pages
- your own site, to catch unexpected edits

### How it works

1. The first time a page is checked, its text is saved. The result says `firstCheck: true`.
2. On every later run, the new text is compared with the saved one. You get `changed`, `addedLines`, `removedLines` and their counts.
3. The saved text is then replaced with the new one, so the next run compares with this run.

Only the visible text is compared. Scripts, styles and page code are left out, so a change in hidden code does not raise a false alarm.

The saved texts are kept in a key-value store **you choose** in the input (`stateStore`), in your own Apify account. The Actor gets access only to that store. Use the same store every run. If you leave it empty, the run still works, but it only saves a first check in its own run store and cannot compare with earlier runs (the result says so in `note`).

### Input

| Field | What it does |
|---|---|
| `urls` | Pages to watch, up to 100. A bare domain is opened with https. |
| `stateStore` | The key-value store that keeps the page texts between runs. Choose or create one and keep it the same. |
| `watchName` | A name for this group of pages. Keep it the same between runs. A different name starts a separate history. |
| `ignoreLinesContaining` | Words that mark lines to leave out, such as a date line, a visitor counter or a rotating banner. Not case sensitive. |
| `maxPageKB` | Read at most this many kilobytes per page (50 to 5000, default 2000). |

### Output (one row per page)

```json
{
  "inputUrl": "https://example.com",
  "finalUrl": "https://example.com/",
  "status": 200,
  "checkedAt": "2026-11-09T00:00:00+00:00",
  "previousCheckAt": "2026-11-08T00:00:00+00:00",
  "firstCheck": false,
  "changed": true,
  "addedLines": ["Price: $19"],
  "removedLines": ["Price: $24"],
  "addedCount": 1,
  "removedCount": 1,
  "textLength": 1234,
  "bytesRead": 15000,
  "truncated": false,
  "chargedPages": 1
}
```

Up to 200 added and 200 removed lines are listed per page; the counts always show the full numbers.

### Pricing

Pay per event `page`:

- 1 event for each page checked
- plus 1 more event for every started 500 KB read beyond the first 500 KB (a 1.2 MB page = 3 events)

Pages are read only as far as your spending limit allows. A page that is refused or cannot be read is **not charged** and gives a row with `error`.

### Limits and safety

- Internal and private addresses (localhost, 192.168.x.x and similar) are refused, also after a redirect.
- Only http and https on the standard ports.
- No login and no cookies: pages that need sign-in cannot be watched.
- Up to 5 redirects per page, up to 100 pages per run, about 4 minutes per run.
- Very long pages are compared line by line without order, so the result stays fast.

### Acceptable use

Watch only pages you are allowed to read. Respect each site's terms of service and do not check the same site so often that it causes load.

# Actor input Schema

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

Pages to check, up to 100. A bare domain is opened with https. Internal addresses are refused. The first run of a page saves it; later runs report what changed.

## `stateStore` (type: `string`):

Choose (or create) a key-value store where the page texts are kept between runs. Use the same store every run to see what changed. This Actor gets read and write access only to the store you choose here. Without it, each run only saves its own first check.

## `watchName` (type: `string`):

A name for this group of pages. The same URL under a different watch name is compared separately. Keep it the same between runs to compare with the previous run.

## `ignoreLinesContaining` (type: `array`):

Lines that contain any of these words are left out before comparing, for example a date line, a visitor counter or an ad text. Not case sensitive.

## `maxPageKB` (type: `integer`):

Read at most this many kilobytes of each page, from 50 to 5000. Each started 500 KB read is one billable page event.

## Actor input object example

```json
{
  "urls": [
    "https://example.com",
    "https://www.iana.org/help/example-domains"
  ],
  "watchName": "default",
  "maxPageKB": 2000
}
```

# 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://example.com",
        "https://www.iana.org/help/example-domains"
    ]
};

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

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

```

## MCP server setup

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