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 "fullName": "Satya Nadella",
14 "company": "Microsoft",
15 "domain": "microsoft.com",
16 "title": "CEO",
17 "location": "Redmond"
18 },
19 {
20 "fullName": "Sundar Pichai",
21 "company": "Google",
22 "domain": "google.com",
23 "title": "CEO",
24 "location": "Mountain View"
25 }
26 ],
27 "maxCandidates": 5,
28 "includeCandidates": true,
29 "requestDelayMs": 500
30};
31
32
33const run = await client.actor("automation-lab/linkedin-profile-url-finder").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43