1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "linkedinUrls": [
12 "https://www.linkedin.com/in/patrick-collison @ stripe.com",
13 "https://www.linkedin.com/in/guillermo-rauch @ vercel.com",
14 "https://www.linkedin.com/in/matthew-prince @ cloudflare.com",
15 "https://www.linkedin.com/in/karri-saarinen @ linear.app"
16 ],
17 "leads": [
18 {
19 "fullName": "satya nadella",
20 "domain": "microsoft.com"
21 },
22 {
23 "fullName": "patrick collison",
24 "domain": "stripe.com"
25 },
26 {
27 "fullName": "matthew prince",
28 "domain": "cloudflare.com"
29 },
30 {
31 "fullName": "guillermo rauch",
32 "domain": "vercel.com"
33 },
34 {
35 "fullName": "thomas dohmke",
36 "domain": "github.com"
37 },
38 {
39 "fullName": "karri saarinen",
40 "domain": "linear.app"
41 },
42 {
43 "fullName": "dario amodei",
44 "domain": "anthropic.com"
45 },
46 {
47 "fullName": "aravind srinivas",
48 "domain": "perplexity.ai"
49 },
50 {
51 "fullName": "jan curn",
52 "domain": "apify.com"
53 },
54 {
55 "fullName": "paul copplestone",
56 "domain": "supabase.com"
57 }
58 ]
59};
60
61
62const run = await client.actor("invaluable_rondeau/corporate-email-finder-verifier").call(input);
63
64
65console.log('Results from dataset');
66console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
67const { items } = await client.dataset(run.defaultDatasetId).listItems();
68items.forEach((item) => {
69 console.dir(item);
70});
71
72