1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "firstRunMode": false,
12 "keyword": "Software Engineer",
13 "location": "Germany",
14 "postedWithin": "24h",
15 "orderBy": "newest",
16 "companyProfileEnrichment": false,
17 "aiEnrichment": {
18 "enabled": false,
19 "accuracy": "silver"
20 },
21 "translateToEnglish": false,
22 "includeRaw": true,
23 "maxItems": 100,
24 "dedupe": {
25 "enabled": true,
26 "key": "default"
27 },
28 "analyticsEnabled": false,
29 "schemaVersion": "nomad-agent-job-search-input-v1"
30};
31
32
33const run = await client.actor("nomad-agent/linkedin-enrich-translate-normalize-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