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 "postedWithinDays": 7,
31 "maxItemsPerSource": 3,
32 "concurrency": 3,
33 "sourceTimeoutSecs": 120
34 },
35 "maxItems": 3,
36 "candidateProfile": {
37 "primaryRole": "Software Engineer",
38 "targetTerms": [
39 "Software Engineer",
40 "Backend Engineer",
41 "Full Stack Engineer",
42 "Platform Engineer"
43 ],
44 "skills": [
45 "Python",
46 "TypeScript",
47 "JavaScript",
48 "React",
49 "Node.js",
50 "SQL",
51 "PostgreSQL",
52 "Docker",
53 "Kubernetes",
54 "AWS",
55 "REST APIs",
56 "Git",
57 "CI/CD"
58 ],
59 "seniorityLevels": [
60 "mid",
61 "senior"
62 ],
63 "yearsExperience": 8,
64 "workableLanguages": [
65 {
66 "language": "English",
67 "level": "professional",
68 "evidence": "Example profile: professional working proficiency"
69 }
70 ],
71 "workableLanguagesComplete": false,
72 "acceptedWorkArrangements": [
73 "remote",
74 "hybrid",
75 "onsite"
76 ],
77 "remoteLocations": [
78 "Worldwide"
79 ],
80 "hybridLocations": [
81 "Worldwide"
82 ],
83 "onsiteLocations": [
84 "Worldwide"
85 ],
86 "workArrangementPreferencesComplete": false,
87 "acceptedContractTypesComplete": false,
88 "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."
89 },
90 "resultMode": "shortlist",
91 "minDeliveryScore": 2,
92 "aiConcurrency": 2
93};
94
95
96const run = await client.actor("nomad-agent/ai-job-fit-scorer").call(input);
97
98
99console.log('Results from dataset');
100console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
101const { items } = await client.dataset(run.defaultDatasetId).listItems();
102items.forEach((item) => {
103 console.dir(item);
104});
105
106