1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "searchType": "jobs",
12 "siteLanguage": "en",
13 "keywords": "developer",
14 "company": "",
15 "location": "",
16 "searchRadius": "",
17 "country": "",
18 "remote": [],
19 "contractType": [],
20 "workingLanguage": [],
21 "jobCategory": "",
22 "jobSubCategory": "",
23 "jobRole": "",
24 "sectors": [],
25 "subIndustry": [],
26 "experienceLevel": "",
27 "educationLevel": "",
28 "companySize": "",
29 "companyLabels": [],
30 "companyCommitments": [],
31 "salaryMin": 0,
32 "salaryMax": 0,
33 "postedWithinDays": 0,
34 "sortBy": "relevance",
35 "startUrl": "",
36 "maxItems": 5
37};
38
39
40const run = await client.actor("azzouzana/welcome-to-the-jungle-jobs-scraper").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