Data · API · MCP · Apify

Clean data

Fixes messy spreadsheets and merges duplicate rows.

BeforeAfter
bob@gmial.combob@gmail.com
(374)311 1047+1 374-311-1047
05/03/192019-05-03
MCDONALD, RONRon McDonald
n/a(empty)

Built in

  • Merges up to 20 sources into one table first, so it finds duplicates across them; columns match even when the headers differ
  • Rows it isn't sure about go to a review list instead of being guessed
  • Rules and import templates check every clean record against your columns
  • Scheduled runs can return only new or changed rows
  • Every run returns a recipe that cleans the next file the same way

Sample

A real call to the live API, stored as it came back on 2026-11-23. Lists are cut to a few items in the JSON view.

Request{"url": "https://patchwell.io/samples/customers_messy.csv"}

352 rows in, 301 clean records out: 45 duplicates merged, 1,429 values fixed, 6 blank rows removed.

Customer NameE-mailPhone #StateSignup DateTotal Spend
Renée Leerene.lee101@example.com(374) 311-1047CO2019-05-031418.84
Noah Wilsonnoah.wilson212@example.com(390) 631-1561 x12WA2021-01-142274.0
Linda O'Brienlinda.obrien20@example.com(692) 695-6109CO2019-03-043003.7
Chloe Garcíachloe.garca3@example.com(497) 629-3363NY2023-02-191247.8
Maria Kowalskimaria.kowalski249@example.com(856) 216-8243NY2025-09-112052.92
Thomas Youngthomas.young234@example.com(461) 238-6551NY2020-03-13352.95
James Smithjames.smith216@example.com(291) 423-2988TX2020-08-011116.3
Ava Clarkava.clark189@example.com(602) 673-4473FL2020-03-25294.2

What you get back

  • Clean rows
  • Review list (invalid values, conflicts, likely duplicates with a confidence, shared emails kept apart, totals rows)
  • Per-value change log
  • Detected columns with evidence
  • Value clusters
  • Data quality before and after
  • JSON Schema
  • A replayable recipe

Call it

Send url of a CSV / XLSX / JSON file.

curl https://patchwell.io/v1/clean_data \
  -H "Authorization: Bearer $PATCHWELL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://patchwell.io/samples/customers_messy.csv"}'

Measured quality

  • Finds 88% of duplicate people in files it never saw (239 real duplicate pairs); 97% of the pairs it flags are real duplicates, with 0 wrong merges on these files.
  • Finds 84% of duplicate companies in files it never saw (282 real duplicate pairs); 97% of the pairs it flags are real duplicates, with 0 wrong merges on these files.

Re-measured on every deploy (it's free to run). Measured 2026-11-22.

How we measure, and what it doesn't cover