# Terms, Privacy & Pricing Page Change Monitor with Diff Alerts (`dottti/policy-pricing-change-monitor`) Actor

Watch terms of service, privacy policy, pricing, refund and changelog pages on any site. Each run says what changed in plain text: sections, added and removed lines, price changes, new effective dates and keywords such as arbitration or AI training. Can find a domain's policy pages for you.

- **URL**: https://apify.com/dottti/policy-pricing-change-monitor.md
- **Developed by:** [Dottti](https://apify.com/dottti) (community)
- **Categories:** Developer tools, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 one web page checked and compared with its last snapshot (first seen, changed or unchanged)s

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

## Terms, Privacy & Pricing Page Change Monitor

Watch the pages people care about on any website: terms of service, privacy policy, pricing, refund, shipping and
cancellation policies, API terms and changelogs. Every run compares each page with the last saved copy and tells you, in
plain text, what changed: which sections, which lines were added or removed, which prices moved, whether the
"effective date" or "last updated" date changed, and whether the change mentions words you care about such as
arbitration, AI training or data sharing.

Give it a list of page addresses, or just a domain: the actor can find a site's terms, privacy, pricing and refund pages
for you.

### Who it is for

- **Vendor risk, procurement and privacy teams** who must notice when a supplier changes its terms, privacy policy or
  data processing terms.
- **Founders, product and sales teams** watching competitors' pricing pages and changelogs.
- **Legal and compliance staff** who keep a record of when a policy changed and what it said before.
- **Shops and marketplaces** tracking refund, return and shipping rules of the platforms they sell on.
- **Developers** who depend on an API's terms or a product's changelog.

### What you get per page

| Field | What it means |
|---|---|
| `status` | `first_seen` (first check, baseline saved), `changed` or `unchanged` |
| `changeSummary` | One plain-English line, ready for a Slack or e-mail alert |
| `pageType` | `terms`, `privacy`, `pricing`, `refund`, `changelog` or `other` (your type, or guessed from the address and title) |
| `effectiveDate`, `lastUpdated` | Dates stated on the page ("Effective May 4, 2026", "Last updated: 3 March 2026"), as YYYY-MM-DD, with the previous values |
| `sectionsAdded`, `sectionsRemoved`, `sectionsChanged` | Section titles (by the page's headings) |
| `addedLines`, `removedLines`, `linesAdded`, `linesRemoved` | A compact line diff (capped by `maxDiffLines`, counts always complete) |
| `changeSize` | Share of the text that changed, in percent |
| `onlyDatesChanged` | True when only a date moved (for example only "Last updated") |
| `prices`, `priceChanges`, `pricesAdded`, `pricesRemoved` | On pricing pages: amounts with currency, plan name and period, and old -> new prices |
| `keywordsMatched`, `keywordsInChange` | Your keywords found on the page, and in the changed lines |
| `wordCount`, `contentHash`, `previousHash`, `changedAt`, `checkedAt` | For records and audits |
| `snapshot` | The page's extracted text, only when you turn on Include page text |

Pages that cannot be read get a **free status row** with a plain message: `blocked_by_robots`, `blocked` (401, 403,
429 or a bot check), `not_found`, `needs_javascript`, `empty_page`, `unsupported_content_type` (for example a PDF),
`failed`, `duplicate`, `bad_input`, plus `no_changes`, `discovery_partial` and `no_policy_pages_found`. The run
always ends successfully.

### How the comparison works

1. The page is read as the server sends it, with an honest user agent and no browser.
2. Navigation, headers, footers, sidebars, cookie banners, scripts and forms are removed. Headings, paragraphs, list
   items and table rows are kept, so a price table row such as "Standard passport | £102 | £115.50" stays one line.
3. Noise is removed before comparing: "last visited" lines, clock times, "3 hours ago", view counters, copyright years,
   session ids and long tokens, curly versus straight quotes and extra spaces. Add your own patterns or CSS selectors
   for anything else that changes on every visit.
4. The text is split into sections by its headings and each section gets its own fingerprint, so you see which section
   changed, not just that "the page changed".
5. The result is saved in a named key-value store in your own account (`policy-pricing-change-monitor-state`), one
   record per alert name and page, and the next run compares with it.

### Find policy pages on a domain

Put domains in **Find policy pages on these domains** and pick the page types. For each domain the actor reads the
homepage links (header and footer), opens a "Legal" or "Policies" page when the site has one (this may be on a parent
company's site, when the footer links there), and checks the sitemap for types still missing. The pages it picks are
watched like the ones you list, and each row says where it was found in `discoveredFrom`. Types it could not find are
named in a free `discovery_partial` row, so you can add those addresses yourself.

### Input example

```json
{
    "pages": [
        "Acme terms | (page address) | terms",
        "(page address)"
    ],
    "discoverDomains": ["(a domain name)"],
    "discoverTypes": ["terms", "privacy", "pricing", "refund"],
    "onlyChanged": true,
    "alertName": "vendors",
    "keywords": ["arbitration", "AI", "training", "data sharing", "price", "cancel"]
}
```

Run it with no input to see a demo with three example pages whose owners allow reuse of their text (a privacy notice
and a terms of use page published under Creative Commons, and a government fees page published under the Open
Government Licence); it finishes in a few seconds. Demo rows carry a `licence` field with the attribution.

### Output examples (real runs, 18 Nov 2026)

Page addresses are left out of these examples.

A fees page where one price went from £94.50 to £102 (for this example the saved copy from the run before was edited
by hand to the older price; everything else is the real output). Contains public sector information licensed under the
Open Government Licence v3.0.

```json
{
    "recordType": "page",
    "label": "Passport fees",
    "pageType": "pricing",
    "pageTypeSource": "input",
    "title": "Passport fees - GOV.UK",
    "status": "changed",
    "changeSummary": "1 section changed (Passport fees); 1 line added, 1 removed; price Adult (16 and over) standard 34-page passport (Apply online): £94.50 -> £102.",
    "changedAt": "2026-11-18T09:50:57.305Z",
    "previousCheckedAt": "2026-11-18T09:47:56.760Z",
    "lastUpdated": "2015-01-12",
    "lastUpdatedSource": "markup",
    "sectionsChanged": ["Passport fees"],
    "linesAdded": 1,
    "linesRemoved": 1,
    "addedLines": ["Adult (16 and over) standard 34-page passport | £102 | £115.50"],
    "removedLines": ["Adult (16 and over) standard 34-page passport | £94.50 | £115.50"],
    "changeSize": 3.2,
    "wordCount": 347,
    "prices": [
        { "plan": "Adult (16 and over) standard 34-page passport (Apply online)", "amount": 102, "currency": "GBP", "period": null, "text": "Adult (16 and over) standard 34-page passport | £102 | £115.50" },
        { "plan": "Adult (16 and over) standard 34-page passport (Apply by paper form)", "amount": 115.5, "currency": "GBP", "period": null, "text": "…(16 and over) standard 34-page passport | £102 | £115.50" }
    ],
    "priceChanges": [
        { "plan": "Adult (16 and over) standard 34-page passport (Apply online)", "period": null, "currency": "GBP", "oldPrice": 94.5, "newPrice": 102, "changePercent": 7.9 }
    ],
    "keywordsMatched": ["fee", "cancel", "refund"],
    "keywordsInChange": [],
    "contentHash": "5367a36e32fadbfcb36ea3a98d98c05e",
    "alertName": "cloud-alerts"
}
```

A terms page where a paragraph was added to the liability section (same method: one real paragraph was taken out of
the saved copy). Mozilla website content, Creative Commons Attribution Share-Alike 3.0.

```json
{
    "recordType": "page",
    "label": "Websites & Communications Terms of Use — Mozilla",
    "pageType": "terms",
    "pageTypeSource": "guessed",
    "status": "changed",
    "changeSummary": "1 section changed (10. Disclaimer; Limitation of Liability); 1 line added, 0 removed.",
    "lastUpdated": "2026-09-16",
    "lastUpdatedSource": "text",
    "sectionsChanged": ["10. Disclaimer; Limitation of Liability"],
    "linesAdded": 1,
    "linesRemoved": 0,
    "addedLines": ["THE COMMUNICATIONS ARE PROVIDED \"AS IS\" WITH ALL FAULTS. TO THE EXTENT PERMITTED BY LAW, MOZILLA AND THE INDEMNIFIED PARTIES HEREBY DISCLAIM ALL WARRANTIES, …"],
    "changeSize": 4.3,
    "wordCount": 1670,
    "keywordsInChange": ["indemn", "jurisdiction"]
}
```

A first check of a privacy notice (from the demo):

```json
{
    "recordType": "page",
    "label": "Firefox Privacy Notice — Mozilla",
    "pageType": "privacy",
    "pageTypeSource": "guessed",
    "status": "first_seen",
    "changeSummary": "First check: snapshot saved as the baseline. Later checks report changes against it.",
    "effectiveDate": "2026-05-04",
    "lastUpdated": "2026-05-04",
    "lastUpdatedSource": "text",
    "sectionCount": 28,
    "wordCount": 5534,
    "keywordsMatched": ["AI", "artificial intelligence", "training", "advertis", "fee", "retention", "jurisdiction"],
    "licence": "Mozilla website content, Creative Commons Attribution Share-Alike 3.0 or any later version"
}
```

Free status rows:

```json
{ "recordType": "status", "status": "needs_javascript", "message": "(page address) builds its text in the browser with JavaScript (only 1 words in the page as served). This actor reads pages as served and does not run a browser. Nothing was charged.", "charged": false }
{ "recordType": "status", "status": "blocked_by_robots", "message": "The site's robots.txt does not allow our crawler to read (page address), so it was skipped. Nothing was charged.", "charged": false }
{ "recordType": "status", "status": "no_changes", "message": "No changes since the last check (alert \"cloud-alerts\") across 6 page(s) checked. Unchanged pages are hidden because onlyChanged is on; each one still counts as one page checked (this status row itself is free).", "charged": false }
```

### Schedule it and get alerts

1. Run it once with your pages. Every page comes back as `first_seen`: that is your baseline.
2. In Apify Console, open **Schedules** and run this actor with the same input daily or weekly.
3. Keep **Only changed pages** on. Each scheduled run then returns only pages that changed (plus free status rows),
   so you can connect the run to Slack, e-mail, a webhook, Make, Zapier or n8n and alert on new dataset items.
4. Use a different **Alert name** for each separate watch list, so their saved copies never mix.

Turn **Only changed pages** off to get one row per page on every run (a full status report).

### Pricing

Pay per result: one `page` event per page checked that returns a result (`first_seen`, `changed` or `unchanged`).
An unchanged page that **Only changed pages** hides is still checked, compared and saved, and counts as one page
checked. Status rows (blocked, robots, not found, needs JavaScript, duplicates, bad input, no changes) are always free.
You can cap the cost of each run with the maximum cost setting in the run options.

Platform usage is included in the price

### Robots.txt and polite reading

- robots.txt is read for every site, and for every site a page redirects to. Pages it closes to our crawler are
  skipped with a free `blocked_by_robots` row. A crawl-delay in robots.txt is followed.
- Requests to the same site are spaced (one per second by default); different sites are read in parallel.
- 401, 403 and 429 answers and bot-check pages are reported as free `blocked` rows. They are never worked around: no
  browser disguise, no proxies to dodge blocks, no captcha solving, no logins, no cookies.
- The user agent names this actor honestly.

### Privacy

The actor reads public pages you choose. E-mail addresses in page text are replaced with "\[email removed]" and "@"
signs are removed before anything is saved or returned. The saved copies stay in your own Apify account.

### Limits

- Pages that build their text in the browser (single-page apps) are not rendered; you get a free `needs_javascript`
  row. Most terms, privacy and pricing pages are served as plain HTML and work.
- PDF policies are not read (free `unsupported_content_type` row).
- Plan names next to prices are found from the nearby text (the words before the price, the card heading or the line
  above). Unusual layouts can give a wrong or empty plan name; the price text is always included so you can check.
- Prices shown only after choosing a country or a billing toggle in the browser are not seen. Some sites show prices
  for the visitor's location; the actor reads what the server sends to it.
- Dates are found from labels such as "Effective", "Last updated" or "Revised", or from the page markup. A page
  without a stated date gives empty date fields.
- The first run only saves the baseline; changes are reported from the second run on.
- Very long pages: the first 6,000 lines (about 400,000 characters) are kept for the line diff; the change itself is
  still detected on the whole page.
- This is a text comparison, not legal advice. Read the full page before acting on a change.

### Source and terms

The actor reads the pages you list, as a visitor's browser would receive them, and only where the site's robots.txt
allows. You are responsible for watching pages in a way that respects each site's terms; some sites do not allow their
text to be copied or reused. Page text belongs to its owner; the actor returns short changed lines and, only on
request, a capped copy of the text for your own records.

Demo and example pages: Mozilla website content is available under the Creative Commons Attribution Share-Alike 3.0
license or any later version. Passport fees page: contains public sector information licensed under the Open
Government Licence v3.0.

# Actor input Schema

## `pages` (type: `array`):

One page address per line: terms of service, privacy policy, pricing, refund or shipping policy, API terms, changelog, or any other page. Optionally add a label and a type, separated by " | ", for example: Acme terms | https://acme.example/terms | terms. Types: terms, privacy, pricing, refund, changelog, other (guessed when left out). Empty, with no domains below = a demo with three example pages.

## `discoverDomains` (type: `array`):

One domain per line (example.com). The actor reads the homepage links (header and footer), a Legal or Policies page if the site has one, and the sitemap, picks the pages of the types below, and watches them like the pages above. Pages not found are listed in a free status row.

## `discoverTypes` (type: `array`):

Which pages to look for on the domains above: terms, privacy, pricing, refund (also returns, shipping and cancellation policies), changelog.

## `onlyChanged` (type: `boolean`):

Return only pages that changed since the last run with the same alert name. The first run returns every page as first_seen (the baseline). Unchanged pages are still checked and saved, just not shown. Use with a schedule and a Slack or e-mail integration. The three demo pages are always shown.

## `alertName` (type: `string`):

Name of the saved snapshots this run compares with. Use a different name for each separate watch list or schedule.

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

Words looked for in the page (keywordsMatched) and in the changed lines (keywordsInChange). Case is ignored and parts of words match (terminat matches termination), except short all-capital words such as AI, which match as whole words.

## `extractPrices` (type: `string`):

Read currency amounts with the nearest plan name and compare them with the last run. auto = on pricing pages only; always = on every page; never = off.

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

At most this many added and this many removed lines are listed per page (each cut at 400 characters). The counts linesAdded and linesRemoved are always complete.

## `includeSnapshot` (type: `boolean`):

Add the page's extracted text (headings marked with #) to each row, cut at the length below.

## `maxSnapshotLength` (type: `integer`):

Longest page text included when Include page text is on.

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

Compare only the first element matching this CSS selector, for example #terms or .pricing-table. Empty = the main text, found automatically. When it matches nothing on a page, the main text is used and a free status row says so.

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

Elements removed before comparing, one CSS selector per line, for example .testimonials or #live-chat. Navigation, headers, footers, cookie banners and scripts are always removed.

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

Lines matching any of these regular expressions (case is ignored) are left out before comparing, for example ^Customers served: or Updated every hour. Dates of visit, clock times, view counters, copyright years and session ids are always ignored.

## `maxPages` (type: `integer`):

Stop after checking this many pages (given and found together).

## `requestDelayMs` (type: `integer`):

Pause between two requests to the same host. A longer crawl-delay in the site's robots.txt is followed. Different sites are checked in parallel.

## `maxRetries` (type: `integer`):

Retries per request on network errors, 5xx and 429 answers (a Retry-After of up to 60 seconds is honoured).

## `timeoutSecs` (type: `integer`):

Longest wait for one page.

## Actor input object example

```json
{
  "pages": [
    "https://www.mozilla.org/en-US/privacy/firefox/",
    "https://www.mozilla.org/en-US/about/legal/terms/mozilla/",
    "https://www.gov.uk/passport-fees"
  ],
  "discoverTypes": [
    "terms",
    "privacy",
    "pricing",
    "refund"
  ],
  "onlyChanged": true,
  "alertName": "default",
  "keywords": [
    "arbitration",
    "class action",
    "AI",
    "artificial intelligence",
    "machine learning",
    "training",
    "data sharing",
    "share your",
    "sell your",
    "third part",
    "advertis",
    "price",
    "fee",
    "cancel",
    "refund",
    "auto-renew",
    "terminat",
    "liability",
    "indemn",
    "retention",
    "subprocessor",
    "jurisdiction"
  ],
  "extractPrices": "auto",
  "maxDiffLines": 20,
  "includeSnapshot": false,
  "maxSnapshotLength": 5000,
  "maxPages": 100,
  "requestDelayMs": 1000,
  "maxRetries": 2,
  "timeoutSecs": 30
}
```

# Actor output Schema

## `pages` (type: `string`):

Page, type, status, what changed, sections, added and removed lines, dates, prices and keywords.

# 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 = {
    "pages": [
        "https://www.mozilla.org/en-US/privacy/firefox/",
        "https://www.mozilla.org/en-US/about/legal/terms/mozilla/",
        "https://www.gov.uk/passport-fees"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dottti/policy-pricing-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 = { "pages": [
        "https://www.mozilla.org/en-US/privacy/firefox/",
        "https://www.mozilla.org/en-US/about/legal/terms/mozilla/",
        "https://www.gov.uk/passport-fees",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("dottti/policy-pricing-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 '{
  "pages": [
    "https://www.mozilla.org/en-US/privacy/firefox/",
    "https://www.mozilla.org/en-US/about/legal/terms/mozilla/",
    "https://www.gov.uk/passport-fees"
  ]
}' |
apify call dottti/policy-pricing-change-monitor --silent --output-dataset

```

## MCP server setup

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