Dataset Merge & Deduplicate (Apify datasets, CSV, JSON)
Pricing
from $2.00 / 1,000 1,000 output rows
Dataset Merge & Deduplicate (Apify datasets, CSV, JSON)
Merge several Apify datasets, CSV or JSON files into one clean dataset and remove duplicates by any fields, with normalisation, keep first, last or most complete, merging of missing values and an only-new-items mode across runs.
Pricing
from $2.00 / 1,000 1,000 output rows
Rating
0.0
(0)
Developer
Nico Klyve
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Merge the results of several scraper runs, Apify datasets, CSV or JSON files into one clean dataset and remove duplicates by the fields you choose. Values are normalised before comparing (case, spaces, http/https, www, trailing slash), you decide which copy to keep, missing values can be filled from the other copies, and an only-new-items mode remembers what was already output so a scheduled run returns only fresh results.
Who uses it
- Lead generation: merge Google Maps, directory and website scrapes, keep one row per website or email, with the phone found in any copy.
- Scheduled scrapers: run after each daily scrape and get only the items that were never seen before (new listings, new articles, new products).
- Data teams: join exports from several tools into one CSV without double counting.
- Integrations (Make, Zapier, n8n): send only new, unique rows to a CRM or a spreadsheet.
Example
Input rows (from the prefill):
[{ "company": "Acme Corp", "website": "https://www.acme.com/", "city": "Paris", "phone": "" },{ "company": "ACME corp ", "website": "http://acme.com", "city": "", "phone": "+33 1 23 45 67 89" },{ "company": "Globex", "website": "https://globex.example", "city": "Lyon", "phone": "+33 4 00 00 00 00" },{ "company": "Initech", "website": "https://initech.example", "city": "Nantes", "phone": "" },{ "company": "Globex", "website": "https://globex.example/", "city": "Lyon", "phone": "+33 4 00 00 00 00" }]
Output with dedupeFields: ["website"], fillMissingValues and addDuplicateCount:
[{ "company": "Acme Corp", "website": "https://www.acme.com/", "city": "Paris", "phone": "+33 1 23 45 67 89", "_duplicateCount": 2 },{ "company": "Globex", "website": "https://globex.example", "city": "Lyon", "phone": "+33 4 00 00 00 00", "_duplicateCount": 2 },{ "company": "Initech", "website": "https://initech.example", "city": "Nantes", "phone": "", "_duplicateCount": 1 }]
A SUMMARY record in the run's key-value store gives the counts: input rows per source, unique rows, duplicates removed, items already seen in previous runs and output rows.
Input
| Field | What it does | Default |
|---|---|---|
datasetIds | Apify datasets to merge, read in order (read access only) | empty |
dataUrls | CSV, JSON or JSONL file links (comma, semicolon or tab CSV) | empty |
jsonData | Rows pasted as a JSON array | empty |
dedupeFields | Fields that identify a duplicate (url, email, or name + city...); dots reach nested fields. Empty = whole row | whole row |
normalize | Ignore case, spaces, http/https, www and trailing slashes when comparing | true |
keep | first, last or mostComplete (most filled fields) | first |
fillMissingValues | Fill empty fields of the kept row from its duplicates | false |
onlyNewItems | Skip items already output by earlier runs (history in a named key-value store) | false |
historyStoreName | Name of that history store, one per use case | klyve1-dataset-dedupe-history |
addSourceField | Add _source (dataset ID or URL of each row) | false |
addDuplicateCount | Add _duplicateCount | false |
maxInputRows | Cap on rows read (0 = no limit) | 0 |
Give at least one dataset, URL or JSON data.
Pricing
Pay per result: $0.002 per 1,000 output rows (each started block of 1,000 counts). Duplicates removed and items skipped as already seen are free.
Good to know
- Rows whose dedupe fields are all empty are never merged together: they are all kept.
- The output keeps the original values: normalisation is only used to compare.
- In only-new mode the history is saved at the end of a successful run. Use a different
historyStoreNamefor each scraper or list, and the same one between runs of the same list. - Everything runs in memory: up to a few hundred thousand rows per run works with the default memory.