1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "urls": [
12 "https://jobs.lever.co/palantir"
13 ],
14 "maxJobs": 50,
15 "maxJobsPerBoard": 50,
16 "includeDescription": true,
17 "includeContacts": true,
18 "titleFilter": "",
19 "titleKeywords": [],
20 "locationFilter": "",
21 "locations": [],
22 "departmentFilter": "",
23 "workplaceType": "any",
24 "employmentType": "any",
25 "publishedAfter": "",
26 "publishedBefore": "",
27 "postedWithinDays": 0,
28 "maxEstimatedCostUsd": 0.1,
29 "proxyConfiguration": {
30 "useApifyProxy": false
31 },
32 "requestTimeoutSecs": 20,
33 "maxRetries": 1
34};
35
36
37const run = await client.actor("pellucid_bird/lever-jobs-lens").call(input);
38
39
40console.log('Results from dataset');
41console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42const { items } = await client.dataset(run.defaultDatasetId).listItems();
43items.forEach((item) => {
44 console.dir(item);
45});
46
47