1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "csvText": """Customer ID;Full Name;Email;Phone;Joined;Spend;Notes
9C1; Jane Doe ;JANE@Example.COM;(212) 555-0101;01/15/2026;$1,250.00;
10C2;John Roe;john@example.com;212.555.0102;2026-02-03;$80;vip
11C2;John Roe;john@example.com;212.555.0102;2026-02-03;$80;vip
12C3;Bad Mail;bad@;555;13/45/2026;abc;
13C4;No Phone;n@example.com;;2026/03/01;(20.50);N/A
14""" }
15
16
17run = client.actor("cleancellco/csv-data-cleaner-profiler").call(run_input=run_input)
18
19
20print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
21for item in client.dataset(run.default_dataset_id).iterate_items():
22 print(item)
23
24