1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "titles": [
12 "Software Engineer"
13 ],
14 "locations": [
15 "United States"
16 ],
17 "startUrls": [],
18 "companyIds": [],
19 "companyUrls": [],
20 "companyNames": [],
21 "mode": "detailed",
22 "maxItems": 3,
23 "maxRowsPerSearch": 0,
24 "companyProfile": true,
25 "datePosted": "anyTime",
26 "easyApply": false,
27 "under10Applicants": false,
28 "geoId": "",
29 "customUrlParams": {},
30 "filters": {},
31 "resumeKeywords": [],
32 "splitByLocation": false,
33 "splitCountry": "",
34 "splitLocations": [],
35 "splitTimeRanges": [],
36 "splitCompanyIds": []
37};
38
39
40const run = await client.actor("danthedataman/linkedin-job-atlas").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