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://job-boards.greenhouse.io/gusto"
13 ],
14 "maxJobs": 50,
15 "maxJobsPerBoard": 50,
16 "includeDescription": true,
17 "titleFilter": "",
18 "locationFilter": "",
19 "departmentFilter": "",
20 "maxEstimatedCostUsd": 0.1,
21 "proxyConfiguration": {
22 "useApifyProxy": false
23 },
24 "requestTimeoutSecs": 20,
25 "maxRetries": 1
26};
27
28
29const run = await client.actor("pellucid_bird/greenhouse-jobs-lens").call(input);
30
31
32console.log('Results from dataset');
33console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
34const { items } = await client.dataset(run.defaultDatasetId).listItems();
35items.forEach((item) => {
36 console.dir(item);
37});
38
39