# Website Change Intelligence Monitor (`woolly_kingcrab/website-change-intelligence-monitor`) Actor

Monitor public web pages and detect meaningful text, title, metadata, and link changes between runs.

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

## Pricing

from $20.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 Intelligence Monitor

**Monitor websites and detect meaningful content, text and price changes between runs.**

> Unofficial tool. Monitors publicly accessible web pages only. You are responsible for ensuring your use complies with the target sites' terms and applicable law.

***

### What it does

On every run the Actor fetches each page you give it, compares it against the snapshot it saved last time, and returns **only what changed**:

- **CONTENT_CHANGED** — the page title, meta description, visible text, or link set changed
- **ADDED_TEXT** — new sentences/segments that appeared
- **REMOVED_TEXT** — sentences/segments that disappeared
- **PRICE_CHANGED** — a currency-and-number price token on the page changed (only reported when both the old and new page contain detectable prices — no guessing)
- **UNCHANGED** — the page is byte-for-byte equivalent after noise normalisation

The first run for a page records a **baseline** and reports `BASELINE`, not a change.

All detection is deterministic code — HTTP fetch, HTML parse, hashing, `difflib`, set comparison, regex price tokens. **No AI, no LLM, no paid data APIs.**

### Who it is for

- **Competitor monitoring** — messaging, positioning, feature lists
- **Pricing monitoring** — plan prices, discounts on public pricing pages
- **Product-page monitoring** — spec, availability, and copy changes
- **Policy / Terms monitoring** — track edits to ToS, privacy, SLA pages
- **Sales & market intelligence** — watch prospect and market pages for triggers
- **Website QA** — catch unintended content or link changes after a deploy

### How monitoring works

1. Provide a list of page URLs and a stable **Monitor ID**.
2. The Actor fetches each page (public http/https only), extracts a normalised snapshot, and diffs it against the snapshot stored under `your account + monitorId + normalized URL`.
3. It writes one flat row per change and saves the new snapshot.

#### First run vs. next run

| | Output |
|---|---|
| **First run** for a URL | `BASELINE` row + a `SUMMARY` row. Baseline stored. |
| **Every later run** (same Monitor ID) | One row per `CONTENT_CHANGED` / `ADDED_TEXT` / `REMOVED_TEXT` / `PRICE_CHANGED`, plus a `SUMMARY` row. Unchanged pages produce only a `SUMMARY` (or nothing extra). |

Run it on a schedule with the same Monitor ID and you get an incremental change log — a change is reported once, then folded into the baseline.

### Output

One flat dataset. CSV / JSON / Excel friendly. No large nested blobs.

| Field | Description |
|---|---|
| `url` | URL as you supplied it |
| `normalized_url` | Canonical form used as the state key (lowercased host, tracking params + fragment removed) |
| `monitor_id` | Your monitor ID |
| `change_type` | `BASELINE`, `UNCHANGED`, `CONTENT_CHANGED`, `ADDED_TEXT`, `REMOVED_TEXT`, `PRICE_CHANGED`, `SUMMARY`, `FAILED` |
| `changed_field` | `title`, `meta_description`, `text`, `links`, `price`, `final_url` — or the failure reason for `FAILED` |
| `previous_value` / `current_value` | Concise before/after (or a small JSON blob for `SUMMARY`) |
| `added_text` / `removed_text` | The changed sentences (when `includeTextDiff` is on) |
| `previous_hash` / `current_hash` | SHA-256 of the normalised page text |
| `http_status` | HTTP status of the fetch |
| `detected_at` | When this run observed the change |
| `first_seen_at` / `last_seen_at` | When the page was first / most recently seen |

#### Output example

```json
{ "url": "https://demo.example/pricing", "normalized_url": "https://demo.example/pricing",
  "monitor_id": "competitors", "change_type": "PRICE_CHANGED", "changed_field": "price",
  "previous_value": "$19, $49", "current_value": "$19, $59",
  "http_status": 200, "detected_at": "2026-08-02T00:00:00+00:00",
  "first_seen_at": "2026-08-01T00:00:00+00:00", "last_seen_at": "2026-08-02T00:00:00+00:00" }
{ "url": "https://demo.example/pricing", "change_type": "ADDED_TEXT", "changed_field": "text",
  "added_text": "Priority support and SSO are available on the Enterprise plan.",
  "current_value": "1 new segment(s)", "detected_at": "2026-08-02T00:00:00+00:00" }
```

### Input

| Field | Required | Description |
|---|---|---|
| `urls` | ✅ | Up to 50 public http/https page URLs. |
| `monitorId` | | Stable name for this watch list. **Reuse it on every scheduled run.** Default `"default"`. |
| `outputMode` | | `CHANGES_ONLY` (default) or `ALL_CHECKS` (also emit a row for unchanged pages). |
| `includeTextDiff` | | Emit `ADDED_TEXT` / `REMOVED_TEXT` rows (default `true`). |
| `keywords` | | Only report a page's changes when the added/removed text or new title matches one of these. |
| `contentSelector` | | Monitor only a page section (e.g. `#pricing`). |
| `ignoreSelectors` | | Remove elements before comparison (e.g. `.cookie-banner`). `script`/`style`/`svg` are always ignored. |
| `trackLinks` | | Detect added/removed links (default `true`; tracking params stripped first). |
| `majorChangeThresholdPct` | | Text-change % for the `MAJOR_CHANGE` summary signal (default 20). |
| `maxTextCharacters` | | Cap on compared text (default 200,000). |
| `maxContentBytes` | | Abort a fetch larger than this (default 5 MB). |
| `requestTimeout` | | Per-page timeout in seconds (default 20). |

### Scheduling

Works correctly hourly, 6-hourly, daily or weekly. Use the same `monitorId` each time to preserve comparison state. Once a change is reported and the baseline updates, it is not reported again.

Example: Apify Console → Schedules → cron `0 */6 * * *`, input = your `urls` + `monitorId: "competitors"`.

### API example

```bash
curl -X POST "https://api.apify.com/v2/acts/woolly_kingcrab~website-change-intelligence-monitor/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://www.apify.com/pricing"],"monitorId":"pricing-watch","keywords":["price","plan"]}'

curl "https://api.apify.com/v2/acts/woolly_kingcrab~website-change-intelligence-monitor/runs/last/dataset/items?token=$APIFY_TOKEN&format=csv"
```

### Pricing

**Pay per event.** $0.02 per page successfully checked + $0.00005 per run start. Failed pages (blocked, timeout, 404, oversized, unparseable) are **not** charged. Example: 20 pages daily ≈ `20 × $0.02` ≈ **$0.40/day (~$12/month)**.

### Security & limitations

- **Public pages only.** `localhost`, `127.0.0.0/8`, RFC-1918 private ranges, link-local (`169.254.0.0/16`, incl. cloud metadata endpoints), reserved/multicast, `*.local`, `file://`, `ftp://` and any non-http(s) scheme are rejected. Redirects are re-validated at every hop, and a hostname resolving to any private address is blocked (DNS-rebinding guard).
- 5 MB fetch cap (configurable to 20 MB); `text/html`, `application/xhtml+xml`, `text/plain` only.
- Text-only comparison — JavaScript-rendered content that never appears in the served HTML is not seen.
- `PRICE_CHANGED` is a literal price-token comparison, not a semantic price model; pages that render prices via JS or images won't produce it.
- Not affiliated with any monitored site.

### FAQ

**Does it run a browser?** No — plain HTTP fetch + HTML parse. Fast and cheap, but no JS rendering.

**Will I get the same change twice?** No. Reported changes are folded into the baseline.

**What counts as one billable unit?** One URL that was fetched, parsed and compared successfully in a run. Duplicates in your list and failed fetches are not billed.

**Can two monitors share state?** State is keyed by `account + monitorId + normalized URL`; use a distinct `monitorId` per watch list.

***

*Unofficial tool. Monitors publicly accessible web pages only.*

# Changelog

This Actor's version history is a separate document: https://apify.com/woolly_kingcrab/website-change-intelligence-monitor/changelog.md

# Actor input Schema

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

Up to 50 public http/https page URLs.

## `monitorId` (type: `string`):

Stable name for this monitoring configuration. Reuse the SAME value on every scheduled run so pages are compared against their previous baseline.

## `outputMode` (type: `string`):

CHANGES_ONLY returns changed pages plus per-page summaries. ALL_CHECKS also returns a row for pages that did not change.

## `includeTextDiff` (type: `boolean`):

Emit ADDED_TEXT and REMOVED_TEXT rows with the changed sentences. Turn off for a lighter feed.

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

Optional. Only report a page's changes when the added/removed text or new title contains one of these (case-insensitive).

## `contentSelector` (type: `string`):

Optional. Monitor only a section of the page, e.g. main or #pricing.

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

Optional elements to remove before comparison, e.g. .cookie-banner or .timestamp. script/style/svg are always ignored.

## `trackLinks` (type: `boolean`):

Detect added and removed links (tracking parameters are stripped first).

## `majorChangeThresholdPct` (type: `number`):

Text-change percentage at or above which a change is classified as MAJOR in the summary.

## `maxTextCharacters` (type: `integer`):

Safety cap for the normalized page text used in comparison.

## `maxContentBytes` (type: `integer`):

Abort a page fetch that exceeds this size.

## `requestTimeout` (type: `integer`):

Per-page fetch timeout.

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

Deprecated compatibility field. v0.2 uses outputMode. This value is accepted for older tasks but does not control v0.2 output.

## Actor input object example

```json
{
  "urls": [
    "https://www.apify.com/pricing"
  ],
  "monitorId": "default",
  "outputMode": "CHANGES_ONLY",
  "includeTextDiff": true,
  "keywords": [],
  "contentSelector": "",
  "ignoreSelectors": [],
  "trackLinks": true,
  "majorChangeThresholdPct": 20,
  "maxTextCharacters": 200000,
  "maxContentBytes": 5000000,
  "requestTimeout": 20,
  "emitBaseline": false
}
```

# Actor output Schema

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

Dataset of change rows (CONTENT_CHANGED, ADDED_TEXT, REMOVED_TEXT, PRICE_CHANGED), SUMMARY rows, BASELINE rows and FAILED rows.

## `runSummary` (type: `string`):

Compact run summary from the default key-value store.

# 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://www.apify.com/pricing"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("woolly_kingcrab/website-change-intelligence-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://www.apify.com/pricing"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,woolly_kingcrab/website-change-intelligence-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/mDnERmpPRhsxdgpao/builds/dMeEUow2qUx0Lcu1c/openapi.json
