1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "search": {
13 "sources": [
14 "linkedin",
15 "remote_boards",
16 "builtin",
17 "justjoinit",
18 "nofluffjobs",
19 "hackernews",
20 "ycombinator_was",
21 "wttj",
22 "infojobs",
23 "tecnoempleo"
24 ],
25 "keywords": [
26 "software engineer"
27 ],
28 "location": "Madrid",
29 "remoteOnly": false,
30 "titleExclude": [
31 "intern",
32 "junior"
33 ],
34 "postedWithinDays": 7,
35 "maxItemsPerSource": 3,
36 "cacheTtlSeconds": 1800,
37 "concurrency": 3,
38 "sourceTimeoutSecs": 120
39 },
40 "maxItems": 3,
41 "candidateProfile": {
42 "primaryRole": "Software Engineer",
43 "targetTerms": [
44 "Software Engineer",
45 "Backend Engineer",
46 "Full Stack Engineer",
47 "Platform Engineer"
48 ],
49 "skills": [
50 "Python",
51 "TypeScript",
52 "JavaScript",
53 "React",
54 "Node.js",
55 "SQL",
56 "PostgreSQL",
57 "Docker",
58 "Kubernetes",
59 "AWS",
60 "REST APIs",
61 "Git",
62 "CI/CD"
63 ],
64 "seniorityLevels": [
65 "mid",
66 "senior"
67 ],
68 "yearsExperience": 8,
69 "workableLanguages": [
70 {
71 "language": "English",
72 "level": "professional",
73 "evidence": "Example profile: professional working proficiency"
74 }
75 ],
76 "workableLanguagesComplete": false,
77 "acceptedWorkArrangements": [
78 "remote",
79 "hybrid",
80 "onsite"
81 ],
82 "remoteLocations": [
83 "Worldwide"
84 ],
85 "hybridLocations": [
86 "Worldwide"
87 ],
88 "onsiteLocations": [
89 "Worldwide"
90 ],
91 "workArrangementPreferencesComplete": false,
92 "acceptedContractTypesComplete": false,
93 "freeText": "Software engineer with eight years of experience building and operating backend and full-stack web services in Python, TypeScript and SQL, deployed on AWS with Docker and Kubernetes."
94 },
95 "resultMode": "shortlist",
96 "minDeliveryScore": 2,
97 "aiConcurrency": 2
98};
99
100
101const run = await client.actor("job-atlas/ai-job-fit-scorer").call(input);
102
103
104console.log('Results from dataset');
105console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
106const { items } = await client.dataset(run.defaultDatasetId).listItems();
107items.forEach((item) => {
108 console.dir(item);
109});
110
111