1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "emails": [
12 {
13 "email": "maria.gonzalez@lyfeoffshore.com",
14 "first_name": "Maria",
15 "last_name": "Gonzalez",
16 "company": "LYFE Offshore"
17 },
18 {
19 "email": "tomas.koutny@lyfeoffshore.com",
20 "first_name": "Tomáš",
21 "last_name": "Koutný",
22 "company": "LYFE Offshore"
23 },
24 {
25 "email": "john.smith@lyfeoffshore.com",
26 "first_name": "John",
27 "last_name": "Smith",
28 "company": "LYFE Offshore"
29 },
30 {
31 "email": "j.smith@lyfeoffshore.com",
32 "first_name": "John",
33 "last_name": "Smith",
34 "company": "LYFE Offshore"
35 },
36 {
37 "email": "maria.gonzalzz@lyfeoffshore.com",
38 "first_name": "Maria",
39 "last_name": "Gonzalez",
40 "company": "LYFE Offshore"
41 },
42 {
43 "email": "x7fk92qp@lyfeoffshore.com",
44 "first_name": "Bob",
45 "last_name": "Jones",
46 "company": "LYFE Offshore"
47 },
48 {
49 "email": "info@lyfeoffshore.com",
50 "company": "LYFE Offshore"
51 }
52 ]
53};
54
55
56const run = await client.actor("lyfe_tools/catchall-email-verifier").call(input);
57
58
59console.log('Results from dataset');
60console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
61const { items } = await client.dataset(run.defaultDatasetId).listItems();
62items.forEach((item) => {
63 console.dir(item);
64});
65
66