1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "enableBoardJobs": true,
12 "boardTokens": [
13 "airbnb",
14 "stripe",
15 "figma"
16 ],
17 "jobKeywords": [
18 "engineer",
19 "designer",
20 "support"
21 ],
22 "jobLocation": "",
23 "jobDepartment": "",
24 "jobDatePosted": "any",
25 "jobsPerBoard": 10,
26 "searchFetchFullDetails": false,
27 "enableScrapeByUrl": false,
28 "jobUrls": [],
29 "webhookUrl": "",
30 "webhookFormat": "json",
31 "proxyConfiguration": {
32 "useApifyProxy": true,
33 "apifyProxyGroups": [
34 "RESIDENTIAL"
35 ],
36 "apifyProxyCountry": "US"
37 }
38};
39
40
41const run = await client.actor("b2b_leads/greenhouse-boards-real-time-data-scraper").call(input);
42
43
44console.log('Results from dataset');
45console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
46const { items } = await client.dataset(run.defaultDatasetId).listItems();
47items.forEach((item) => {
48 console.dir(item);
49});
50
51