1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "jobFunctionSlugs": [],
12 "jobType": "any",
13 "companySize": "any",
14 "skills": [],
15 "keywords": [],
16 "locations": [],
17 "companyNames": [],
18 "excludeKeywords": [],
19 "skillMatch": "any",
20 "keywordMatch": "any",
21 "remoteOnly": false,
22 "diversityEmployersOnly": false,
23 "includeDetails": false,
24 "excludeAgencyPosted": false,
25 "trackCompanies": [],
26 "maxItems": 50,
27 "maxPages": 10,
28 "proxyConfiguration": {
29 "useApifyProxy": true
30 },
31 "monitorMode": "snapshot",
32 "emitBaseline": true,
33 "includeUnchanged": false,
34 "stateName": ""
35};
36
37
38const run = await client.actor("mlg14/instahyre-scraper").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48