1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "startUrls": [
12 {
13 "url": "https://www.linkedin.com/jobs/search?keywords=Software%20Engineer&location=United%20States&geoId=103644278"
14 }
15 ],
16 "keywords": [
17 "Software Engineer"
18 ],
19 "location": "United States",
20 "locations": [
21 "United States",
22 "United Kingdom"
23 ],
24 "geoId": "103644278",
25 "placeIds": [
26 "104555257"
27 ],
28 "jobTypes": [
29 "1",
30 "3"
31 ],
32 "remote": [
33 "2"
34 ],
35 "experienceLevels": [
36 "4",
37 "5",
38 "6"
39 ],
40 "experienceLevel": [
41 "5"
42 ],
43 "contractType": [
44 "F"
45 ],
46 "resumeKeywords": [
47 {
48 "keyword": "TypeScript",
49 "aliases": [
50 "TS"
51 ]
52 },
53 {
54 "keyword": "React"
55 },
56 {
57 "keyword": "Node.js",
58 "aliases": [
59 "NodeJS",
60 "Node"
61 ]
62 }
63 ]
64};
65
66
67const run = await client.actor("memo23/linkedin-jobs-scraper").call(input);
68
69
70console.log('Results from dataset');
71console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
72const { items } = await client.dataset(run.defaultDatasetId).listItems();
73items.forEach((item) => {
74 console.dir(item);
75});
76
77