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 "workArrangements": [
17 "remote"
18 ],
19 "linkedinSearch": {
20 "schemaVersion": "nomad-agent-linkedin-search-v2",
21 "searches": []
22 },
23 "filters": {
24 "schemaVersion": "nomad-agent-job-filter-v1",
25 "expression": {
26 "field": "identity.source",
27 "operator": "eq",
28 "value": "linkedin"
29 }
30 },
31 "companyProfileEnrichment": false,
32 "aiEnrichment": {
33 "enabled": false,
34 "accuracy": "silver"
35 },
36 "translateToEnglish": false,
37 "includeRaw": true,
38 "maxItems": 100,
39 "dedupe": {
40 "enabled": true,
41 "key": "default"
42 },
43 "analyticsEnabled": false,
44 "schemaVersion": "nomad-agent-job-search-input-v1"
45};
46
47
48const run = await client.actor("job-atlas/linkedin-enrich-translate-normalize-scraper").call(input);
49
50
51console.log('Results from dataset');
52console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
53const { items } = await client.dataset(run.defaultDatasetId).listItems();
54items.forEach((item) => {
55 console.dir(item);
56});
57
58