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 "companies": [],
13 "keywords": [],
14 "locationContains": "",
15 "remoteOnly": false,
16 "minDaysListed": 0,
17 "mode": "jobs",
18 "includeDescription": false,
19 "includeUndated": true,
20 "payOnly": false,
21 "maxItems": 50,
22 "selfTest": false,
23 "directory": "starter",
24 "watchName": "",
25 "maxProbes": 10000,
26 "deadlineSeconds": 150,
27 "fixtureSet": "jobs_contract.json",
28 "locations": [],
29 "boardInputs": []
30};
31
32
33const run = await client.actor("brotherly_elm/hiring-radar").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43