1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "contacts": [
12 {
13 "domain": "microsoft.com",
14 "firstName": "Satya",
15 "lastName": "Nadella"
16 },
17 {
18 "domain": "google.com",
19 "firstName": "Sundar",
20 "lastName": "Pichai"
21 },
22 {
23 "domain": "airbnb.com",
24 "firstName": "Brian",
25 "lastName": "Chesky"
26 },
27 {
28 "domain": "openai.com",
29 "firstName": "Sam",
30 "lastName": "Altman"
31 },
32 {
33 "domain": "nvidia.com",
34 "firstName": "Jensen",
35 "lastName": "Huang"
36 },
37 {
38 "domain": "salesforce.com",
39 "firstName": "Marc",
40 "lastName": "Benioff"
41 },
42 {
43 "domain": "adobe.com",
44 "firstName": "Shantanu",
45 "lastName": "Narayen"
46 },
47 {
48 "domain": "ibm.com",
49 "firstName": "Arvind",
50 "lastName": "Krishna"
51 },
52 {
53 "domain": "cisco.com",
54 "firstName": "Chuck",
55 "lastName": "Robbins"
56 },
57 {
58 "domain": "oracle.com",
59 "firstName": "Safra",
60 "lastName": "Catz"
61 }
62 ],
63 "verifyMx": true,
64 "proxyConfiguration": {
65 "useApifyProxy": false
66 },
67 "maxItems": 25
68};
69
70
71const run = await client.actor("deepaksheoran172/b2b-decision-maker-email-finder").call(input);
72
73
74console.log('Results from dataset');
75console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
76const { items } = await client.dataset(run.defaultDatasetId).listItems();
77items.forEach((item) => {
78 console.dir(item);
79});
80
81