1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "atsBoards": [
12 {
13 "ats": "greenhouse",
14 "company": "Stripe",
15 "token": "stripe"
16 },
17 {
18 "ats": "greenhouse",
19 "company": "Airbnb",
20 "token": "airbnb"
21 },
22 {
23 "ats": "ashby",
24 "company": "Perplexity",
25 "token": "perplexity"
26 }
27 ],
28 "targetKeywords": [
29 "sales",
30 "security",
31 "data",
32 "ai",
33 "revops"
34 ]
35};
36
37
38const run = await client.actor("tstark84/multi-ats-hiring-intent-monitor").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