1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "rows": [
12 {
13 "name": " maria LOPEZ ",
14 "email": "Maria.Lopez@Example.com ",
15 "phone": "(503) 555-0142",
16 "company": "harbor lane boutique",
17 "city": "portland",
18 "signup date": "2026-01-15"
19 },
20 {
21 "name": "Lopez, Maria",
22 "email": "maria.lopez@example.com",
23 "phone": "503.555.0142",
24 "company": "Harbor Lane Boutique",
25 "city": "Portland",
26 "signup date": "01/15/2026"
27 },
28 {
29 "name": "Bob Chen",
30 "email": "",
31 "phone": "312-555-0199",
32 "company": "Blue Heron Logistics",
33 "city": "Chicago",
34 "signup date": "Feb 21 2026"
35 },
36 {
37 "name": "Robert Chen",
38 "email": "mailto:RChen@Example.com",
39 "phone": "(312) 555-0199 ext 204",
40 "company": "BLUE HERON LOGISTICS",
41 "city": "Chicago",
42 "signup date": "2026-02-20"
43 },
44 {
45 "name": "Dr. Priya Raman",
46 "email": "priya.raman@@example.org",
47 "phone": "+44 20 7946 0958",
48 "company": "Copperline Studio",
49 "city": "London",
50 "signup date": "14/03/2026"
51 },
52 {
53 "name": "Samantha Reed",
54 "email": "samantha.reed@example",
55 "phone": "555-0134",
56 "company": "Lakeshore Print Co.",
57 "city": "Cleveland",
58 "signup date": "2026-13-01"
59 }
60 ]
61};
62
63
64const run = await client.actor("vantoannguyen/contact-list-cleaner").call(input);
65
66
67console.log('Results from dataset');
68console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
69const { items } = await client.dataset(run.defaultDatasetId).listItems();
70items.forEach((item) => {
71 console.dir(item);
72});
73
74