Apify
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.
Highlights
- 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.
Pricing
Pay per event on the Apify platform – you only pay for what the tool produces. A tiny start fee per run applies.
| Event | Price | USD per event |
|---|---|---|
| Output row One row written to the merged dataset. Duplicates and filtered rows are free. | $0.10 per 1,000 | $0.0001 |
Typical use cases
- Remove duplicate leads by e-mail across datasets
Merge lead lists from several scraper runs and keep one row per e-mail address. Missing fields (phone, city) are filled in from the duplicates. Case and spacing differences are ignored. Run it once without datasets to see a free demo on sample data. - Merge scraper runs and keep the latest version of each item
Combine the results of several runs (e.g. daily product or job scrapes) into one dataset and keep only the newest row per URL or ID. Run it once without datasets to see a free demo on sample data. - Combine several datasets into one (no dedupe)
Append the items of several Apify datasets into one dataset, in the order given, and record which dataset each row came from – e.g. to export many scraper runs as a single CSV or Excel file. Run it once without datasets to see a free demo on sample data. - Filter dataset rows and keep only selected fields
Keep only the rows that match your conditions (e.g. price ≥ 10, e-mail present) and only the columns you need, in your order – a clean export from noisy scraper output. Run it once without datasets to see a free demo on sample data. - Deduplicate companies by name across lead lists
Merge company or lead lists and keep one row per company name, ignoring case and extra spaces; missing e-mail, phone or city are filled in from the duplicates. Run it once without datasets to see a free demo on sample data.
How to use it
Run it in the Apify Console with a few clicks, call it via the Apify API from your own code, or connect it to AI agents through Apify's MCP server. Results come as a dataset (JSON, CSV, Excel) and, where relevant, as files. Full input documentation is on the Apify page.
Limits and fair use
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.