Merge & Deduplicate Datasets — Apify Datasets, CSV & JSON Files avatar

Merge & Deduplicate Datasets — Apify Datasets, CSV & JSON Files

Under maintenance

Pricing

$0.30 / 1,000 output rows

Go to Apify Store
Merge & Deduplicate Datasets — Apify Datasets, CSV & JSON Files

Merge & Deduplicate Datasets — Apify Datasets, CSV & JSON Files

Under maintenance

Merge several Apify datasets and CSV/JSON/JSONL files into one clean dataset: remove duplicates on any fields (case, spaces, accents, URL normalization), filter rows, pick, drop and rename fields. Duplicates and filtered rows are free. Pay per output row.

Pricing

$0.30 / 1,000 output rows

Rating

0.0

(0)

Developer

Mahé Perrin

Mahé Perrin

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

Ran the same scraper on ten search queries and got overlapping results? Collected leads from several sources? This Actor merges any number of Apify datasets and CSV/JSON files into one clean dataset, removes duplicates on the fields you choose, filters rows and reshapes columns, in one run. Duplicates and filtered rows are free: you only pay for the rows you get.

Features

  • Sources: Apify datasets (pick them or paste IDs), plus public links to CSV, TSV, JSON or JSONL files (Google Sheets CSV export, S3, GitHub raw...). CSV delimiter, BOM and Windows-1252 encoding detected automatically.
  • Deduplication on any fields, including nested ones (address.city), or on whole rows. Smart comparison: ignore case, extra spaces, accents, and http/https, www. and trailing slashes in URLs.
  • Keep the first or the last occurrence (oldest or newest data wins).
  • Filters: equals, contains, starts/ends with, greater/less than (numbers and dates), exists, empty, regex. All filters must match.
  • Reshape: keep only some fields (in your order, flattening nested values), drop fields, rename fields.
  • Traceability: optional _source column, and a per-source summary (rows read, duplicates, filtered, errors) saved as SUMMARY.

What it is for

  • Combine scraper runs: Google Maps, LinkedIn, e-commerce or job scrapers run per keyword or city, then one deduplicated list.
  • Lead lists: merge exports from several tools and remove duplicate emails, phones or domains.
  • Incremental pipelines: merge yesterday's and today's data and keep the newest version of each item.
  • Clean before export: filter and rename columns before sending to Google Sheets, a CRM or a database.
  • Automation: chain it after other Actors with Apify integrations, Make, Zapier or n8n.

Input example

{
"datasetIds": ["<dataset-id-1>", "<dataset-id-2>"],
"fileUrls": ["https://example.com/exports/leads.csv"],
"dedupFields": ["email"],
"ignoreCase": true,
"filters": [{ "field": "rating", "operator": "gte", "value": 4 }],
"fields": ["name", "email", "address.city", "rating"],
"renameFields": { "address.city": "city" },
"addSourceField": true
}
  • datasetIds, fileUrls — sources, read in this order.
  • dedupFields, ignoreCase, normalizeWhitespace, ignoreAccents, normalizeUrls, skipEmptyKeys, keepDuplicate — duplicate detection.
  • filters — { field, operator, value } objects.
  • fields, omitFields, renameFields, addSourceField — output shape.
  • maxItems — stop condition, you control the cost.

Output example

One row per kept item, with your fields:

{
"name": "Blue Bottle Coffee",
"email": "hello@example.com",
"city": "Oakland",
"rating": 4.6,
"_source": "<dataset-id-1>"
}

The run's status message gives the totals, e.g. 1201 rows delivered from 1205 read (4 duplicates, 0 filtered out, both free).

Good to know

  • Datasets are read with the permissions of the run: your own datasets, and datasets shared with you or with public access. A source that cannot be read is listed with its error in SUMMARY; the other sources are still merged.
  • File links are fetched with a plain HTTP request identifying the Actor (OpenRegistry-DatasetMerge), respecting robots.txt.
  • CSV values are typed carefully: true/false and plain numbers become booleans and numbers, but codes with leading zeros (01234) stay text.
  • Output rows keep the order of the sources. With keepDuplicate: "last", each row stays at the position where it was first seen, with the newest values.

Pricing

$0.0003 per output row ($0.30 per 1,000 rows). Duplicates and filtered-out rows are free. Set a maximum charge per run in the Apify console and the Actor stops cleanly when it is reached.