1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "boards": [
12 {
13 "ats": "greenhouse",
14 "boardToken": "airbnb",
15 "label": "Airbnb"
16 },
17 {
18 "ats": "lever",
19 "boardToken": "leverdemo",
20 "label": "Lever Demo"
21 },
22 {
23 "ats": "ashby",
24 "boardToken": "ashby",
25 "label": "Ashby"
26 }
27 ],
28 "kvStoreName": "ats-hiring-signal-monitor-state",
29 "confirmedClosedAfterRuns": 2,
30 "emitSnapshots": true,
31 "emitHiringSignal": true,
32 "maxJobsPerBoard": 5000
33};
34
35
36const run = await client.actor("lainmar/ats-hiring-signal-monitor").call(input);
37
38
39console.log('Results from dataset');
40console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
41const { items } = await client.dataset(run.defaultDatasetId).listItems();
42items.forEach((item) => {
43 console.dir(item);
44});
45
46