1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "sp_contact": "Share your email here...",
12 "cvText": `John Smith
13Software Engineer | 5 years experience
14
15Experience:
16- Software Engineer at Acme Corp (2020–present): Built REST APIs with Node.js, led team of 3.
17- Junior Dev at StartupXYZ (2018–2020): Frontend React work, improved page load by 40%.
18
19Skills: JavaScript, TypeScript, Node.js, React, PostgreSQL, Docker
20Education: B.Sc Computer Science, State University 2018`,
21 "jobDescription": `Senior Full-Stack Engineer at TechCorp
22
23We are looking for a Senior Full-Stack Engineer with 5+ years of experience.
24
25Required:
26- 5+ years of software engineering experience
27- Proficiency in TypeScript, Node.js, and React
28- Experience with cloud platforms (AWS, GCP, or Azure)
29- Strong knowledge of SQL and NoSQL databases
30- Experience with CI/CD pipelines and DevOps practices
31
32Nice to have:
33- Kubernetes / Docker experience
34- Experience mentoring junior engineers
35- GraphQL knowledge`
36};
37
38
39const run = await client.actor("jungle_synthesizer/ai-resume-cv-optimizer").call(input);
40
41
42console.log('Results from dataset');
43console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
44const { items } = await client.dataset(run.defaultDatasetId).listItems();
45items.forEach((item) => {
46 console.dir(item);
47});
48
49