Dataset Merge & Dedupe
Pricing
Pay per event
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
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 days ago
Last modified
Categories
Features
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 and10vs10.0are 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
| Field | Default | Description |
|---|---|---|
datasetIds | – | Datasets to merge, in order (IDs or username~name, up to 100). Empty = free demo run on built-in sample data |
dedupe | true | Off = plain merge |
dedupeBy | [] | Key fields (all must match). Empty = whole row |
keep | first | first, last, merge |
normalize | true | Ignore case / extra whitespace in keys |
skipEmptyKeys | true | Keep 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) |
addSourceDatasetId | false | Adds 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:
| Field | Description |
|---|---|
datasets | [{ datasetId, itemsRead, error }] |
itemsRead, itemsOutput | Rows read / written |
duplicatesRemoved, filteredOut, itemsWithoutKey | What happened to the rest |
stoppedBy | null, 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: lastreads each dataset twice (still cheap);keep: mergeholds 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.