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 "source": "greenhouse",
14 "company": "everlane",
15 "filters": {
16 "titleKeywords": [
17 "engineer",
18 "product"
19 ]
20 }
21 },
22 {
23 "source": "lever",
24 "company": "leverdemo",
25 "filters": {
26 "titleKeywords": [
27 "engineering"
28 ]
29 }
30 }
31 ]
32};
33
34
35const run = await client.actor("digigecko/jobwatch").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