Dataset Merge & Deduplicate (Apify datasets, CSV, JSON) avatar

Dataset Merge & Deduplicate (Apify datasets, CSV, JSON)

Pricing

from $2.00 / 1,000 1,000 output rows

Go to Apify Store
Dataset Merge & Deduplicate (Apify datasets, CSV, JSON)

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

Nico Klyve

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

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

FieldWhat it doesDefault
datasetIdsApify datasets to merge, read in order (read access only)empty
dataUrlsCSV, JSON or JSONL file links (comma, semicolon or tab CSV)empty
jsonDataRows pasted as a JSON arrayempty
dedupeFieldsFields that identify a duplicate (url, email, or name + city...); dots reach nested fields. Empty = whole rowwhole row
normalizeIgnore case, spaces, http/https, www and trailing slashes when comparingtrue
keepfirst, last or mostComplete (most filled fields)first
fillMissingValuesFill empty fields of the kept row from its duplicatesfalse
onlyNewItemsSkip items already output by earlier runs (history in a named key-value store)false
historyStoreNameName of that history store, one per use caseklyve1-dataset-dedupe-history
addSourceFieldAdd _source (dataset ID or URL of each row)false
addDuplicateCountAdd _duplicateCountfalse
maxInputRowsCap 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 historyStoreName for 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.