1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "icpDescription": "Founders and heads of growth at B2B SaaS companies with 10-200 employees that sell to marketing teams",
12 "maxDiscoveryChargeUsd": 0.5,
13 "sourceMode": "list",
14 "itemsList": [
15 {
16 "email": "maya.chen@northwind-analytics.io",
17 "status": "valid",
18 "score": 96,
19 "smtp_valid": true,
20 "is_catch_all": false,
21 "is_disposable": false,
22 "is_role_based": false,
23 "is_free_provider": false,
24 "risk_type": null,
25 "syntax_valid": true,
26 "domain_exists": true,
27 "mx_found": true,
28 "reason": "Mailbox accepted",
29 "verified_at": "2026-10-03T09:12:41Z",
30 "name": "Maya Chen",
31 "title": "Head of Growth",
32 "company": "Northwind Analytics",
33 "website": "https://northwind-analytics.io"
34 },
35 {
36 "email": "d.okafor@brightpath.co",
37 "status": "valid",
38 "score": 91,
39 "smtp_valid": true,
40 "is_catch_all": false,
41 "is_disposable": false,
42 "is_role_based": false,
43 "is_free_provider": false,
44 "risk_type": null,
45 "syntax_valid": true,
46 "domain_exists": true,
47 "mx_found": true,
48 "reason": "Mailbox accepted",
49 "verified_at": "2026-10-03T09:12:42Z",
50 "title": "Founder",
51 "company": "BrightPath Studio"
52 },
53 {
54 "email": "info@lumenlabs.com",
55 "status": "valid",
56 "score": 78,
57 "smtp_valid": true,
58 "is_catch_all": false,
59 "is_disposable": false,
60 "is_role_based": true,
61 "is_free_provider": false,
62 "risk_type": "role_based",
63 "syntax_valid": true,
64 "domain_exists": true,
65 "mx_found": true,
66 "reason": "Role-based mailbox",
67 "verified_at": "2026-10-03T09:12:43Z",
68 "company": "Lumen Labs"
69 },
70 {
71 "email": "temp8841@mailinator.com",
72 "status": "invalid",
73 "score": 5,
74 "smtp_valid": false,
75 "is_catch_all": false,
76 "is_disposable": true,
77 "is_role_based": false,
78 "is_free_provider": false,
79 "risk_type": "disposable",
80 "syntax_valid": true,
81 "domain_exists": true,
82 "mx_found": true,
83 "reason": "Disposable domain",
84 "verified_at": "2026-10-03T09:12:44Z"
85 },
86 {
87 "email": "sam@acme-widgets.com",
88 "status": "valid",
89 "score": 74,
90 "smtp_valid": true,
91 "is_catch_all": true,
92 "is_disposable": false,
93 "is_role_based": false,
94 "is_free_provider": false,
95 "risk_type": "catch_all",
96 "syntax_valid": true,
97 "domain_exists": true,
98 "mx_found": true,
99 "reason": "Domain accepts all addresses",
100 "verified_at": "2026-10-03T09:12:45Z",
101 "company": "Acme Widgets"
102 },
103 {
104 "email": "jordan.lee@gmail.com",
105 "status": "valid",
106 "score": 88,
107 "smtp_valid": true,
108 "is_catch_all": false,
109 "is_disposable": false,
110 "is_role_based": false,
111 "is_free_provider": true,
112 "risk_type": null,
113 "syntax_valid": true,
114 "domain_exists": true,
115 "mx_found": true,
116 "reason": "Mailbox accepted",
117 "verified_at": "2026-10-03T09:12:46Z",
118 "name": "Jordan Lee"
119 },
120 {
121 "email": "priya.nair@tidewater.dev",
122 "status": "valid",
123 "score": 88,
124 "smtp_valid": true,
125 "is_catch_all": false,
126 "is_disposable": false,
127 "is_role_based": false,
128 "is_free_provider": false,
129 "risk_type": null,
130 "syntax_valid": true,
131 "domain_exists": true,
132 "mx_found": true,
133 "reason": "Mailbox accepted",
134 "verified_at": "2026-10-03T09:12:47Z",
135 "name": "Priya Nair",
136 "title": "VP Marketing",
137 "company": "Tidewater",
138 "website": "https://tidewater.dev"
139 }
140 ],
141 "discoveryInput": {}
142};
143
144
145const run = await client.actor("rich_minds/email-list-qualifier-ai").call(input);
146
147
148console.log('Results from dataset');
149console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
150const { items } = await client.dataset(run.defaultDatasetId).listItems();
151items.forEach((item) => {
152 console.dir(item);
153});
154
155