Dataset Toolkit: Merge, Dedupe, Diff & Export to Excel/CSV avatar

Dataset Toolkit: Merge, Dedupe, Diff & Export to Excel/CSV

Pricing

from $0.30 / 1,000 output rows

Go to Apify Store
Dataset Toolkit: Merge, Dedupe, Diff & Export to Excel/CSV

Dataset Toolkit: Merge, Dedupe, Diff & Export to Excel/CSV

Merge or join Apify datasets and CSV/JSON/Excel files, deduplicate, filter, rename fields, normalize emails, phones (E.164) and URLs, compare with a previous run (added / changed / removed) and export to XLSX, CSV, JSONL or JSON.

Pricing

from $0.30 / 1,000 output rows

Rating

0.0

(0)

Developer

Julian Genuario

Julian Genuario

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 days ago

Last modified

Features

Limited permissions

Share

The Swiss army knife for the data your Actors produce. Take one or more Apify datasets and/or CSV, TSV, JSON, JSONL or Excel files and in one run:

  1. Append or join them (like VLOOKUP / SQL left join on key fields).
  2. Rename, select or drop fields (nested fields with dot notation).
  3. Normalize emails, phone numbers (E.164 with libphonenumber), URLs (https, lower-case host, no utm/gclid/fbclid, no trailing slash) and text.
  4. Filter with simple conditions (equals, contains, empty, greater than, in list, regex...).
  5. Deduplicate by one or several fields: keep first, last, most complete, or merge duplicates into one row.
  6. Diff against a previous run: every row tagged added, changed (with the changed fields and their old values) or removed. Perfect for "what is new since yesterday" on any scraper.
  7. Sort and export to XLSX, CSV (comma/semicolon/tab), JSONL or JSON, plus the cleaned rows in the dataset.

What does Dataset Toolkit do?

Dataset Toolkit merges and joins Apify datasets and CSV, JSON or Excel files, removes duplicates, filters rows, renames fields, normalizes emails, phone numbers (E.164) and URLs, compares with a previous run (added / changed / removed) and exports to XLSX, CSV, JSONL or JSON.

How to use Dataset Toolkit

  1. Click Try for free on this page (a free Apify account is enough to start).
  2. Fill in the input (see the examples below) or keep the prefilled example.
  3. Click Start and wait for the run to finish.
  4. Download the results from the Output tab as JSON, CSV, Excel or HTML, or read them with the Apify API.
  5. Optional: create a Schedule to run it daily or weekly, and connect a webhook or an integration (Make, Zapier, n8n, Slack).

Who uses it

  • Apify users who chain Actors: clean and merge the output of several scrapers before sending it to a CRM or a sheet.
  • Lead generation: dedupe leads by email or domain, normalize phones, join enrichment data.
  • Price and catalog monitoring: diff today's scrape against yesterday's and keep only the changes.
  • Analysts: convert JSON datasets to a clean Excel file with frozen headers and filters.

Input example: clean and dedupe leads, keep only what changed

{
"datasetIds": ["aBcD1234EfGh5678i"],
"fileUrls": ["https://docs.google.com/spreadsheets/d/<id>/edit#gid=0"],
"normalizeEmails": ["email"],
"normalizePhones": ["phone"],
"phoneCountry": "US",
"normalizeUrls": ["website"],
"filters": [{ "field": "email", "op": "notEmpty" }],
"dedupeFields": ["email"],
"dedupeKeep": "merge",
"diffDatasetId": "PrEvIoUsRuNdAtAsEt",
"diffKeys": ["email"],
"diffIgnoreFields": ["scrapedAt"],
"outputFormats": ["xlsx", "csv"],
"fileName": "leads-clean"
}

Output

Each output row is your record after the operations, plus helper fields when they apply:

{
"company": "Acme",
"email": "sales@acme.com",
"phone": "+12025550143",
"website": "https://www.acme.com",
"_diff": "changed",
"_diffChangedFields": ["employees"],
"_diffPrevious": { "employees": 40 },
"_invalidFields": ["phone"]
}
  • _diff, _diffChangedFields, _diffPrevious: only when you compare with a previous version.
  • _invalidFields: values that could not be normalized (kept, emptied or row removed, as you choose).
  • _source: the dataset / file a row came from (optional).

Export files are saved in the run's key-value store; their download links are in RUN_SUMMARY (Output tab), with counts of duplicates, filtered rows, invalid values and diff results.

Pricing

Pay per event:

  • USD 0.30 per 1,000 output rows (row): rows that end up in the result (dataset and/or files). Filtered-out rows and removed duplicates are free.
  • USD 0.01 per export file (file).
  • Start: USD 0.00005.

Cleaning 10,000 rows and exporting an Excel file costs about USD 3.01. The Actor never outputs more rows than your max charge per run allows.

Notes and limits

  • Up to 2,000,000 rows read per run (default 500,000; use more memory for very large data, roughly 1 GB per 300,000 average rows).
  • Files up to 100 MB each; Excel files keep up to 1,048,575 rows (Excel's own limit; CSV/JSONL keep all).
  • CSV delimiter and encoding (UTF-8, with or without BOM) are detected; the first row must be the header.
  • Phone normalization needs a default country for numbers written without +country.
  • Diff compares field values exactly after normalization; use "Ignore these fields" for timestamps.

Cost examples

Prices at the current pay-per-event rate: USD 0.00005 per run, USD 0.30 per 1,000 output rows and USD 0.01 per export file (filtered-out rows and removed duplicates are free). You can set a maximum charge per run in the run options.

JobApproximate cost
Test run: 249-row CSV to Excel (measured: 249 rows + 1 XLSX file, 5 s)about $0.085
Merge 3 lead lists, 1,000 rows left after dedupe, Excel + CSVabout $0.32
Clean 10,000 rows and export an Excel fileabout $3.01
Weekly diff that outputs only ~200 changed rowsabout $0.07 per run

Use it from your code, an integration or an AI agent

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("latamdatatools/dataset-toolkit").call(run_input={
"datasetIds": [
"<DATASET_ID>"
],
"normalizeEmails": [
"email"
],
"dedupeFields": [
"email"
],
"dedupeKeep": "merge",
"outputFormats": [
"xlsx"
]
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

JavaScript / Node.js (npm install apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('latamdatatools/dataset-toolkit').call({
datasetIds: [
'<DATASET_ID>'
],
normalizeEmails: [
'email'
],
dedupeFields: [
'email'
],
dedupeKeep: 'merge',
outputFormats: [
'xlsx'
]
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]);

No code:

  • Schedules: save your input as a Task and run it after each scraping run or weekly from Apify Console (Schedules).
  • Integrations: send the results to Google Sheets, Slack, email, Make, Zapier, n8n or Airbyte from the Integrations tab, or call your own webhook when a run finishes.
  • AI agents: add it as a tool in Claude, Cursor, VS Code and other MCP clients through the Apify MCP server (https://mcp.apify.com), so the agent can merge, clean and export the results of other Actors.

FAQ

Can I call it from my own code or from an AI agent? Yes. Start runs and fetch results with the Apify API or the JavaScript / Python clients, or use it as a tool from Claude, Cursor and other MCP clients through the Apify MCP server (mcp.apify.com).

Can I run it automatically? Yes. Create a Schedule in Apify Console (for example every morning) and add a webhook or an integration to get the results where you need them.

Which export formats are available? JSON, JSONL, CSV, Excel (XLSX), XML, RSS and HTML table, from the Output tab or the API.

What does it cost? See the Pricing section above. You only pay for the events listed there.

Changelog

  • 0.1 (2026-10): first version.