1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "companies": [
12 {
13 "name": "Robinhood",
14 "ats": "greenhouse",
15 "token": "robinhood"
16 },
17 {
18 "name": "Notion",
19 "ats": "ashby",
20 "token": "notion"
21 },
22 {
23 "name": "The Athletic",
24 "ats": "lever",
25 "token": "theathletic"
26 }
27 ],
28 "rolePatterns": [
29 "engineer",
30 "manager"
31 ]
32};
33
34
35const run = await client.actor("recruitops_hq/ats-hiring-signal").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