Dataset Merge, Dedupe & Transform - CSV, JSON, XLSX
Pricing
$0.50 / 1,000 items output
Dataset Merge, Dedupe & Transform - CSV, JSON, XLSX
Merge Apify datasets, CSV and JSON files, remove duplicates by chosen fields, filter and rename columns, keep only new items, export CSV or XLSX.
Pricing
$0.50 / 1,000 items output
Rating
0.0
(0)
Developer
Rinveta
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Dataset Merge, Dedupe & Transform – CSV, JSON, XLSX
Combine any number of Apify datasets, CSV files and JSON files into one clean dataset. Remove duplicates by the fields you choose, filter rows, pick and rename columns, and – the part most tools skip – return only the items you have not seen in a previous run. Export the result as dataset, CSV or Excel (XLSX).
No browser, no scraping: it only reads the datasets and file URLs you provide. Pay only for items that end up in the output.
What can you do with it?
- Merge scraper results from several runs or several Actors into a single dataset.
- Deduplicate by key (
url,email,sku,address.city+name…), case- and whitespace-insensitive, or compare whole items. - Keep the best duplicate: first seen, last seen, or the one with the most filled-in fields.
- Monitor for new items on a schedule: "only new items" mode remembers what was already delivered (state lives in a named key-value store in your account).
- Filter (
eq,contains,gte,regex,in,exists…), select columns, rename columns, flatten nested objects, sort. - Export CSV and XLSX next to the dataset, ready for spreadsheets and BI tools.
Use cases
1. Scraper → dedupe → only-new (the daily leads / price-drop / new-listing feed). Run any scraper on a schedule, then run this Actor on the scraper's dataset with onlyNewItems: true. Every run delivers only the items you have never received before, so downstream steps (spreadsheet, CRM, email, Slack, webhook) see no repeats. Chain it with an Apify Schedule or an integration that starts this Actor when the scraper run succeeds, and use datasetIds with the scraper's default dataset ID.
2. Merge several scraper runs into one clean dataset. Same Actor run for several cities, keywords or days? List all the datasets in datasetIds, dedupe on url (or sku, email, id) and keep the most complete record.
3. CSV to XLSX converter with cleanup. Point sourceUrls at one or more CSV/TSV/JSON files, drop duplicate rows, rename columns, and download a ready-to-open OUTPUT.xlsx (and OUTPUT.csv) from the key-value store.
4. Clean a product or lead list before import. Filter out rows you do not need, keep only the columns your CRM or shop expects, and export one file.
5. Compare today with yesterday. Run with updateState: false as a dry run to see what would be new, without changing the saved state.
Features at a glance
| Feature | This Actor |
|---|---|
| Merge several Apify datasets | ✅ |
| Merge CSV / TSV / JSON / JSON Lines by URL (auto-detected) | ✅ |
| Dedupe by chosen fields, dot-notation for nested fields | ✅ |
| Case / whitespace-insensitive matching | ✅ (on by default, switchable) |
| Keep first / last / most complete duplicate | ✅ |
| Only new items between runs (persistent state) | ✅ |
| Filters (12 operators, all/any) | ✅ |
| Select, order and rename columns, flatten, sort | ✅ |
| Source tracking column | ✅ |
| CSV and XLSX export | ✅ |
| Per-source report (read / filtered / duplicates / errors) | ✅ |
| Pricing | Pay per output item |
Typical single-purpose tools cover one or two of these rows (for example dedupe only, or merge only). This Actor is meant to be the one step between your scrapers and your spreadsheet, CRM or alerting.
Input
| Field | Description |
|---|---|
datasetIds | Dataset IDs or names to merge (order matters for "keep first"). |
sourceUrls | Public CSV / TSV / JSON / JSONL URLs. Format detected automatically; jsonPath for nested lists, csvDelimiter to force a delimiter. |
dedupeFields | Fields that define a duplicate. Empty = whole item. |
keepStrategy | first, last, mostComplete. |
onlyNewItems, stateKey, updateState | Return only never-seen items; separate memory per stateKey; updateState: false = dry run. |
filters, filterMode | List of {field, op, value}; all or any. |
includeFields, excludeFields, renameFields, flattenNested, trimStrings, sortBy, sortOrder | Reshape the output. |
addSourceField | Adds _source and _sourceIndex. |
exportFormats | csv, xlsx → OUTPUT.csv / OUTPUT.xlsx in the key-value store. |
maxItems, maxItemsPerSource, maxFileSizeMB | Safety limits. |
Order of operations: read → flatten/trim → filter → dedupe → "only new" check → sort → select/rename → output. Dedupe and filters use the original field names; renaming happens last.
Example – merge two files and keep one row per symbol:
{"sourceUrls": [{ "url": "https://raw.githubusercontent.com/datasets/s-and-p-500-companies/main/data/constituents.csv" },{ "url": "https://raw.githubusercontent.com/datasets/nasdaq-listings/main/data/nasdaq-listed.csv" }],"dedupeFields": ["Symbol"],"addSourceField": true,"exportFormats": ["csv", "xlsx"]}
Example – daily "what's new" feed from a scraper's dataset:
{ "datasetIds": ["my-scraper-results"], "dedupeFields": ["url"], "onlyNewItems": true, "stateKey": "daily-leads" }
Output
One dataset item per kept row (your fields, in your column order). The key-value store OUTPUT record has the run report:
{ "read": 6121, "filteredOut": 0, "duplicatesRemoved": 158, "alreadySeen": 0, "output": 5963,"sources": [ { "source": "https://…/constituents.csv", "read": 503, "filteredOut": 0, "duplicates": 0, "error": null } ] }
A source that fails (404, bad file) is reported and skipped; the run continues with the others.
Pricing
Pay per event: $0.0005 per output item (event item-output) – 10,000 clean items cost $5. Items that are filtered out, duplicates and already-seen items are free. Platform usage is included for normal-sized runs.
FAQ
How do I remove duplicates from an Apify dataset? Put the dataset ID in datasetIds, list the fields that identify a duplicate in dedupeFields (for example url), choose keepStrategy and run. The result is a new dataset; your original dataset is not modified.
How do I get only new items from a scheduled scraper? Set onlyNewItems: true and a fixed stateKey. The first run returns everything and remembers it; the next runs return only unseen items. Use a different stateKey per feed.
Can I merge datasets from different Actors? Yes. Items do not need the same fields; use renameFields to align column names (for example link → url), then dedupe on the common field.
How do I convert CSV to XLSX? Provide the CSV URL in sourceUrls and set exportFormats to ["xlsx"]. Download OUTPUT.xlsx from the run's key-value store.
Is the "seen" state private? Yes, it is kept in a named key-value store in your own Apify account.
What happens if one source fails? It is reported in the run report (sources[].error) and skipped; the other sources are processed.
What am I charged for? Only the items in the final output ($0.0005 each). Filtered-out rows, duplicates and already-seen items are free.
Tips and limits
- Memory grows with the number of unique items (all kept rows are held in memory to dedupe). Around 100,000 average-size items run comfortably in 1–2 GB; raise the Actor memory for millions.
- XLSX is limited by Excel to about one million rows; CSV and the dataset have no such limit.
- "Only new items" state is keyed on the dedupe key. If you change
dedupeFields, use a newstateKey. - Items removed by filters are not remembered: they count as new if you later relax the filters.
- URLs must be public http(s); private/internal addresses are blocked.
- Uses only data you provide; no personal-data collection is performed by this Actor. You are responsible for the lawful use of the data you process.
Related Actors
More Actors by Rinveta for data pipelines:
- Image Compressor & Converter: batch conversion and compression of images to WebP, AVIF, JPEG or PNG.
- PDF to Text & Markdown for RAG: per-page text, Markdown and page-cited chunks from PDFs.
Related searches: merge datasets, combine datasets, dedupe dataset, remove duplicates, deduplicate JSON, only new items, incremental scraping, csv to xlsx, csv merge, json to csv, data cleaning.