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.ashbyhq.com/ramp"
13 ],
14 "maxJobs": 50,
15 "maxJobsPerBoard": 50,
16 "includeDescription": true,
17 "includeContacts": true,
18 "includeUnlisted": false,
19 "titleFilter": "",
20 "titleKeywords": [],
21 "locationFilter": "",
22 "locations": [],
23 "departmentFilter": "",
24 "workplaceType": "any",
25 "employmentType": "any",
26 "publishedAfter": "",
27 "publishedBefore": "",
28 "postedWithinDays": 0,
29 "maxEstimatedCostUsd": 0.1,
30 "proxyConfiguration": {
31 "useApifyProxy": false
32 },
33 "requestTimeoutSecs": 20,
34 "maxRetries": 1
35};
36
37
38const run = await client.actor("pellucid_bird/ashby-jobs-lens").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