Merge, Dedupe & Transform Datasets
Pricing
from $0.03 / 1,000 output items
Merge, Dedupe & Transform Datasets
Merge any number of Apify datasets, remove duplicates by your own fields (exact, normalised or fuzzy), keep the first, last or most complete copy, filter and reshape items. Streams page by page, so millions of items work.
Pricing
from $0.03 / 1,000 output items
Rating
0.0
(0)
Developer
Solid Actors
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
11 days ago
Last modified
Categories
Features
Share
Merge any number of Apify datasets into one clean dataset. Remove duplicates by the fields you choose, with exact, normalised or fuzzy matching. Keep the first, the last or the most complete copy. Filter, keep, drop and rename fields on the way. Datasets are streamed page by page, so a few hundred items or several million behave the same.
What it does
- Merge several datasets in the order you give (for example the outputs of 10 scraper runs).
- Dedupe by your key:
url,email,name + city, nested fields likeaddress.city, or the whole item. - Choose the survivor:
firstfound,lastfound (newest data wins), ormostComplete(the copy with the most filled-in fields). - Normalise before comparing: ignore case, accents, extra spaces; normalise URLs (http/https,
www., trailing slash,#anchor,utm_and click-id parameters); digits only (phone numbers). - Fuzzy matching on a text field, for example company names
Acme IncvsACME, Inc., with a similarity threshold and optional blocking fields (only compare items in the same city or country). - Filter without code:
{"field": "price", "op": "gt", "value": 10}. Ops:eq,ne,contains,notContains,gt,gte,lt,lte,exists,notExists,regex,in. - Reshape: keep only some fields, drop fields, rename fields, add the source dataset ID.
- Output to the run's dataset, a named dataset, or append to an existing dataset.
Why this one
- It finishes. Items are read in pages (10,000 by default) and only a 16-byte fingerprint per key stays in memory, so large merges do not run out of memory.
- Permissions handled. The dataset fields use Apify's dataset picker, which grants this run read access to exactly the datasets you choose. No "insufficient permissions" failures, no need to give the Actor full access to your account.
- Clear summary. Items read, kept, duplicates removed (exact and fuzzy), filtered out, and the same per dataset, in the
SUMMARYrecord.
Input example
{"datasetIds": ["aBcD1234efgh", "XyZ987654321"],"dedupFields": ["url"],"normalizeUrls": true,"keepWhich": "mostComplete","filters": [{ "field": "price", "op": "gt", "value": 0 }],"fieldsToDrop": ["debug"],"renameMap": { "title": "name" },"addSourceDatasetId": true}
Fuzzy company names inside each city:
{"datasetIds": ["aBcD1234efgh"],"dedupFields": ["website"],"normalizeUrls": true,"fuzzyField": "name","fuzzyThreshold": 88,"fuzzyBlockFields": ["city"]}
Output example
The merged items, with your fields as they were (after keep, drop and rename):
{ "url": "https://beta.pt", "name": "Beta, Lda", "city": "Porto", "price": 6, "rating": 4.5, "_sourceDatasetId": "XyZ987654321" }
And a SUMMARY record:
{"status": "ok","inputItems": 60000,"outputItems": 50000,"duplicatesRemoved": 10000,"fuzzyDuplicatesRemoved": 0,"filteredOut": 0,"perDataset": { "O68e8nGfTMr8gBp9M": { "read": 60000, "filteredOut": 0, "output": 50000 } },"durationSec": 41.2}
Pricing
Try it free: start a run with no dataset picked and the Actor dedupes a built-in sample of 5 items (3 come out). Nothing is charged for the sample apart from the small start fee.
Pay per event: a small fee per run, $0.03 per 1,000 items written to the output and $0.002 per 1,000 items read. Duplicates and filtered items only count as read. Example: 60,000 items in, 50,000 unique out costs about $1.62. Set a maximum cost per run in the run options for a hard cap.
Limits
keepWhich=lastormostCompletereads the input twice (to find the winner first, then write in the original order).firstreads it once.- Memory: about 100 bytes per unique key for
first, about 250 bytes forlastandmostComplete. 1 GB handles several million unique keys. - Fuzzy matching compares each item with up to 5,000 earlier items in its block (same block fields and same first letters). Use blocking fields for big datasets; fuzzy works with
keepWhich=first. - Filters are simple field rules, not code; there is no JavaScript transform function.
Questions and issues
Open an issue on the Actor page with the run ID.