Dataset Merge, Dedup, Filter & Export to CSV/Excel
Pricing
from $0.20 / 1,000 row in results
Dataset Merge, Dedup, Filter & Export to CSV/Excel
Merge Apify datasets, remove duplicates by any fields (nested too), filter without code, pick/rename/flatten fields, keep only new items across runs, and export one CSV, Excel or JSON file. Streams millions of items, works with limited permissions and as an integration.
Pricing
from $0.20 / 1,000 row in results
Rating
0.0
(0)
Developer
David Tayar
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Combine the results of several Apify runs into one clean dataset or file. Remove duplicates by any field (nested ones too), filter rows without code, keep or rename only the columns you need, output only new items since the last run, and export a single CSV, Excel (XLSX), JSON or JSONL file.
It is built for big data and for automation:
- Streams datasets page by page, so 100k, 1M or more items don't run out of memory (tested: 390,000 items in 512 MB).
- Works with limited permissions: no "full access to your account" approval needed, so it runs in schedules, integrations, API calls and AI agents without extra prompts.
- Integration-ready: attach it to any scraper as an integration and it processes that run's dataset automatically.
What can it do?
| Task | How |
|---|---|
| Merge datasets from many runs | Pick them in Datasets (order is kept) |
| Remove duplicates | Deduplicate by fields, e.g. url, or title + address.city |
| Smarter matching | Ignore case, extra whitespace, www., trailing /, #hash and utm_* tracking parameters |
| Only new items vs. a previous result | Skip items already in these datasets |
| Only new items across scheduled runs | Remember across runs: set a history key like daily-jobs |
| Find the duplicates themselves | Output: Only the duplicates |
| Count duplicates without writing anything | Output: Nothing, just count |
| Filter rows | No-code rules: equals, contains, regex, gt/lt (works with "$1,200" and dates), in, exists, isEmpty... |
| Pick / drop / rename columns | Keep only these fields, Remove these fields, Rename fields |
| Flatten nested JSON | {"address":{"city":"X"}} becomes address.city |
| Custom logic | Optional JavaScript pre-process and post-process functions |
| One file for Excel or BI tools | Export files: CSV (UTF-8 with BOM, so Hebrew, Arabic, CJK and accents open correctly in Excel), XLSX (auto-split over 1,048,575 rows), JSON, JSONL |
| Grow a master list | Also append to dataset: add the results to an existing dataset |
Quick start
- Pick one or more datasets in Datasets.
- Add a field to Deduplicate by fields, e.g.
url. - Optional: choose Export files, e.g. CSV and Excel.
- Run. The output items are in the run's dataset. Stats and links to the files are in the OUTPUT record.
Example input (API)
{"datasetIds": ["DATASET_ID_1", "DATASET_ID_2"],"dedupeFields": ["url"],"dedupeNormalizeUrls": true,"filters": [{ "field": "price", "op": "lt", "value": 100 },{ "field": "location.city", "op": "in", "value": ["Berlin", "Paris"] }],"pickFields": ["title", "url", "price", "location.city"],"renameFields": { "location.city": "city" },"exportFormats": ["csv", "xlsx"],"exportFileName": "products"}
Use it as an integration (after a scraper finishes)
- Open your scraper (or task) → Integrations → Add integration → choose this Actor.
- Set the input to:
{"datasetIds": ["{{resource.defaultDatasetId}}"],"dedupeFields": ["url"],"historyKey": "my-scraper-new-items"}
Each time the scraper succeeds, this Actor deduplicates its results and outputs only the items you haven't seen in earlier runs. Put the dataset in datasetIds as shown. Under limited permissions the Actor can read only datasets passed in that field, so a dataset ID inside a raw webhook payload alone can't be read; the run then fails with a message saying exactly what to change.
Via the API you can also call it from your own code or from Make, Zapier or n8n with datasetIds.
Output
- Dataset: the resulting items. Download them from the Console or API in any format.
- OUTPUT (key-value store): a summary like this:
{"ok": true,"stats": { "read": 389666, "unique": 119833, "duplicates": 269833, "filteredOut": 0, "excluded": 0, "written": 119833 },"sources": [{ "datasetId": "...", "items": 150000, "read": 150000, "output": 119833 }],"files": [{ "format": "csv", "key": "merged.csv", "url": "https://api.apify.com/v2/key-value-stores/.../records/merged.csv?signature=...", "rows": 119833, "bytes": 40100000 }],"seconds": 156.7}
- Files: exported CSV / XLSX / JSON / JSONL in the run's key-value store, with signed download links in OUTPUT.
Tip: if you only need a file, turn off Write results to this run's dataset. The run is faster and cheaper.
Why another dedupe Actor? Reliability on real-world inputs
We built this to fix the most common reasons dataset-processing runs fail:
| Common failure | What this Actor does |
|---|---|
| "Insufficient permissions" when reading datasets | Datasets are declared as resource inputs with READ access, so limited-permission runs can read them; clear error messages if something isn't accessible |
| Out of memory on large datasets | Streams pages of 5,000 items; duplicates are tracked as compact 8-byte hashes (about 16 bytes per unique item) instead of full strings |
| Timeouts | Fast streaming (about 6,000 items/s at 1 GB); default timeout 4 hours |
| Server migrations restart the run and duplicate output | Progress is saved; after a migration the Actor resumes without writing the same items twice |
| Duplicate keys colliding | Keys are built from canonical JSON, so "ab"+"c" never equals "a"+"bc", and objects match regardless of key order |
| Nested fields can't be used | Every field option accepts paths like author.name or images[0].url |
| Items with an empty dedupe field silently collapse into one | Kept by default (configurable) |
| Silent overspending | Respects your run's maximum cost and stops cleanly |
Performance (measured on Apify)
| Job | Memory | Time |
|---|---|---|
| 2,000 items, 2 datasets, filter + dedupe + CSV/XLSX/JSON | 1 GB | 1 s |
| 150,000 items → 119,833 unique, written to dataset | 1 GB | 28 s |
| Same + CSV (40 MB) and XLSX (10 MB) files | 1 GB | 73 s |
| 389,666 items from 3 datasets → 119,833 unique + CSV only | 512 MB (peak 255 MB) | 157 s |
More memory also means more CPU, so use 2–4 GB for multi-million-item jobs.
Pricing
Pay per event: you pay per item written to the output, a small fee per 1,000 items scanned, and per exported file. Items removed as duplicates or filtered out are not charged as output. See the Pricing tab for current prices. Set Maximum cost per run in run options to cap spend; the Actor stops cleanly at the limit.
FAQ
Can I process datasets from another Apify account? Only if the owner shares them with you. Under limited permissions the Actor can access what you can access and pass in Datasets.
Can I pass a run ID instead of a dataset ID? Limited-permission Actors can't read other runs. Copy the run's dataset ID from its Storage tab, or use {{resource.defaultDatasetId}} in an integration.
Is order preserved? Yes. Datasets are read in the order given, and the first occurrence of each duplicate is kept.
Where is the history for "Remember across runs" stored? In a key-value store named dataset-utility-history in your account. Only 8-byte hashes are stored, never your data. Delete the record seen-<key> to reset it.
Is my data shared anywhere? No. Everything stays in your Apify account.