1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "searchQueries": [
13 "accountant"
14 ],
15 "country": "uae",
16 "city": "",
17 "category": "",
18 "industry": "",
19 "careerLevel": "",
20 "employmentTypes": [],
21 "nationality": "",
22 "remoteOnly": false,
23 "easyApplyOnly": false,
24 "exclusiveOnly": false,
25 "postedWithinDays": 0,
26 "includeKeywords": [],
27 "excludeKeywords": [],
28 "fetchFullDetails": false,
29 "maxItems": 3,
30 "companyUrl": "",
31 "startUrls": [],
32 "salaryTitles": [
33 "accountant"
34 ],
35 "salaryCountry": "uae",
36 "salaryCurrency": ""
37};
38
39
40const run = await client.actor("vexaloom-labs/gulftalent-job-listings-across-16-middle-east").call(input);
41
42
43console.log('Results from dataset');
44console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
45const { items } = await client.dataset(run.defaultDatasetId).listItems();
46items.forEach((item) => {
47 console.dir(item);
48});
49
50