Merge & Dedupe Datasets: Combine, Filter, Export CSV/XLSX avatar

Merge & Dedupe Datasets: Combine, Filter, Export CSV/XLSX

Pricing

$0.50 / 1,000 row delivereds

Go to Apify Store
Merge & Dedupe Datasets: Combine, Filter, Export CSV/XLSX

Merge & Dedupe Datasets: Combine, Filter, Export CSV/XLSX

Merge several Apify datasets into one, remove duplicate rows on any key, filter and rename fields, and export CSV or XLSX. Optional only-new-rows mode for repeat jobs. $0.50 per 1,000 rows; duplicates and filtered rows are free.

Pricing

$0.50 / 1,000 row delivereds

Rating

0.0

(0)

Developer

Mossfetch

Mossfetch

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Merge datasets, dedupe and remove duplicates, with CSV and XLSX export. Use it when you have two or more Apify datasets (for example from different scrapers) and need one clean, deduplicated table. Run with demo on first; the demo is free.

Who it's for

  • People combining the outputs of several scrapers or several runs of one scraper.
  • Teams who run a scraper daily and only want rows they have not seen before.
  • Anyone who needs a deduplicated CSV or XLSX from Apify data.

Merge several Apify datasets into one clean list. Remove duplicates on any key (not just url), filter rows, rename or drop fields, and export to a dataset, CSV or XLSX in one run.

It only reads datasets you name that your account can read, and it sends your data nowhere else. Row contents are never written to the run log. You pay per row in the result: duplicates, filtered-out and already-seen rows are free, and there are no per-file or start fees.

Try it in 10 seconds

Leave Demo mode on and press Start. The actor builds 2 sample datasets (230 rows, with overlaps and repeats) and runs the full pipeline. Demo runs are free. When you add dataset IDs, demo mode is ignored and the actor uses your data.

What it does

  • Merge any number of datasets, in the order you list them.
  • Dedupe on a set of keys: rows are duplicates when ALL keys match. Dot paths work (address.city). Options: ignore case, ignore extra whitespace, keep first or last. Rows missing a key are kept (or dropped, your choice).
  • Only new items since last run: output only rows whose key was not seen in earlier runs. Memory is kept as short hashes in a named key-value store (dataset-merge-dedupe-state), one record per State name, so no row data is stored. Use the same State name every run of the same job.
  • Filter rows: equals, notEquals, contains, notContains, gt, gte, lt, lte, in, exists, notExists.
  • Rename / keep / drop fields, optional _sourceDataset field.
  • Export CSV (UTF-8 with BOM) and/or XLSX to the key-value store as OUTPUT.csv and OUTPUT.xlsx. Cells starting with = + - @ are escaped to block spreadsheet formula injection.

Input example

{
"datasetIds": ["<dataset id A>", "<dataset id B>"],
"dedupeKeys": ["url"],
"filters": [{ "field": "price", "op": "gte", "value": 10 }],
"renameFields": { "title": "name" },
"onlyNewItems": false,
"exportFormats": ["csv", "xlsx"]
}

Output

Rows are your own data, so no fixed output fields are declared: each row keeps the fields of the source dataset (after your keep, drop and rename settings). One row per kept item in the default dataset, plus RUN_SUMMARY (rows read, duplicates, filtered out, already seen, delivered).

Pricing

$0.50 per 1,000 rows delivered (pay per event, row = $0.0005). No start fee, no export or webhook fee.

Limits and notes

  • Order of steps: filter, then dedupe, then only-new check, then field changes. Dedupe compares the original values, before renaming or dropping.
  • Rows are held in memory until the run ends (needed for CSV/XLSX and keep-last). About 1M small rows fit in 4 GB.
  • "Only new items" remembers keys as 16-character hashes in records of 200,000, so state has no practical size limit.
  • If the max-charge limit stops the run early, state for "only new items" is not advanced, so the next run returns the same rows.
  • Only public Apify datasets or ones your token can read. No web scraping is done.

FAQ

How does "only new items" remember what it has seen? It stores 16-character hashes of each row's key in a named key-value store (dataset-merge-dedupe-state), one record per State name. No row data is stored. Use the same State name for every run of the same job.

Are duplicates charged? No. Only rows delivered to the output are charged; duplicates, filtered-out and already-seen rows are free, and the demo is free.

Use it from code (API)

curl -X POST "https://api.apify.com/v2/acts/mossfetch~dataset-merge-dedupe/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"datasetIds":["<dataset id A>","<dataset id B>"],"dedupeKeys":["url"]}'

Or with the JavaScript client: await new ApifyClient({ token }).actor('mossfetch/dataset-merge-dedupe').call(input), then read defaultDatasetId.

Use in Make, n8n or Zapier

Run this Actor from Make, n8n or Zapier with an Apify account: add the Apify "Run Actor" step and select or enter the Actor mossfetch/dataset-merge-dedupe (Actor ID kGH0siJabVGv7mvtW). Pass the input as JSON, then read the dataset in the next step. Nothing else to install.