Merge & Dedup Datasets: Combine Runs, Remove Duplicates
Pricing
from $0.07 / 1,000 rows
Merge & Dedup Datasets: Combine Runs, Remove Duplicates
Merge Apify datasets and JSON, JSON Lines or CSV files into one clean dataset and remove duplicate rows by any fields (nested too), case- and space-insensitive. Keep the first or last copy, or list only the duplicates. Pay only per row delivered.
Pricing
from $0.07 / 1,000 rows
Rating
0.0
(0)
Developer
Keel Data
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
9 days ago
Last modified
Categories
Features
Share
Merge the results of several scraper runs (or JSON and CSV files) into one clean dataset and remove duplicate rows. Choose the fields that make a row unique, such as url or name + address, and keep the first or the newest copy.
You pay only per row delivered. Duplicates removed, empty rows and sources that can't be read are free.
Why this one
- Works with limited permissions. Pick your datasets with the dataset picker and the run can read them. You don't need to grant full account access, and runs don't fail on permissions.
- Smart matching.
"ACME Inc "and"acme inc"count as the same by default. Nested fields (location.city), arrays and objects are compared by value. - Keep first or last. "Last" keeps the newest copy, which helps when later runs have fresher prices or ratings.
- Check before you delete. The "Only the duplicates" output shows exactly what would be removed.
- Files too. Public JSON, JSON Lines, CSV and TSV links (up to 300 MB each) are merged together with your datasets.
- Big datasets. Reads in pages and stores only a short fingerprint per row, so millions of rows fit in normal memory. If Apify moves the run to another server, it carries on where it stopped and never charges a row twice.
- No code needed. Keep or drop fields with simple lists instead of JavaScript functions.
How to use it
- Pick one or more datasets (for example the last 7 runs of a scraper) and/or paste file URLs.
- Under Fields that make a row unique, enter field names such as
url. Leave the list empty to remove only rows that are identical in every field. - Choose First copy or Last copy, then run. Download the result as JSON, CSV or Excel, or send it on to Google Sheets, Make, Zapier or n8n.
Example input
{"datasetIds": ["aBcDeFgHiJkLmNoPq", "QrStUvWxYzAbCdEfG"],"dedupFields": ["placeId"],"keep": "last","fieldsToOmit": ["html", "debug"],"addSource": true}
Example output
Your own rows, unchanged apart from the fields you keep or remove. With Add the source switched on, each row also gets _source (the dataset ID or file URL it came from).
The Run stats record (RUN_STATS) shows, for each source, how many rows were read and kept, how many were duplicates, how many had empty key fields, and any read errors.
Options
| Option | What it does |
|---|---|
| Datasets to merge | Datasets from your account, merged in this order. IDs, names and dataset URLs also work. |
| Files to merge | Public JSON / JSON Lines / CSV / TSV links, merged after the datasets. |
| Remove duplicates | Turn off to only merge. |
| Fields that make a row unique | One or more fields; dots for nested fields. Empty = whole-row comparison. |
| Which copy to keep | First (earliest source) or last (newest). |
| Output | Unique rows, or only the duplicates. |
| Ignore case / extra spaces | On by default. |
| Rows with an empty key field | Keep them all, drop them, or compare them like other rows. |
| Keep only / remove these fields | Shape the output without code. |
| Max rows read per source / delivered | Limits for testing or sampling. |
Pricing
Pay per event: one row event per row delivered. No start fee and no extra platform-usage charge. You can set a maximum cost per run; the Actor stops cleanly when it's reached.
Notes
- Only datasets your account can access can be read. The Actor never changes or deletes your source datasets.
- Not affiliated with any of the websites your data comes from.
Made by Keel Data: data tools that don't break.