1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "resumes": [
12 {
13 "id": "candidate-001",
14 "text": "Alex Morgan\nSenior Backend Engineer\nalex.morgan@example.com | +1 555 0100 | Austin, TX, USA\n\nSUMMARY\nBackend engineer with nine years of experience building APIs and data pipelines in Python on AWS.\n\nEXPERIENCE\nSenior Backend Engineer, Acme Analytics\nJan 2021 - Present\n- Built Python and Django services on AWS, PostgreSQL and Redis\n- Moved deployments to Docker and Kubernetes\n\nSoftware Engineer, Contoso Labs\nJun 2017 - Dec 2020\n- Developed REST APIs in Python and Flask\n- Wrote data pipelines with SQL and Airflow\n\nEDUCATION\nBSc Computer Science, Example State University, 2013 - 2017\n\nSKILLS\nPython, Django, Flask, PostgreSQL, Redis, AWS, Docker, Kubernetes, SQL, Airflow"
15 },
16 {
17 "id": "candidate-002",
18 "text": "Sam Taylor\nMarketing Coordinator\nsam.taylor@example.com | London, UK\n\nEXPERIENCE\nMarketing Coordinator, Northwind Retail\nSep 2022 - Present\n- Ran email campaigns in HubSpot and reported results in Google Analytics\n- Managed social media calendars\n\nEDUCATION\nBA Marketing, Example University, 2019 - 2022\n\nSKILLS\nHubSpot, Google Analytics, SEO, Copywriting"
19 }
20 ],
21 "jobTitle": "Senior Backend Engineer",
22 "jobDescription": "We are hiring a Senior Backend Engineer with 5+ years of experience. You will build APIs in Python and Django on AWS with PostgreSQL, and run services on Docker and Kubernetes.",
23 "jobLocation": "Remote - US"
24};
25
26
27const run = await client.actor("keith-apis/resume-parser-job-match").call(input);
28
29
30console.log('Results from dataset');
31console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
32const { items } = await client.dataset(run.defaultDatasetId).listItems();
33items.forEach((item) => {
34 console.dir(item);
35});
36
37