1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "resume": {
12 "basics": {
13 "name": "Alex Rivera",
14 "label": "Staff Product Engineer",
15 "image": "",
16 "email": "alex.rivera@example.com",
17 "phone": "+1 (415) 555-0148",
18 "url": "https://alexrivera.dev",
19 "summary": "Product engineer with 10 years of experience shipping search, marketplace, and growth systems. I turn messy user journeys into reliable APIs and clear UIs, and I like pairing with design and data to ship the smallest change that moves a metric.",
20 "location": {
21 "city": "Austin",
22 "region": "Texas",
23 "countryCode": "US"
24 },
25 "profiles": [
26 {
27 "network": "LinkedIn",
28 "username": "alexrivera",
29 "url": "https://www.linkedin.com/in/alexrivera"
30 },
31 {
32 "network": "GitHub",
33 "username": "alexrivera",
34 "url": "https://github.com/alexrivera"
35 }
36 ]
37 },
38 "work": [
39 {
40 "name": "Northwind Labs",
41 "position": "Staff Product Engineer",
42 "url": "https://northwind.example",
43 "startDate": "2021-03-01",
44 "summary": "Lead engineer for the applicant marketplace: matching, search ranking, and the hiring dashboard used by 4k weekly active recruiters.",
45 "highlights": [
46 "Cut time-to-shortlist from 9 days to 3 by rebuilding search around structured skills and recency.",
47 "Designed a job-specific CV export pipeline so candidates can generate a tailored PDF in under a minute.",
48 "Mentored a pod of 6 engineers; introduced RFC reviews that reduced production incidents by 40%."
49 ]
50 },
51 {
52 "name": "Harbor Analytics",
53 "position": "Senior Software Engineer",
54 "url": "https://harbor.example",
55 "startDate": "2017-06-01",
56 "endDate": "2021-02-01",
57 "summary": "Owned the customer-facing reporting product used by mid-market ops teams.",
58 "highlights": [
59 "Shipped a saved-view system that became 70% of weekly sessions.",
60 "Replaced a nightly batch job with streaming aggregates, dropping dashboard lag from 24h to under 2 minutes.",
61 "Partnered with CS to turn the top 12 support tickets into self-serve filters."
62 ]
63 },
64 {
65 "name": "Brightline Studio",
66 "position": "Software Engineer",
67 "url": "https://brightline.example",
68 "startDate": "2014-08-01",
69 "endDate": "2017-05-01",
70 "summary": "Full-stack engineer on client web apps for education and local commerce.",
71 "highlights": [
72 "Built the first public API and docs site; 30 agencies integrated in the first quarter.",
73 "Introduced end-to-end tests that caught checkout regressions before launch."
74 ]
75 }
76 ],
77 "education": [
78 {
79 "institution": "University of Texas at Austin",
80 "url": "https://www.utexas.edu/",
81 "area": "Computer Science",
82 "studyType": "B.S.",
83 "startDate": "2010-08-01",
84 "endDate": "2014-05-01"
85 }
86 ],
87 "skills": [
88 {
89 "name": "Product engineering",
90 "level": "Master",
91 "keywords": [
92 "TypeScript",
93 "Node.js",
94 "React",
95 "PostgreSQL",
96 "search"
97 ]
98 },
99 {
100 "name": "Collaboration",
101 "level": "Advanced",
102 "keywords": [
103 "RFCs",
104 "mentoring",
105 "design pairing",
106 "incident review"
107 ]
108 }
109 ],
110 "projects": [
111 {
112 "name": "Open Skills Graph",
113 "startDate": "2022-01-01",
114 "description": "Open dataset mapping job titles to skills for resume tailoring and job matching experiments.",
115 "highlights": [
116 "Used by three hiring-tool prototypes to re-rank CVs against a job description."
117 ],
118 "url": "https://github.com/alexrivera/open-skills-graph"
119 }
120 ],
121 "languages": [
122 {
123 "language": "English",
124 "fluency": "Native speaker"
125 },
126 {
127 "language": "Spanish",
128 "fluency": "Professional working"
129 }
130 ],
131 "certificates": [
132 {
133 "name": "AWS Certified Solutions Architect – Associate",
134 "date": "2023-04-12",
135 "issuer": "Amazon Web Services",
136 "url": "https://aws.amazon.com/certification/"
137 }
138 ]
139 },
140 "theme": "even",
141 "format": "A4",
142 "printBackground": true
143};
144
145
146const run = await client.actor("rainminer/json-resume-to-pdf").call(input);
147
148
149console.log('Results from dataset');
150console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
151const { items } = await client.dataset(run.defaultDatasetId).listItems();
152items.forEach((item) => {
153 console.dir(item);
154});
155
156