1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "keywords": [
12 "software engineer"
13 ],
14 "country": "United States",
15 "location": "San Francisco, CA",
16 "datePosted": "3",
17 "radius": "",
18 "jobType": "",
19 "remoteWorkType": "",
20 "resumeKeywords": [
21 {
22 "keyword": "TypeScript",
23 "aliases": [
24 "TS",
25 "JS",
26 "JavaScript"
27 ]
28 },
29 {
30 "keyword": "Node.js",
31 "aliases": [
32 "Node",
33 "NodeJS"
34 ]
35 },
36 {
37 "keyword": "React",
38 "aliases": [
39 "RN",
40 "React Native",
41 "Expo",
42 "ReactJS"
43 ]
44 },
45 {
46 "keyword": "SQL",
47 "aliases": [
48 "PostgreSQL"
49 ]
50 },
51 {
52 "keyword": "Tools",
53 "aliases": [
54 "Git",
55 "Docker",
56 "Jira",
57 "Postman",
58 "GitHub",
59 "GitLab",
60 "GitHub Copilot",
61 "Webpack"
62 ]
63 }
64 ],
65 "jobLevel": ""
66};
67
68
69const run = await client.actor("cheap_scraper/indeed-job-scraper").call(input);
70
71
72console.log('Results from dataset');
73console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
74const { items } = await client.dataset(run.defaultDatasetId).listItems();
75items.forEach((item) => {
76 console.dir(item);
77});
78
79