1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "leads": [
12 {
13 "name": "Sarah Chen",
14 "email": "sarah.chen@acmecorp.com",
15 "phone": "+1-415-555-0182",
16 "company": "Acme Corp",
17 "title": "VP of Sales",
18 "domain": "acmecorp.com"
19 },
20 {
21 "name": "Bob Smith",
22 "email": "bob@mailinator.com",
23 "phone": "5550199",
24 "company": "Unknown Co",
25 "title": "",
26 "domain": ""
27 },
28 {
29 "name": "Maria Lopez",
30 "email": "m.lopez@betasoft.io",
31 "phone": "+44 20 7946 0958",
32 "company": "BetaSoft",
33 "title": "CTO",
34 "domain": "betasoft.io"
35 }
36 ]
37};
38
39
40const run = await client.actor("ryanclinton/enrichment-quality-auditor").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