Dataset Diff & Change Detector (Added / Removed / Modified) avatar

Dataset Diff & Change Detector (Added / Removed / Modified)

Pricing

from $0.21 / 1,000 unique records key compared

Go to Apify Store
Dataset Diff & Change Detector (Added / Removed / Modified)

Dataset Diff & Change Detector (Added / Removed / Modified)

Compare Apify Datasets, CSV/JSON/XLSX snapshots, or automatic stateful baselines to detect added, removed, and field-level modified rows with numeric % deltas, plain-English summaries, and Standby MCP.

Pricing

from $0.21 / 1,000 unique records key compared

Rating

0.0

(0)

Developer

James Edmans

James Edmans

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

15 hours ago

Last modified

Categories

Features

Limited permissionsSingle-tenantServer interface

Share

Apify Store Actor: forgekit/dataset-diff-change-detector | Runtime: Node.js 22 (lightweight deterministic diff engine, 256–1024 MB RAM) | Billing: Pay-Per-Event (PPE) + Standby MCP Server

Overview

Dataset Diff & Change Detector compares any two snapshots — Apify Datasets, CSV/TSV/JSON/NDJSON/XML/XLSX file URLs, or inline JSON arrays — OR runs in one-click Stateful Snapshot Mode, automatically persisting each run's baseline in a named Key-Value Store so scheduled monitors detect added, removed, and field-level modified records with zero glue code.

Built for price-drop tracking, competitor catalog monitoring, job-board deltas, SaaS directory changes, and AI monitoring agents, it computes exact numeric and percentage deltas (including currency strings like "$1,299.50" and safe divide-by-zero handling), suppresses noisy scraper jitter, emits plain-English changeSummary sentences ready for Slack/email/n8n alerts, generates a Markdown changelog (DIFF_REPORT_MD), and protects your saved baseline with an Atomic Snapshot Guard.

Features vs Competitors

  • Field-Level Delta Engine with Numeric & Percent Math: Computes exact before, after, changeType (updated, type-changed, added-field, removed-field), numericDelta, and percentChange across nested dot-notation objects (pricing.monthly).
  • Voice-of-Customer Monitoring Upgrades:
    • Human-Readable changeSummary Per Row: Emits plain-English alert copy (e.g. "inStock changed false -> true; price decreased -20.0% (99 -> 79.2)") ready to drop straight into Slack, Discord, email, or n8n without custom Jinja/JS parsing.
    • Zero-Noise Smart Defaults: Automatically ignores volatile scraper metadata (scrapedAt, timestamp, crawledAt, runId) and supports numericTolerance, minPercentChange, ignoreCaseAndWhitespace, and ignoreArrayOrder.
    • Quiet No-Changes Alerting (webhookSkipIfNoChanges: true): Never spams webhooks when totalChanges === 0, while writing an explicit SUMMARY.statusMessage ("No changes detected across N compared records") so quiet runs are clearly distinguished from errors.
    • Atomic Snapshot Guard (allowEmptyBaselineOverwrite: false): Refuses to overwrite an existing non-empty stateful baseline when an upstream scraper accidentally returns 0 rows — preventing false 100%-removed alert storms and recording SUMMARY.snapshotProtected: true.
  • Markdown Changelog (DIFF_REPORT_MD) + Webhook Alerting: Generates a clean summary table in KV storage and optionally posts concise JSON alerts to any SSRF-validated webhook URL.
CapabilityDataset Diff & Change Detectornerolabs/dataset-filter-transformVertical-Specific Trackers
Added + Removed + Modified Field DiffsFull (added, removed, modified, unchanged)onlyNew only (no removed/modified!)Single site hardcoded
Numeric & % Price-Drop MathBuilt-in (numericDelta, percentChange, currency parsing)NoneNone
Price per 1,000 Records (FREE)$0.30 ($0.0003/record)$2.00 (6.6x pricier!)Varies
Atomic Empty-Scrape Baseline GuardBuilt-in (snapshotProtected: true)NoneNone
Plain-English changeSummary + MD ReportBuilt-in per row + DIFF_REPORT_MDNoneNone
Standby MCP ServerNative JSON-RPC 2.0 + SSE (2 tools)NoneNone

Input Configuration

FieldTypeRequiredDefaultDescription
modestringNo"two-source""two-source" (explicit A vs B) or "stateful-snapshot" (auto-persisted baseline).
baselineDatasetIdstringNo""Apify Dataset ID for baseline (previous) snapshot.
currentDatasetIdstringNo""Apify Dataset ID for current (latest) snapshot.
baselineFileUrlstringNo""Public CSV/JSON/NDJSON/XLSX URL for baseline snapshot (SSRF-protected).
currentFileUrlstringNo""Public CSV/JSON/NDJSON/XLSX URL for current snapshot (SSRF-protected).
baselineRowsobject[]No[]Inline JSON baseline records (up to 50,000).
currentRowsobject[]No[]Inline JSON current records (up to 50,000).
snapshotStoreNamestringNo"dataset-diff-snapshots"Named KV store persisting baselines in stateful-snapshot mode.
snapshotKeystringNo"default-baseline"Snapshot identifier inside snapshotStoreName.
updateSnapshotbooleanNotrueAtomically save currentRows as next run's baseline (set false for dry-run).
emitInitialBaselineAsAddedbooleanNofalseEmit first stateful baseline rows as "added" (false prevents initial alert flood).
keyFieldsstring[]No["id"]Primary key field(s) matching records across snapshots (1–10 fields).
trackFieldsstring[]No[]Explicit allowlist of fields to compare (empty compares all non-ignored fields).
ignoreFieldsstring[]No["scrapedAt","timestamp","crawledAt","runId"]Volatile metadata columns ignored during comparison.
includeStatusesstring[]No["added","removed","modified"]Categories to push to output dataset ("added", "removed", "modified", "unchanged").
numericTolerancenumberNo0Ignore numeric differences with abs(after - before) <= numericTolerance.
minPercentChangenumberNo0Only flag numeric moves whose absolute percentage change is >= minPercentChange.
ignoreCaseAndWhitespacebooleanNofalseNormalize string casing and collapse whitespace before equality comparison.
ignoreArrayOrderbooleanNofalseTreat arrays as unordered multisets so reordered tags don't trigger false diffs.
webhookUrlstringNo""Optional SSRF-validated webhook URL receiving change alert JSON payloads.
webhookSkipIfNoChangesbooleanNotrueSkip dispatching webhookUrl when totalChanges === 0.
allowEmptyBaselineOverwritebooleanNofalseKeep false to prevent an empty upstream scrape from wiping a saved baseline.
maxRowsintegerNo100000Hard safety cap on rows compared per side (1–500,000).

Output Example

Captured directly from a local end-to-end test run comparing two SKU snapshots (sku-4821 price drop -20.0% + restocked, scrapedAt automatically ignored):

{
"changeType": "modified",
"recordKey": "sku-4821",
"keyValues": {
"sku": "sku-4821"
},
"changedFields": [
"inStock",
"price"
],
"changeSummary": "inStock changed false -> true; price decreased -20.0% (99 -> 79.2)",
"changes": [
{
"field": "inStock",
"before": false,
"after": true,
"changeType": "updated"
},
{
"field": "price",
"before": 99,
"after": 79.2,
"changeType": "updated",
"numericDelta": -19.8,
"percentChange": -20
}
],
"before": {
"sku": "sku-4821",
"price": 99,
"inStock": false,
"scrapedAt": "2026-11-30T10:00:00Z"
},
"after": {
"sku": "sku-4821",
"price": 79.2,
"inStock": true,
"scrapedAt": "2026-12-01T10:00:00Z"
},
"detectedAt": "2026-12-01T20:47:51.802Z"
}

Pay-Per-Event (PPE) Pricing

Event KeyEvent TitlePrice (USD)Billing Trigger
actor-startActor run start$0.005Charged once on non-empty diff runs (waived on empty/protected runs).
row-comparedUnique record key compared$0.0003Charged per unique primary key compared across baseline and current snapshots.
webhook-sentOptional change alert webhook dispatched$0.005Charged only when a webhook notification is actually sent.
mcp-tool-callStandby MCP tool execution$0.003Charged per successful Standby MCP JSON-RPC tool invocation.

Cost Example: Comparing 1,000 unique product records with 1 change webhook costs $0.005 + (1,000 × $0.0003) + $0.005 = $0.31 USD (6.6× cheaper than nerolabs/dataset-filter-transform).

Standby MCP Server & AI Agent Integration

Enable Apify Standby Mode (APIFY_META_ORIGIN=STANDBY) to connect forgekit/dataset-diff-change-detector directly to Claude Desktop, Cursor, or any MCP client:

  • Health Endpoint: GET /health
  • MCP Endpoint: POST /mcp and GET /mcp (Streamable HTTP + SSE)
  • Exposed MCP Tools:
    • diff_datasets — Compares baselineRows vs currentRows by primary key(s), emitting added, removed, modified (with numeric % deltas & changeSummary), and optional unchanged.
    • detect_field_changes — Focused numeric/price/status threshold detector returning only rows whose tracked fields moved beyond minPercentChange or minAbsoluteChange.
{
"mcpServers": {
"dataset-diff-change-detector": {
"url": "https://forgekit--dataset-diff-change-detector.apify.actor/mcp",
"headers": {
"Authorization": "Bearer YOUR_APIFY_TOKEN"
}
}
}
}

Error Handling, Rate Limits & Limitations

  • SSRF & Path-Traversal Protection: All baselineFileUrl, currentFileUrl, and webhookUrl inputs enforce http:/https: schemes only and block loopback, RFC 1918 private IPs, and cloud metadata (169.254.169.254). snapshotKey rejects path traversal (.., /, \).
  • Duplicate Primary Keys: If a snapshot contains duplicate keyFields, the last occurrence deterministically wins and SUMMARY.duplicateBaselineKeys / SUMMARY.duplicateCurrentKeys report exact warning counts.
  • Scale Bounds: Caps input comparison at maxRows per side (default 100,000, max 500,000) and remote file payloads at 50 MB.

Quick Start & Example Input

1. Run in Apify Console (No Code)

  1. Open forgekit/dataset-diff-change-detector in Apify Console and click Try for free.
  2. Paste or adjust the ready-to-run input JSON below (safe defaults are pre-filled).
  3. Click Start and export results as JSON, CSV, Excel, or NDJSON from the Output tab.
{
"baselineRows": [
{
"id": "sku-4821",
"price": 99,
"inStock": false,
"scrapedAt": "2026-11-30T10:00:00Z"
}
],
"currentRows": [
{
"id": "sku-4821",
"price": 79.2,
"inStock": true,
"scrapedAt": "2026-12-01T10:00:00Z"
}
],
"mode": "two-source",
"maxRows": 100000
}

2. Run via API (apify-client — Node.js & Python)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('forgekit/dataset-diff-change-detector').call({"baselineRows":[{"id":"sku-4821","price":99,"inStock":false,"scrapedAt":"2026-11-30T10:00:00Z"}],"currentRows":[{"id":"sku-4821","price":79.2,"inStock":true,"scrapedAt":"2026-12-01T10:00:00Z"}],"mode":"two-source","maxRows":100000});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
from apify_client import ApifyClient
import os
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("forgekit/dataset-diff-change-detector").call(run_input={"baselineRows":[{"id":"sku-4821","price":99,"inStock":False,"scrapedAt":"2026-11-30T10:00:00Z"}],"currentRows":[{"id":"sku-4821","price":79.2,"inStock":True,"scrapedAt":"2026-12-01T10:00:00Z"}],"mode":"two-source","maxRows":100000})
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(items)

3. Connect to n8n, Make, Zapier & Webhooks

  • n8n / Make / Zapier: Add the official Apify module, choose Run Actor, select forgekit/dataset-diff-change-detector, and pass the JSON payload above.
  • Schedules & Webhooks: Attach an Apify Schedule for recurring runs and trigger downstream webhooks automatically on ACTOR.RUN.SUCCEEDED.

Use Cases — What Can You Do With This Data?

  • Automated RevOps & CRM Hygiene: Chain Dataset Diff & Change Detector (Added / Removed / Modified) directly after any Apify scraper via Apify Integrations, Make, or n8n so clean, schema-validated records land straight in HubSpot, Salesforce, Airtable, or Google Sheets.
  • Scheduled Pipeline Automation: Trigger runs automatically on dataset completion webhooks with deterministic, zero-hallucination TypeScript logic and predictable per-row Pay-Per-Event pricing.
  • AI & RAG Data Preparation: Clean, deduplicate, diff, or chunk raw web extractions before embedding into Pinecone, Qdrant, Weaviate, or pgvector without burning LLM tokens on boilerplate.
  • Zero-Code Agency Workflows: Replace brittle local Python scripts and manual Excel cleanup with reproducible, audit-logged cloud runs exported directly to JSON, CSV, NDJSON, or Excel.

Frequently Asked Questions (FAQ)

How much does Dataset Diff & Change Detector (Added / Removed / Modified) cost to run?

You only pay for actual output via transparent Pay-Per-Event billing (starting at $0.0003 per row-compared (Unique record key compared); see the PPE Pricing table above). Runs that produce zero billable results or fail upstream incur $0.00 — including zero actor-start fee — and Apify's built-in Max total charge (ACTOR_MAX_TOTAL_CHARGE_USD) hard-caps spend automatically.

Does this Actor require proxies, logins, or CAPTCHA solving?

No. This Actor performs 100% deterministic local data processing on the inputs you provide (Apify Datasets, Key-Value Stores, inline JSON, or public file URLs). It requires zero proxies, zero headless browsers, and never depends on scraping fragile third-party websites.

What export formats and integrations are supported?

Every run stores structured results in an Apify Dataset downloadable as JSON, CSV, Excel (XLSX), NDJSON, XML, or HTML Table via Console or REST API, plus native connectors for n8n, Make, Zapier, Google Sheets, Airtable, Slack, and webhooks.

Can AI agents (Claude Desktop, Cursor, ChatGPT, LangChain) call this Actor directly via MCP?

Yes! Dataset Diff & Change Detector (Added / Removed / Modified) includes a built-in Standby MCP Server at https://forgekit--dataset-diff-change-detector.apify.actor/mcp supporting JSON-RPC 2.0 (initialize, ping, tools/list, tools/call) with Claude-compliant ^[a-zA-Z0-9_.-]{1,64}$ tool schemas.

How does it protect against runaway costs or bad inputs?

Every input is strictly validated upfront with Zod schemas before any work starts, user-supplied URLs pass SSRF protection blocking private/cloud-metadata IPs, and streaming BudgetGuard enforcement stops immediately once your result or USD budget cap is reached.

How fast and lightweight is it compared to browser scrapers?

It runs on lightweight Node.js 22 (256–512 MB RAM, zero headless browser) so typical runs finish in seconds with high reliability and low platform compute cost.

Explore companion Actors in Data Pipeline & ETL and core ETL utilities to chain end-to-end pipelines:

ActorStore SlugMode
Dataset Merge, Fuzzy Dedupe & Cross-Join Proforgekit/dataset-merge-dedupe-pro✅ Standby MCP
Universal Data Converter & Nested JSON Flattener (JSON, CSV, XLSX, XML, NDJSON, SQLite)forgekit/universal-data-converter-flattener✅ Standby MCP
Lead List Cleaner, Schema Validator & Normalizer (B2B CRM Prep)forgekit/lead-cleaner-schema-normalizer✅ Standby MCP
Bulk Webhook & Rate-Limited HTTP Batch Dispatcher (Retries, Auth & Capture)forgekit/bulk-webhook-http-dispatcherBatch REST API
RSS, Atom & JSON-Feed Aggregator + New-Item Monitor (MCP Ready)forgekit/rss-atom-json-feed-monitor✅ Standby MCP
PDF-to-Markdown, Clean Text & Metadata Extractor (LLM & RAG Ready + MCP)forgekit/pdf-to-markdown-text-extractor✅ Standby MCP
Bulk Domain Availability, RDAP/WHOIS Expiry & Multi-TLD Matrix Checker (MCP)forgekit/bulk-domain-availability-rdap-matrix✅ Standby MCP