1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "datasetIds": [],
12 "rows": [
13 {
14 "email": "support@apify.com",
15 "company_domain": "apify.com"
16 },
17 {
18 "email": "support@stripe.com",
19 "company_domain": "stripe.com"
20 },
21 {
22 "email": "support@shopify.com",
23 "company_domain": "shopify.com"
24 },
25 {
26 "email": "support@dropbox.com",
27 "company_domain": "dropbox.com"
28 },
29 {
30 "email": "security@github.com",
31 "company_domain": "github.com"
32 },
33 {
34 "email": "security@mozilla.org",
35 "company_domain": "mozilla.org"
36 },
37 {
38 "email": "press@openai.com",
39 "company_domain": "openai.com"
40 },
41 {
42 "email": "support@notion.so",
43 "company_domain": "notion.so"
44 },
45 {
46 "email": "support@slack.com",
47 "company_domain": "slack.com"
48 },
49 {
50 "email": "support@atlassian.com",
51 "company_domain": "atlassian.com"
52 }
53 ],
54 "emailFields": [],
55 "domainFields": [],
56 "nameFields": [],
57 "companyFields": [],
58 "signals": [],
59 "websitePaths": [
60 "/about",
61 "/team"
62 ],
63 "maxRows": [
64 10000
65 ],
66 "timeoutMs": [
67 7000
68 ],
69 "retryCounts": [
70 2
71 ],
72 "dedupKeys": [
73 "email",
74 "companyDomain"
75 ],
76 "disclaimerAck": [
77 "accepted"
78 ]
79};
80
81
82const run = await client.actor("ntriqpro/b2b-lead-list-verifier").call(input);
83
84
85console.log('Results from dataset');
86console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
87const { items } = await client.dataset(run.defaultDatasetId).listItems();
88items.forEach((item) => {
89 console.dir(item);
90});
91
92