Merge Datasets & Remove Duplicates – Join & Dedupe CSV, Excel
Pricing
from $0.20 / 1,000 row delivereds
Merge Datasets & Remove Duplicates – Join & Dedupe CSV, Excel
Merge Apify datasets, CSV and Excel files into one table and remove duplicates by any fields. Join two tables by key (VLOOKUP: left, inner, full, anti), compare two runs (added, removed, changed), or get only new items since the last run. Export CSV, XLSX, JSON. $0.20 per 1,000 rows.
Pricing
from $0.20 / 1,000 row delivereds
Rating
0.0
(0)
Developer
Cemal Atakli
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Features
Share
Merge datasets and remove duplicates: join, dedupe and compare Apify datasets, CSV and Excel
Dataset Merge & Dedupe puts several Apify datasets, CSV, Excel or JSON files into one clean table and removes duplicates. It can also join two tables by a key (like VLOOKUP or a SQL join), compare two runs (added, removed and changed rows) and return only new items since the last run.
No code and a short input. You pay $0.20 per 1,000 delivered rows. Removed duplicates are not charged as rows.
What it does
| Mode | Result |
|---|---|
| Merge (default) | All datasets and files in one table, duplicates removed |
| Join | Columns of a second table added by key: left, inner, full or anti (rows without a match) |
| Compare | added, removed and changed rows between an old and a new table, with the old values |
- Remove duplicates by any fields (
url, orname+city), or by the whole row. Upper/lower case and extra spaces are ignored by default. - Choose which duplicate stays: first, last, most complete, or combine (empty fields are filled from the other duplicates).
- Only new items: remembers delivered rows between runs, so a scheduled scraper gives you only new listings, jobs or leads.
- Similar column names are matched:
E-mail,emailandEMAILfrom different files become one column. - Inputs: Apify datasets, CSV, TSV, XLSX, XLS, XLSB, ODS, JSON, JSON Lines. Links from Google Sheets, Google Drive, Dropbox, OneDrive and GitHub work when they are public.
- Output: dataset rows (JSON, CSV, Excel, API) and, if you want, one CSV, XLSX or JSON file.
- Limited permissions: the Actor only reads the datasets you pick.
Use cases
- Merge the results of five Google Maps runs and keep one row per
placeId - Combine CSV files or merge Excel files from several people into one list
- Add CRM fields to scraped leads by e-mail or domain (VLOOKUP for datasets)
- Find leads that are not in your customer list yet (anti join)
- See which prices changed, and which products are new or gone, between yesterday's and today's run
- Get only new job ads or property listings from a daily scraper
Input examples
Merge and remove duplicates (the 1-click example: two versions of the public Palmer penguins table)
{"mode": "merge","fileUrls": ["https://raw.githubusercontent.com/mwaskom/seaborn-data/master/penguins.csv","https://raw.githubusercontent.com/allisonhorst/palmerpenguins/main/inst/extdata/penguins.csv"],"dedupeFields": ["species", "island", "bill_length_mm", "bill_depth_mm", "flipper_length_mm", "body_mass_g"],"keep": "mostComplete","limit": 100}
Join (VLOOKUP)
{"mode": "join","datasetIds": ["YOUR_LEADS_DATASET_ID"],"secondFileUrls": ["https://example.com/crm-export.csv"],"keyFields": ["email"],"secondKeyFields": ["contact_email"],"secondFields": ["owner", "stage"],"joinType": "left"}
Compare two runs
{"mode": "compare","datasetIds": ["OLD_RUN_DATASET_ID"],"secondDatasetIds": ["NEW_RUN_DATASET_ID"],"keyFields": ["sku"],"ignoreFields": ["scrapedAt"]}
Only new items after every scraper run: in your scraper open Integrations → Connect Actor, choose this Actor and use
{"datasetIds": ["{{resource.defaultDatasetId}}"],"dedupeFields": ["url"],"onlyNewItems": true,"stateStoreName": "my-job-alerts"}
Output examples
Merge:
{"species": "Adelie", "island": "Torgersen", "bill_length_mm": 39.1, "bill_depth_mm": 18.7, "flipper_length_mm": 181,"body_mass_g": 3750, "sex": "male", "year": 2007, "_source": "https://raw.githubusercontent.com/allisonhorst/palmerpenguins/main/inst/extdata/penguins.csv"}
Compare:
{"_change": "changed", "_changedFields": ["price"], "_before": {"price": 10}, "sku": 1, "price": 12}
Join adds _match (both, left, right) in left and full joins. The OUTPUT record holds the run summary: rows read, duplicates removed, matched / unmatched or added / removed / changed counts, each source with its status, the file link, warnings and charges.
Pricing (pay per event)
| Event | Price |
|---|---|
| Row delivered | $0.0002 ($0.20 per 1,000) |
| 1,000 source rows scanned | $0.002 |
| Export file (CSV / XLSX / JSON) | $0.003 |
| Actor start | $0.00005 |
- The 1-click example (688 rows read, 100 delivered) costs about $0.022.
- Merging 10,000 rows into 8,000 unique rows costs about $1.62.
- A daily "only new" run over 20,000 rows with 100 new ones costs about $0.06.
Duplicates, already seen rows, failed sources and invalid input are not charged as rows. If you set a maximum cost per run, the Actor stops cleanly at that amount.
| Actor (Apify Store, Nov 2026) | Price per row |
|---|---|
| This Actor | $0.0002 |
| tidydata/merge-dedupe-datasets | $0.00025 + $0.005 per file |
| saliga/dataset-merge-dedupe | $0.0005 |
| humble-echidna/dataset-transform | $0.001 |
| lukaskrivka/dedup-datasets-limited-permissions | free |
Rules and limits
- Merge with
keep: firststreams the data. Otherkeepchoices hold the unique rows in memory. - Limit of 500,000 rows in memory for: the second table of a join, the first table of a comparison, and unique rows when
keepis notfirst. Wide rows may need more memory than the default 512 MB. The run tells you when that happens. - Join and compare need complete tables. If a lookup table cannot be read, or your maximum cost is reached while it is read, the run fails and delivers no rows, because the result would be wrong. Rows already scanned are charged ($0.002 per 1,000).
- Wrong key names stop the run before any row is delivered.
- Rows whose key fields are all empty are never treated as duplicates and never match in a join.
- A joined row uses the first match by default. Choose All matches for SQL behaviour, which can create many rows.
- Compare without
keyFieldsfinds only added and removed rows. Both tables then need the same columns. - In compare mode a repeated key is used once (the first row).
5,5.0and"5"are equal, and so are empty and missing values. - Big JSON arrays: use JSON Lines or CSV when a file is larger than about 10% of the run's memory.
- File links must be public. Links to private or internal network addresses are refused.
Use with AI agents / Apify MCP
Add the Actor to the Apify MCP server. An agent can run two scrapers, call this Actor with both dataset IDs, and read one deduplicated table. Small tables can be passed directly in items and secondItems.
Related Actors
- Dataset Filter & Transform: same price, for filter rules, sorting, renaming, type conversion, text cleaning and split exports. It has no join and no compare. Use it when you need to filter or reshape one table. Use this Actor to merge, join or compare tables.
- Dataset Cloud Export: send a dataset to cloud storage
- Spreadsheet to JSON: convert Excel and CSV files
FAQ
How is this different from dataset-filter-transform? This Actor joins two tables by key, compares two tables, matches similar column names, and can keep the last, the most complete or a combined duplicate. dataset-filter-transform has filter rules and field transformations instead.
Can I merge more than two datasets? Yes, add as many datasets and files as you need. In join and compare mode each table can also consist of several sources.
How does "only new items" work? A 12-byte hash of each delivered row's key is kept in the named key-value store. Up to 2 million keys are remembered. To start over, use another name.
Does it change my datasets? No. It only reads them and writes the result to the run's own dataset.
Who owns the example data? The Palmer penguins data is CC0 (Gorman et al., palmerpenguins). It is only used for the example.