1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "sources": [
12 {
13 "url": "https://boards-api.greenhouse.io/v1/boards/airbnb/jobs?content=true",
14 "companyName": "Airbnb",
15 "source": "greenhouse"
16 },
17 {
18 "url": "https://api.ashbyhq.com/posting-api/job-board/ashby?includeCompensation=true",
19 "companyName": "Ashby",
20 "source": "ashby"
21 }
22 ],
23 "keywords": [
24 "salesforce",
25 "revops",
26 "soc2",
27 "ai"
28 ],
29 "maxResults": 20,
30 "matchMode": "any",
31 "includeFullDescription": false
32};
33
34
35const run = await client.actor("automation-lab/job-board-keyword-signal-scanner").call(input);
36
37
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45