Dataset Merge & Dedupe avatar

Dataset Merge & Dedupe

Pricing

Pay per event

Go to Apify Store
Dataset Merge & Dedupe

Dataset Merge & Dedupe

Merge any number of Apify datasets into one and remove duplicates by one or more fields (case- and whitespace-insensitive). Keep first, last or merge duplicates, filter rows, rename and select fields. Pay only for rows you keep.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Cellwright

Cellwright

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Merge any number of Apify datasets into one clean dataset and remove duplicates by one or more fields. Ideal after running the same scraper several times, combining results from different Actors, or cleaning data before it goes to a CRM, spreadsheet or AI agent. You pay only for the rows you keep.

Why this Actor

  • Smart duplicate detection: compare by one or more fields (dot paths for nested data, e.g. address.city) or by the whole row. Case, extra spaces and 10 vs 10.0 are ignored by default – the output keeps the original values.
  • Choose the winner: keep the first row, the last row (newest data), or merge duplicates into one row where empty fields are filled from the other copies.
  • Rows without a key stay: rows whose key fields are empty are not collapsed into one by accident.
  • Filter before merging: price >= 10, country in [CH, DE], url regex \.ch$, email exists …
  • Tidy output: rename fields, keep only the fields you need, optionally tag each row with its source dataset.
  • Streams large datasets with low memory use; a summary of every run is saved to the key-value store (OUTPUT).
  • Transparent: a dataset that cannot be read is reported and skipped, the others are still merged.

Input

FieldDefaultDescription
datasetIds–Datasets to merge, in order (IDs or username~name, up to 100). Empty = free demo run on built-in sample data
dedupetrueOff = plain merge
dedupeBy[]Key fields (all must match). Empty = whole row
keepfirstfirst, last, merge
normalizetrueIgnore case / extra whitespace in keys
skipEmptyKeystrueKeep rows whose key fields are all empty
filters[][{"field": "price", "op": "gte", "value": 10}] – ops: eq, ne, gt, gte, lt, lte, contains, notContains, startsWith, endsWith, regex, in, exists, notExists (all must match)
rename{}{"title": "name"}
fields[]Output only these top-level fields (after renaming)
addSourceDatasetIdfalseAdds sourceDatasetId to each row
maxItems–Stop after N output rows

Order of steps per row: filter → deduplicate → rename → select fields.

Example

{
"datasetIds": ["a1B2c3D4e5", "f6G7h8I9j0"],
"dedupeBy": ["website"],
"keep": "merge",
"filters": [{ "field": "website", "op": "exists" }],
"fields": ["name", "website", "phone", "address"]
}

Output

The default dataset contains the merged rows (your original fields). The key-value store record OUTPUT holds the run summary:

FieldDescription
datasets[{ datasetId, itemsRead, error }]
itemsRead, itemsOutputRows read / written
duplicatesRemoved, filteredOut, itemsWithoutKeyWhat happened to the rest
stoppedBynull, maxItems or chargeLimit

Pricing

Pay per event: a small start fee plus a price per output row. Rows removed as duplicates or by filters are free. See the Pricing tab for current prices.

Limits & notes

  • keep: last reads each dataset twice (still cheap); keep: merge holds the unique rows in memory – for many millions of rows, raise the memory.
  • Only datasets your account can access are read. The Actor does not fetch anything from the web.