1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "query": "Python Developer",
12 "location": "Berlin, Germany",
13 "jobsToFetch": 10,
14 "contract": false,
15 "fullTime": true,
16 "partTime": false,
17 "temporary": false,
18 "volunteer": false,
19 "internship": false,
20 "internshipLevel": false,
21 "entryLevel": false,
22 "associate": false,
23 "midSeniorLevel": false,
24 "director": false,
25 "remote": false,
26 "hybrid": false,
27 "proxySettings": {
28 "useApifyProxy": false
29 }
30};
31
32
33const run = await client.actor("data_wizard/linkedin-job-scraper").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43