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