Dataset Merger and Deduplicator: Remove Duplicates
Pricing
$0.30 / 1,000 item processeds
Dataset Merger and Deduplicator: Remove Duplicates
Merge Apify datasets and JSON files, then remove duplicates by key fields. Keeps the most complete record, fills gaps, or outputs only new items.
Pricing
$0.30 / 1,000 item processeds
Rating
0.0
(0)
Developer
ClearCheck Tools
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
13 hours ago
Last modified
Categories
Features
Share
Combine the results of several scrapers (or several runs of the same scraper) into one clean dataset without duplicates. Point it at your Apify datasets, JSON or JSONL URLs, or paste items; say which fields identify a duplicate; get unique items back.
Typical jobs: merge a Google Maps scrape with a LinkedIn scrape and keep one record per company, remove repeated listings across daily runs, build a "new items only" feed from a scheduled scraper.
What it does
- Merges any mix of: Apify datasets (IDs or names, from your account), JSON / JSONL URLs, items pasted in the input.
- Deduplicates on the fields you choose (dotted paths such as
owner.emailallowed), or on the whole item when you choose none. - Smart comparison so near-identical values match: ignores case, accents (optional), extra whitespace, and for URLs
www.,httpvshttps,#fragments, trailing slashes, query order and tracking parameters (utm_*,fbclid,gclid...). - Chooses which duplicate to keep: first seen, last seen, or the most complete record (most non-empty fields).
- Fills the gaps: optionally copy fields that are empty in the kept record from its duplicates (a phone number found only in the second dataset ends up in the result).
- Only new items: a named memory remembers what you already received, so a scheduled run returns just what is new since the last run.
- Traceability: optional
_source(where an item came from) and_duplicates(how many were merged into it). - Items with none of the key fields are kept by default (never silently dropped).
Quick start
- Put dataset IDs in Datasets to merge (Storage > Datasets, copy the ID).
- Put the identifying field in Fields that identify a duplicate (for example
url). - Click Start; open the Output tab.
Input
| Field | Description | Default |
|---|---|---|
datasetIds | Datasets (ID or name) to merge, read in order. | - |
jsonUrls | URLs returning a JSON array, { "items": [...] } / { "data": [...] }, or JSONL. | - |
items | Items pasted directly. | - |
dedupeKeys | Fields that identify a duplicate (all must be equal). Empty = whole item. | [] |
keep | first, last or mostComplete. | first |
mergeFields | Fill empty fields of the kept item from its duplicates. | false |
ignoreCase, ignoreAccents, trim, normalizeUrls | Comparison rules. | true, false, true, true |
keepItemsWithoutKey | Keep items where every key field is empty. | true |
onlyNewSinceLastRun, stateName | Incremental mode and the name of its memory. | false, default |
addSourceField, addDuplicateCount | Add _source / _duplicates. | false |
Example (real platform run; dataset w3Qf... was listed twice on purpose, which is why 6 duplicates were found):
{"datasetIds": ["w3Qfj8Oxoo4S4Aybq", "ZRsnS5o3hvFHaLIee"],"dedupeKeys": ["_file", "_row"],"keep": "mostComplete","addDuplicateCount": true}
Output
The merged unique items (original fields untouched, plus the optional _source / _duplicates) in the default dataset, and a SUMMARY record:
{"inputItems": 15,"uniqueItemsOutput": 9,"duplicatesRemoved": 6,"itemsWithoutKey": 0,"skippedAlreadySeenInPreviousRuns": 0,"bySource": { "dataset:w3Qfj8Oxoo4S4Aybq": 12, "dataset:ZRsnS5o3hvFHaLIee": 3 },"stoppedByChargeLimit": false,"dedupeKeys": ["_file", "_row"]}
Incremental mode ("only new items")
Turn on onlyNewSinceLastRun and give the pipeline a stateName. The Actor stores a fingerprint of every delivered item key in a key-value store named dedupe-state-<stateName> in your account and skips those keys next time. Items missing all key fields cannot be fingerprinted, so they are always delivered. Delete that store to start over. If a run stops early because of your maximum-charge limit, the memory is not updated, so the next run does not lose items.
Use cases
- Combine scraper runs: merge the datasets of several runs of the same scraper into one clean list.
- Lead lists: remove duplicate companies or contacts by URL, domain or email across sources.
- Monitoring: output only items not seen in previous runs (incremental mode) for alerts and daily digests.
- Data clean-up: keep the most complete record of each duplicate group and fill its empty fields from the others.
Pricing
Pay per event. You can cap spending with the maximum cost per run.
| Event | Price | When it is charged |
|---|---|---|
| Item processed | $0.0003 per item ($0.30 per 1,000) | Once per input item read, duplicates included because they are compared |
No start fee. Examples: 1,000 items = $0.30; 10,000 items = $3.00. At your maximum cost the Actor stops and delivers nothing beyond what was paid.
Limits and honest notes
- Matching is exact after normalization, not fuzzy: "Acme Inc" and "Acme Incorporated" are different. Pick a stable key (URL, ID, email, phone) rather than a free-text name.
- With
keepset tolastormostComplete, or withmergeFields/addDuplicateCount, results are held in memory until the end (measured: 500,000 small items need under 100 MB for keys alone; set more memory for millions of wide items). Withkeep: firstand no merging, results are streamed. - Datasets must be selected in the input (the picker or their IDs in
datasetIds): the Actor runs with limited permissions and can read only the datasets you give it. It never touches your other storages. - Items that are not JSON objects (plain strings, arrays) are ignored.
FAQ
What counts as a duplicate? Items whose key fields are all equal after normalisation (case, accents, whitespace and, for URLs, www, http versus https, fragments, trailing slashes and tracking parameters). With no key fields, the whole item is compared.
Can it read files that are not Apify datasets? Yes: URLs that return a JSON array or JSONL, or items pasted in the input.
How does "only new items" work? The Actor stores a fingerprint of each delivered key under a state name and skips those keys in later runs.
Is the input deleted? No. Source datasets are only read; the result goes to the run dataset.