1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "jobs": [
12 {
13 "title": "Senior Python Engineer (Remote, EU)",
14 "description": "We are hiring a senior backend engineer with 5+ years of Python, FastAPI and PostgreSQL. Experience with AWS and Docker is a plus. You communicate clearly in English; German is nice to have. Remote within the EU (CET +/- 2 hours). Salary EUR 70,000-90,000 per year. Visa sponsorship is not available.",
15 "company": "Example GmbH",
16 "location": "Berlin, Germany",
17 "job_url": "https://example.com/jobs/1"
18 },
19 {
20 "title": "Junior Data Analyst",
21 "description": "<p>Entry-level role. <b>SQL and Excel required</b>, Power BI a plus. Bachelor's degree in a quantitative field. Hybrid, 3 days in our Toronto office. $55k-$62k CAD.</p>",
22 "company": "Example Inc.",
23 "location": "Toronto, ON",
24 "job_url": "https://example.com/jobs/2"
25 },
26 {
27 "positionName": "Registered Nurse - ICU (Night Shift)",
28 "company": "Example Health",
29 "location": "Houston, TX",
30 "salary": "$48 - $62 an hour",
31 "jobType": [
32 "Full-time"
33 ],
34 "description": "Join our 24-bed ICU. Requirements: active Texas RN license, BLS and ACLS certification, minimum 2 years of acute care experience. We sponsor H-1B and green card applications for qualified international nurses. Sign-on bonus available.",
35 "url": "https://example.com/jobs/3"
36 }
37 ],
38 "maxItems": 3
39};
40
41
42const run = await client.actor("gazidev/job-posting-enricher").call(input);
43
44
45console.log('Results from dataset');
46console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
47const { items } = await client.dataset(run.defaultDatasetId).listItems();
48items.forEach((item) => {
49 console.dir(item);
50});
51
52