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 "placeIds": [
25 "104555257"
26 ],
27 "jobTypes": [
28 "1",
29 "3"
30 ],
31 "remote": [
32 "2"
33 ],
34 "experienceLevels": [
35 "4",
36 "5",
37 "6"
38 ],
39 "experienceLevel": [
40 "5"
41 ],
42 "contractType": [
43 "F"
44 ],
45 "resumeKeywords": [
46 {
47 "keyword": "TypeScript",
48 "aliases": [
49 "TS"
50 ]
51 },
52 {
53 "keyword": "React"
54 },
55 {
56 "keyword": "Node.js",
57 "aliases": [
58 "NodeJS",
59 "Node"
60 ]
61 }
62 ]
63};
64
65
66const run = await client.actor("memo23/linkedin-jobs-scraper").call(input);
67
68
69console.log('Results from dataset');
70console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
71const { items } = await client.dataset(run.defaultDatasetId).listItems();
72items.forEach((item) => {
73 console.dir(item);
74});
75
76