Website Change Monitor — Price and Content Diff avatar

Website Change Monitor — Price and Content Diff

Pricing

from $1.00 / 1,000 page checkeds

Go to Apify Store
Website Change Monitor — Price and Content Diff

Website Change Monitor — Price and Content Diff

Monitor any public web page for price, stock, or content changes. Runs on a schedule, stores a persistent snapshot, and reports only real differences with a diff and timestamp. Useful for competitor pricing, product availability, and policy pages. Pay per check, no browser setup.

Pricing

from $1.00 / 1,000 page checkeds

Rating

0.0

(0)

Developer

uzi

uzi

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Website Change Monitor — Price, Stock & Content Diff Tracker

Monitor any web page and get structured change events: price drops and increases, restocks, out-of-stock alerts, and exact added/removed content lines. Each run compares the live page with the snapshot stored by the previous run — state persists across runs in a named key-value store, so you just schedule it daily/hourly and read the dataset.

No browser needed — fast, cheap HTTP fetching with browser-like headers (got-scraping).

What it does

  1. Fetches every target URL (30s timeout, redirects followed, 2 retries on 429/5xx).
  2. Extracts comparable content in TEXT, HTML, or JSON mode (optional cssSelector scoping).
  3. Removes lines matching your ignorePatterns (timestamps, CSRF tokens, view counters) so they don't trigger false changes.
  4. Detects price (JSON-LD offers.price → meta[property=product:price:amount] → microdata [itemprop=price] → currency-symbol regex) and stock status (JSON-LD availability → visible-text patterns like "sold out" / "add to cart").
  5. Compares with the previous snapshot (hash + order-aware line diff) and pushes one record per target: FIRST_RUN, CHANGED, UNCHANGED, or ERROR. Errors are always reported.

Input

FieldTypeDefaultDescription
targetsarrayrequiredOne entry per page: url (required), label, cssSelector, checkPrice (default true)
modeselectTEXTTEXT visible text · HTML raw markup · JSON pretty-printed parsed JSON (falls back to TEXT on parse failure)
onlyReportChangesbooleanfalseSkip UNCHANGED records; change events and ERRORs are still saved
ignorePatternsstring list—Regexes; any line matching one is dropped before comparison
stateNamespacestringdefaultIsolates snapshot stores when several monitors share one Apify account
maxDiffLinesinteger40Cap per side on addedLines / removedLines
proxyConfigurationobject—Optional Apify proxy; enable if targets rate-limit datacenter traffic

Tips

  • cssSelector scopes both comparison and price/stock detection to the first matching element — e.g. div.product_main to ignore the footer. If it stops matching (page redesign), the run reports ERROR instead of silently wiping your baseline.
  • In JSON mode the DOM is not parsed, so price/stock detection falls back to the text regex.
  • A price counts as changed at ±0.5% or more (no alerts for rounding noise).

Output fields (dataset)

FieldDescription
_typeAlways "change"
url, labelThe monitored target and your label
statusFIRST_RUN | UNCHANGED | CHANGED | ERROR
changedtrue for every record that is not UNCHANGED
changeTypesPRICE_DROP, PRICE_INCREASE, RESTOCK, OUT_OF_STOCK, CONTENT_ADDED, CONTENT_REMOVED, CONTENT_CHANGED
firstSeenAt, previousCheckedAt, lastCheckedAt, scrapedAtISO timestamps
priceCurrent, pricePrevious, priceChangePct, currencyPrice now vs. previous run
stockStatusIN_STOCK | OUT_OF_STOCK | UNKNOWN
addedLines, removedLinesLine-level diff, capped at maxDiffLines per side
contentLength, contentHashCharacters compared and hash of normalized content
summaryOne-line human-readable summary
errorMessageDetail when status is ERROR, else null

Example change event

{
"_type": "change",
"url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
"label": "priced product",
"status": "CHANGED",
"changed": true,
"changeTypes": ["PRICE_DROP", "RESTOCK"],
"firstSeenAt": "2026-11-04T09:00:00.000Z",
"previousCheckedAt": "2026-11-03T09:00:04.112Z",
"lastCheckedAt": "2026-11-04T09:00:02.540Z",
"priceCurrent": 47.18,
"pricePrevious": 51.77,
"currency": "GBP",
"priceChangePct": -8.87,
"stockStatus": "IN_STOCK",
"addedLines": ["<p class=\"availability\">In stock (25 available)</p>"],
"removedLines": ["<p class=\"availability\">In stock (19 available)</p>"],
"contentLength": 1521,
"contentHash": "9c3fce8a1b2d4e5f6a7b8c9d0e1f2a3b4c5d6e7f",
"summary": "Change detected: price dropped 51.77 GBP -> 47.18 GBP; 1 line(s) added, 1 line(s) removed.",
"errorMessage": null,
"scrapedAt": "2026-11-04T09:00:02.540Z"
}

Scheduling advice

  • Daily 1–2×: competitor prices, landing pages, compliance pages.
  • Every 1–4 hours: stock status and restocks on fast-moving products.
  • Always on: onlyReportChanges: true — the dataset then contains only events, one run per day keeps storage small. Add ignorePatterns for anything volatile (counters, session IDs, dates).
  • The first run stores a baseline (FIRST_RUN); meaningful events start from the second run.
  • State lives in the named key-value store change-monitor-state-v1. To re-baseline a page, delete its key, or use a new stateNamespace.

Use cases

  1. Competitor price tracking — schedule over 50 competitor product URLs; get PRICE_DROP events with the exact percentage the same day, without visiting each site.
  2. Restock alerts — monitor sold-out SKUs; a RESTOCK event (OUT_OF_STOCK → IN_STOCK) tells your team to buy before stock disappears again.
  3. Compliance & brand protection — watch reseller/marketplace pages for unauthorized price or claims changes; the line diff gives you exactly what was edited, when.
  4. Change-aware scraping pipelines — run this first; only re-scrape pages whose changeTypes include a content change, saving crawl budget on stable pages.

Fair use & ethics

  • Monitor pages you are allowed to access; respect robots.txt and the target site's terms. Do not use this Actor to bypass paywalls, logins, or access controls — it only fetches publicly reachable pages and never submits credentials.
  • Keep schedules reasonable (hourly is plenty for most sites) and use proxyConfiguration responsibly; aggressive polling can get your IP blocked and burdens the target.
  • Price/stock detection uses published structured data and visible text; verify critical alerts (e.g. a big price drop) before acting on automated detection.