1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "maxLeads": 50,
12 "runLabel": "My first lead search",
13 "jobTitles": [
14 "VP of Engineering, Head of Engineering",
15 "CTO, Chief Technology Officer"
16 ],
17 "seniorityLevels": [
18 "c_suite",
19 "vp",
20 "director",
21 "head"
22 ],
23 "industries": [
24 "SaaS & Cloud Platforms"
25 ],
26 "companyDescription": "B2B software companies building developer tools or infrastructure",
27 "minEmployees": 50,
28 "locations": [
29 "California",
30 "New York",
31 "Texas"
32 ],
33 "minConfidence": 0.6,
34 "enableAiEnhancement": true
35};
36
37
38const run = await client.actor("chieftools/b2b-linkedin-lead-generator").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48