1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "people": [
12 {
13 "first_name": "Rand",
14 "last_name": "Fishkin",
15 "domain": "sparktoro.com"
16 },
17 {
18 "first_name": "Peep",
19 "last_name": "Laja",
20 "domain": "wynter.com"
21 },
22 {
23 "first_name": "Joel",
24 "last_name": "Gascoigne",
25 "domain": "buffer.com"
26 },
27 {
28 "first_name": "Ryan",
29 "last_name": "Hoover",
30 "domain": "producthunt.com"
31 },
32 {
33 "first_name": "Jason",
34 "last_name": "Fried",
35 "domain": "37signals.com"
36 }
37 ]
38};
39
40
41const run = await client.actor("bulkleads/email-finder").call(input);
42
43
44console.log('Results from dataset');
45console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
46const { items } = await client.dataset(run.defaultDatasetId).listItems();
47items.forEach((item) => {
48 console.dir(item);
49});
50
51