# Website Change Monitor — Pricing & Policy Diff Alerts (`flyerlin/website-change-monitor`) Actor

Pricing page monitor and change feed for any public page. First run saves a baseline; later runs return changed flags, unified diffs and page change alerts for pricing, policy and competitor copy.

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

## Pricing

from $0.35 / 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.
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 — Page Diffs & Change Alerts

Monitor public static HTML pages on a schedule and get a text diff when their readable content changes — pricing pages, policies, documentation and competitor copy.

### Use it when

- You need to know when a competitor changes pricing, plans or product copy.
- Policy, legal or documentation pages must be tracked for updates.
- You want a machine-readable change feed instead of manual checks.
- You are feeding change events into Slack, email, Google Sheets or an AI agent workflow.

**Input → output:** page URLs → a baseline on the first run, then `changed` flags and unified diffs.

Works with Apify Schedules, webhooks/API, integrations, and the Apify MCP server (Claude, Cursor and other MCP clients).

### Monitor pricing pages and policy changes

Point `urls` at the pricing, plan or policy pages you care about and add a CSS `selector` such as `main` or `#pricing` to skip navigation noise. Changes to price, plan names, feature lists or legal text arrive as `changed: true` with a unified diff — a lightweight pricing page monitor that needs no browser rendering.

### Quick start

1. Add `urls` (up to 100) and optionally a CSS `selector` to focus on one content block.
2. Run once to create the baseline (`first_check=true`, `changed=false`).
3. Schedule daily or hourly checks and connect a webhook or integration for alerts.
4. Copy `snapshot_store_id` from the first run’s `SUMMARY`. In the next run or saved task, select that store with **Existing snapshot store (grant access)**. Reuse the same store and selector; typing its name alone does not grant permission.

First run (static HTML example):

```json
{"urls":["https://example.com"],"store_name":"pricing-watch"}
```

For repeat runs, select the saved store in `snapshot_store_id` using the resource picker. API callers must use a token authorized for that store. Do not replace or delete an existing baseline to resolve a permission error.

### Example output

```json
{
  "url": "https://example.com/pricing",
  "first_check": false,
  "changed": true,
  "checked_at": "2026-11-13T02:05:00Z",
  "diff": "@@\n-Pro plan $19/mo\n+Pro plan $24/mo"
}
```

`SUMMARY` in the run's key-value store contains counts. Snapshots persist in the named store, so deleting that store resets the baseline.

### Pricing

**$0.0005 per successfully checked page — $0.50 per 1,000 checks.** Only fetched pages are charged; failed requests do not trigger the event. Platform usage is included. Apify paid plans receive volume discounts — Bronze 10%, Silver 20%, Gold and above 30%.

Example: 100 pages checked daily ≈ 3,000 checks/month ≈ **$1.50/month** in event fees, all-inclusive.

### Limitations

Static HTML only — no JavaScript rendering, authenticated pages or CAPTCHA bypass. Up to 100 pages per run, 5 MB per page. Navigation, header and footer changes are excluded by default. Diffs are capped at 50,000 characters. This Actor does not send notifications by itself.

### FAQ

**Does it render JavaScript?**
No. Pages are fetched as static HTML; content rendered only by client-side JavaScript is not detected.

**What counts as a change?**
The cleaned page text (or the CSS-selected block) is compared between runs. Navigation, header and footer changes are excluded by default. The unified diff is capped at 50,000 characters.

**How much does a daily monitor cost?**
$0.0005 per successfully checked page. 100 pages checked daily is about 3,000 checks/month, roughly $1.50 in event fees with platform usage included.

**Can I watch only the pricing block?**
Yes. Set `selector` to the pricing container (for example `#pricing` or `.plans`) and keep it identical between runs; only that block is compared.

**What are the limits?**
1–100 URLs per run, 5 MB per page, static HTML only. No authenticated pages or CAPTCHA bypass.

**Where are snapshots stored?**
In the named key-value store you provide. Deleting that store resets the baseline and the next run is treated as a first check.

**Can it send emails or Slack messages?**
Not by itself. Schedule runs with Apify Schedules and route the dataset to webhooks or integrations for alerts.

### Related Actors

- [Shopify Price & Stock Monitor](https://apify.com/flyerlin/shopify-variant-monitor) — variant-level price and availability changes on Shopify catalogs.
- [ATS Job Monitor](https://apify.com/flyerlin/ats-job-change-monitor) — new, closed and reopened jobs on Greenhouse and Lever boards.
- [Webpage to JSON](https://apify.com/flyerlin/webpage-clean-json) — extract text, tables, links and JSON-LD from the current page.
- [All Actors by flyerlin](https://apify.com/flyerlin)

### Notes

Deterministic text comparison with no external AI API, so results are fast and reproducible. Exported records are available from the default dataset and via the Apify API.

### Existing snapshot store permissions

When reusing a store created outside this Actor, select it with **Existing snapshot store (grant access)** (`snapshot_store_id`). This grants access only to that store. A `store_name` text value does not grant permissions. Keep the same store for recurring tasks to preserve your baseline. If access fails, the run stops with a SUMMARY diagnostic; it never silently switches to a fresh baseline. Do not enable full account permissions.

### Troubleshooting without losing the baseline

- **Snapshot store access failed:** select the existing store in the input resource picker and grant READ/WRITE to that store only. Full account permissions are not required.
- **No readable static text / selector mismatch:** the page may render in JavaScript or the selector may be wrong. Check a static page or adjust the selector; an empty extraction never overwrites the saved snapshot or triggers a check event.
- **HTTP errors / blocked pages:** inspect `SUMMARY.errors` for the stage and cause. Failed pages do not trigger the page-check event; no CAPTCHA or login bypass is attempted.
- A baseline or unchanged result is valid, but it is not a delivered alert. This Actor outputs data; notification routing must be configured separately.

# Actor input Schema

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

Public HTTP(S) page URLs, one per line (max 100), e.g. https://example.com/pricing. The first run saves a baseline; later runs return changed flags and unified diffs.

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

Optional CSS selector to compare only one block, e.g. main or #pricing. Use the same selector on every run of the same URL; changing it resets the comparison for that URL.

## `store_name` (type: `string`):

Key-value store holding the last snapshot. Reuse the same name to compare across runs; use separate names for independent monitors. Default: website-change-monitor-snapshots.

## `snapshot_store_id` (type: `string`):

Select an existing snapshot store to grant this run read/write access. Reuse the same store across scheduled runs. Takes priority over store_name. A name alone does not grant access to an existing store.

## Actor input object example

```json
{
  "urls": [
    "https://example.com"
  ],
  "selector": "",
  "store_name": "website-change-monitor-snapshots"
}
```

# Actor output Schema

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

Successful output records.

## `summary` (type: `string`):

Run statistics and errors.

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("flyerlin/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"] }

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

```

## MCP server setup

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