CSV & JSON Snapshot Reconciler
Pricing
$0.05 / completed reconciliation report
CSV & JSON Snapshot Reconciler
Compare two CSV, JSON or JSONL snapshots by explicit keys. Find added, removed and changed records, duplicate keys, missing keys and type errors. Export JSON, spreadsheet-safe CSV and an HTML report.
Pricing
$0.05 / completed reconciliation report
Rating
0.0
(0)
Developer
david tan
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
a month ago
Last modified
Categories
Features
Share
Compare two snapshots by explicit unique keys and receive a reproducible data-quality and change report. Useful for product catalogs, inventory exports, authorized scraper outputs and migration checks.
Paste CSV, a JSON array of flat objects, or JSONL. The Actor identifies added, removed, modified and unchanged records, plus duplicate keys, missing keys, schema drift and optional type errors. No website login, source URL, AI API key or model calls are needed.
Quick example
{"beforeFormat": "csv","beforeData": "id,name,price\n001,Keyboard,49\n002,Mouse,25\n003,Monitor,199\n","afterFormat": "csv","afterData": "id,name,price\n001,Keyboard,45\n003,Monitor,199\n004,Webcam,59\n","keyColumns": ["id"],"expectedTypes": {"price": "number"}}
Result: 1 added, 1 removed, 1 modified, 1 unchanged, 0 type errors. Record order does not affect matching. For a composite key, use e.g. "keyColumns": ["store_id", "product_id"].
Outputs
| Output | Contents |
|---|---|
| Dataset summary | Complete counts only; one item per report |
REPORT.json | Summary, schema changes, sampled differences and anomalies |
CHANGES.csv | Spreadsheet-safe samples of additions, removals and field changes |
REPORT.html | Standalone readable report; no scripts or external resources |
Counts are complete; details are bounded samples. detailLimit applies independently to each category (default/max 1,000). detailTotals and truncated indicate what was omitted. CSV and HTML use the same sampled data. Use detailLimit: 0 for counts and schema only. Lower the limit when records are wide.
Comparison rules
- Keys and values preserve types, case, spaces, leading zeros and Unicode. No automatic trimming, coercion or Unicode normalization.
- CSV cells are strings. JSON
1,1.0,trueand"1"are distinct; matching CSV and JSON sources may require you to align their types first. - Field missing, JSON
nulland empty string are distinct values. Missing/null/empty key components are missing-key anomalies. - If a key is duplicated on either side, all rows with that key on both sides are isolated as ambiguous. They are never arbitrarily paired or counted as additions/removals.
compareColumnsomitted means compare all fields. Explicit[]compares no value fields. Schema changes are always shown.expectedTypeschecks values without changing them. Types:string,integer,number,boolean,null. Missing expected fields are errors. CSV integer checks use canonical decimal syntax; CSV booleans use lowercasetrue/false; numeric checks reject nonfinite values.- JSON field order is irrelevant. Difference order follows the old snapshot for modifications/removals, and the new snapshot for additions.
Limits and errors
Combined source text: 5 MiB UTF-8. Each side: 10,000 records, 100 distinct columns, flat scalar values only. Field name: 256 UTF-8 bytes. Cell: 32,768 serialized UTF-8 bytes, including JSON string quoting/escaping. Report exports: 10 MiB combined. Core work limit: 30 seconds; deployment timeout: 60 seconds. Actor memory is fixed at 256 MB.
CSV requires unique nonempty headers and consistent field counts. JSON rejects duplicate fields, nested values, invalid Unicode, NaN/Infinity and malformed records. JSONL ignores empty lines. CSV blank records with the wrong field count are errors. An empty JSON array is supported. Structural/size errors fail clearly instead of silently dropping records. Type and key anomalies remain in successful reports.
Pricing
This Actor is designed for one report-generated event per completed report, independent of row count. Check the current price shown in Apify before running. Report files and summary are saved before the report event is charged. No report event is charged for invalid input or failed delivery. A platform startup event, if enabled in the published pricing, can still apply to unsuccessful runs.
Data handling
Provide only data you are authorized to process. The Actor does not fetch external URLs or call an AI service. Source records are not written to logs or the summary dataset, but differences and anomalies can appear in report files. Run inputs and output storage are retained by Apify according to your account settings; this is not a zero-retention service. Delete run storage when no longer needed. Exported CSV prefixes formula-like text to reduce spreadsheet formula injection; JSON retains the original values.
Local use
python3 -m reconcile --input examples/input.json --output state/demopython3 -m unittest discover -s tests -v
The local core uses Python 3.12 standard libraries and performs no network calls. The cloud wrapper uses pinned Apify SDK dependencies.