Dataset Merge, Dedup, Filter & Export to CSV/Excel avatar

Dataset Merge, Dedup, Filter & Export to CSV/Excel

Pricing

from $0.20 / 1,000 row in results

Go to Apify Store
Dataset Merge, Dedup, Filter & Export to CSV/Excel

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

David Tayar

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

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?

TaskHow
Merge datasets from many runsPick them in Datasets (order is kept)
Remove duplicatesDeduplicate by fields, e.g. url, or title + address.city
Smarter matchingIgnore case, extra whitespace, www., trailing /, #hash and utm_* tracking parameters
Only new items vs. a previous resultSkip items already in these datasets
Only new items across scheduled runsRemember across runs: set a history key like daily-jobs
Find the duplicates themselvesOutput: Only the duplicates
Count duplicates without writing anythingOutput: Nothing, just count
Filter rowsNo-code rules: equals, contains, regex, gt/lt (works with "$1,200" and dates), in, exists, isEmpty...
Pick / drop / rename columnsKeep only these fields, Remove these fields, Rename fields
Flatten nested JSON{"address":{"city":"X"}} becomes address.city
Custom logicOptional JavaScript pre-process and post-process functions
One file for Excel or BI toolsExport 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 listAlso append to dataset: add the results to an existing dataset

Quick start

  1. Pick one or more datasets in Datasets.
  2. Add a field to Deduplicate by fields, e.g. url.
  3. Optional: choose Export files, e.g. CSV and Excel.
  4. 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)

  1. Open your scraper (or task) → Integrations → Add integration → choose this Actor.
  2. 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 failureWhat this Actor does
"Insufficient permissions" when reading datasetsDatasets 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 datasetsStreams pages of 5,000 items; duplicates are tracked as compact 8-byte hashes (about 16 bytes per unique item) instead of full strings
TimeoutsFast streaming (about 6,000 items/s at 1 GB); default timeout 4 hours
Server migrations restart the run and duplicate outputProgress is saved; after a migration the Actor resumes without writing the same items twice
Duplicate keys collidingKeys are built from canonical JSON, so "ab"+"c" never equals "a"+"bc", and objects match regardless of key order
Nested fields can't be usedEvery field option accepts paths like author.name or images[0].url
Items with an empty dedupe field silently collapse into oneKept by default (configurable)
Silent overspendingRespects your run's maximum cost and stops cleanly

Performance (measured on Apify)

JobMemoryTime
2,000 items, 2 datasets, filter + dedupe + CSV/XLSX/JSON1 GB1 s
150,000 items → 119,833 unique, written to dataset1 GB28 s
Same + CSV (40 MB) and XLSX (10 MB) files1 GB73 s
389,666 items from 3 datasets → 119,833 unique + CSV only512 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.