Dataset Transform Pro: Merge, Filter, Dedupe, Only New Rows
Pricing
from $1.19 / 1,000 output rows
Dataset Transform Pro: Merge, Filter, Dedupe, Only New Rows
All-in-one data cleanup for Apify datasets and CSV, JSON, Excel or Google Sheets files: merge, filter, flatten and rename, exact or fuzzy dedupe, explode arrays, keep only rows new since the last run, sort, export CSV/XLSX/JSON. Empty input = free demo.
Pricing
from $1.19 / 1,000 output rows
Rating
0.0
(0)
Developer
Actor Factory
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Features
Share
Dataset Transform Pro merges your Apify datasets and CSV, JSON, Excel or Google Sheets files, then filters, flattens, renames, removes duplicates (exact or fuzzy), explodes arrays, keeps only rows that are new since the last run and sorts them — all in one run.
- One run instead of a chain: read and merge, filter, transform, dedupe, explode, only new, sort, max rows, write. No glue between five Actors.
- Any source: Apify datasets plus public file links (CSV, TSV, JSON, NDJSON, Excel XLSX, and Google Sheets links shared as "Anyone with the link").
- Only new rows: remembers what earlier runs wrote, so a scheduled scraper + this Actor gives you (and bills you for) only new listings, jobs or products.
- Fuzzy dedupe:
Acme Inc.=ACME, Inc,12 Main St.=12 Main Street,(555) 010-2000=+1 555 010 2000. - Download link: optional CSV, Excel XLSX or JSON file next to the dataset.
Price: $1.70 per 1,000 output rows. Only rows written to the output dataset are charged. Reading, filtering, and every row removed by a step are free.
Try it free: leave the input empty and press Start. The demo merges two small sample shop lists, drops the out-of-stock item and the duplicate, explodes the colors and sorts by price — 5 rows in seconds, not charged (rows carry _demo: true).
| sku | name | price | country | color | _source |
|---|---|---|---|---|---|
| TPT-04 | Glass Teapot | 31 | JP | clear | demo-shop-b |
| TPT-04 | Glass Teapot | 31 | JP | smoke | demo-shop-b |
| MUG-01 | Ceramic Mug | 12.5 | US | white | demo-shop-a |
| MUG-01 | Ceramic Mug | 12.5 | US | blue | demo-shop-a |
| SPN-03 | Teak Spoon | 6.9 | DE | natural | demo-shop-a |
(output of the free demo; the _demo column is left out here)
Need only flattening, column picking and a CSV of one dataset? The simpler Dataset Transform from the same developer does that for less ($0.65 per 1,000 rows). This Pro version adds merging datasets and files, Excel and Google Sheets input, dedupe, explode, only-new-rows memory and XLSX export.
How to use
- Add Datasets (the
defaultDatasetIdof your scraper runs, or a dataset URL) and/or File URLs. - Turn on the steps you need. Every step is optional; an empty step does nothing.
- Press Start. Rows go to the run's dataset; with Also save a file, the download link is in the
STATSrecord (fileUrl) and the status message names the file.
Step order
Steps always run in this order:
- Read and merge all datasets, then all files, in the order given (optional
_sourcecolumn) - Filter (
price > 100,country in US,CA,email is not empty…, all or any) - Transform: flatten nested JSON, convert types, keep / remove / rename columns
- Remove duplicates by columns, exact or fuzzy, keep the first or last row
- Explode one array column into one row per element
- Only new rows: drop rows written by earlier runs with the same state name
- Sort, then max output rows
- Write the dataset (charged per row) and the optional file
Column names: filters use the original names (nested: address.city). Keep / remove / rename / convert use the flattened names before renaming, as in Dataset Transform. Dedupe, explode, only new and sort use the output names (after renaming).
Examples
Merge two scraper runs and a CSV, one row per URL, Excel file:
{"datasetIds": ["WkzbQMuFYuamGv3YF", "Hx2Pq8ZfLmR4tN1aB"],"fileUrls": ["https://<your-public-host>/old-leads.csv"],"addSourceColumn": true,"dedupeBy": ["url"],"dedupeKeep": "last","exportFormat": "xlsx"}
Only new job postings since the last run (schedule it after your scraper):
{"datasetIds": ["WkzbQMuFYuamGv3YF"],"filters": ["location contains Berlin"],"select": ["title", "company.name", "url", "postedAt"],"rename": {"company.name": "company"},"onlyNew": true,"onlyNewFields": ["url"],"stateName": "jobs-berlin","sortBy": "postedAt","sortDesc": true}
Clean a lead list: keep rows with a phone, merge near-duplicate companies:
{"datasetIds": ["WkzbQMuFYuamGv3YF"],"filters": ["phone is not empty"],"rename": {"title": "company"},"dedupeBy": ["company", "address", "phone"],"dedupeMode": "fuzzy","exportFormat": "csv"}
One row per review from nested product data:
{"datasetIds": ["WkzbQMuFYuamGv3YF"],"select": ["title", "price", "reviews"],"coerce": {"price": "number"},"explodeField": "reviews"}
Each review becomes a row with reviews.text, reviews.rating … and the product's title and price copied.
A Google Sheet: paste its link (shared as "Anyone with the link can view") into File URLs; the tab in the link is read as CSV.
Output
- Dataset: the rows left after all steps. Download as CSV, Excel, JSON and more with Apify's export buttons or the API.
- File (optional):
<fileName>.csv,.xlsxor.jsonin the run's key-value store; the signed link isfileUrlinSTATS. - STATS (key-value store): what each step did, for example
{"rowsRead": 12034, "rowsFilteredOut": 9120, "duplicatesRemoved": 310, "rowsAfterExplode": 4022,"rowsSeenBefore": 3870, "rowsWritten": 152, "chargedRows": 152, "stoppedAtChargeLimit": false,"fileKey": "export.xlsx", "fileUrl": "https://api.apify.com/v2/key-value-stores/…/records/export.xlsx?signature=…"}
Only new rows: how the memory works
- Each run with Only rows not output before saves a short fingerprint of every row it wrote, in a key-value store named
dataset-transform-pro-statein your own Apify account (recordSEEN-<state name>). - A row is "the same" when the Columns that identify a row match (for example
url); with no columns, when the whole row matches (the_sourcecolumn is ignored). - The first run outputs everything. Rows not written (cut by max rows or by your maximum cost per run) are not remembered and count as new next time.
- Use a different State name for each scheduled job. Delete the record (or use a new name) to start over.
Pricing
| Event | Price |
|---|---|
| Output row (one row written to the output dataset after all steps) | $1.70 per 1,000 |
Reading, filtering, dedupe, explode bookkeeping and rows removed by any step are free; the demo is free; the file export costs nothing extra. Set Max output rows or a maximum cost per run to cap spend: the Actor stops cleanly at the limit, and if the limit is below the price of one row it stops before reading anything. On the Apify Free plan, the $5 of monthly platform credit covers about 3,800 output rows a month.
Limits (cannot be raised by input)
- 20 sources per run (datasets and files together); files up to 100 MB (JSON arrays up to 50 MB); Excel: first sheet only,
.xlsx(not old.xls) - 500,000 rows after filtering (all rows are held in memory for dedupe and sorting); add filters or split larger jobs
- 1,000,000 output rows per run (also after exploding), 1,000 columns per row, text cells cut at 32,000 characters
- Fuzzy dedupe: up to 200,000 rows
- Only new rows: the newest 300,000 fingerprints per state name are kept
- Files: up to 150 MB; Excel files up to 1,048,575 rows (the dataset always has every row)
- Only public file links (no logins, no API keys); internal network addresses are blocked
FAQ
Does it change my datasets? No. It only reads them and writes a new dataset.
Why are my CSV numbers text? CSV cells are text. Sorting already treats number-like text as numbers; to get real numbers in the output add {"price": "number"} to Convert column types.
How does fuzzy dedupe decide? Each column is compared by its name: name/company/title ignore legal forms (Inc, LLC, GmbH, 株式会社) and punctuation; address expands street abbreviations; phone compares digits; url/website/email compare the domain; anything else is plain fuzzy text. With two or more columns, at least two must agree (or a phone or URL). Raise or lower Fuzzy match threshold (default 0.9) to be stricter or looser.
Which row is kept from duplicates? The first by default (sources are read in the order given), or the last with Keep: last.
Is the file link private? Anyone holding the signed link can download the file; it gives no access to anything else in your account.
What does it cost in practice? A run that reads 50,000 rows and writes 2,000 new ones costs $2.60. Rows that are filtered out, duplicated or seen before cost nothing.
Use it from the API, Make, n8n or an AI agent (MCP)
Run it and get the output rows back in one HTTP call (replace <YOUR_TOKEN> with your Apify API token):
curl -X POST "https://api.apify.com/v2/acts/ucchiii~dataset-transform-pro/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \-H "Content-Type: application/json" \-d '{"datasetIds": ["WkzbQMuFYuamGv3YF"], "filters": ["rating >= 4.5"], "dedupeBy": ["url"], "onlyNew": true, "onlyNewFields": ["url"], "maxRows": 500}'
The response holds the rows; the file link is in the run's STATS record (fileUrl).
- Make, n8n, Zapier: use the Apify app / node, pick this Actor and pass the same JSON input. Schedule it after your scraper with "Only new rows" for a feed of new items.
- AI agents (Claude, Cursor and other MCP clients): add
https://mcp.apify.com?tools=ucchiii/dataset-transform-proto your MCP settings.
If this Actor saved you time, a rating on the Store helps others find it.
More tools from the same developer
- Dataset Transform — flatten, filter, rename and convert any Apify dataset, export CSV / JSON / JSONL with a link
- Filter CSV, JSON or Dataset Rows by Condition — keep only the rows of a CSV, JSON file or dataset that match simple conditions like country = US or price > 100
- Merge Datasets — combine several datasets or CSV/JSON files into one, with columns aligned
- Remove Duplicates — merge Apify datasets and remove duplicates by the fields you choose
- Dataset Change Detector — compare two runs of any scraper: only added, removed and changed items