1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "boardProfile",
12 "companyName": "Siemens",
13 "countries": [
14 "DE"
15 ],
16 "maxPerBoard": 15,
17 "registryCountry": "auto",
18 "employers": [
19 {
20 "name": "Stripe",
21 "country": "US",
22 "ats": "greenhouse",
23 "handle": "stripe"
24 }
25 ],
26 "proxyConfiguration": {
27 "useApifyProxy": true,
28 "apifyProxyGroups": [
29 "RESIDENTIAL"
30 ]
31 }
32};
33
34
35const run = await client.actor("studio-amba/company-hiring-signals").call(input);
36
37
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45