1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "inputRecords": [
12 {
13 "name": " Alice M. Johnson ",
14 "company": "Apex Global Solutions Inc.",
15 "email": "alice.j@apex-global.io",
16 "phone": "+1 (415) 555-0138",
17 "website": "https://apex-global.io",
18 "country": "US"
19 },
20 {
21 "name": "Bob Smith",
22 "company": "Fake disposable test",
23 "email": "bob9921@mailinator.com",
24 "phone": "+44 20 7946 0912",
25 "website": "http://broken-site-992384723.org",
26 "country": "GB"
27 },
28 {
29 "name": "Alice Johnson",
30 "company": "Apex Global Solutions",
31 "email": "ALICE.J@apex-global.io",
32 "phone": "4155550138",
33 "website": "apex-global.io",
34 "country": "US"
35 }
36 ]
37};
38
39
40const run = await client.actor("as33/email-verifier-phone-lead-data-validator-datatrust-ai").call(input);
41
42
43console.log('Results from dataset');
44console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
45const { items } = await client.dataset(run.defaultDatasetId).listItems();
46items.forEach((item) => {
47 console.dir(item);
48});
49
50