1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "items": [
12 {
13 "title": "Senior Backend Engineer (Python)",
14 "companyName": "Northwind Analytics",
15 "location": "Remote (EU time zones)",
16 "description": "Northwind builds data APIs for logistics teams. You will design and run our Python services. You have 5+ years of experience with Python and PostgreSQL. Fully remote within European time zones. We can't sponsor visas. Salary EUR 75,000-90,000."
17 },
18 {
19 "title": "Werkstudent Marketing (m/w/d)",
20 "companyName": "Alpenblick Reisen GmbH",
21 "location": "München",
22 "description": "Du unterstützt unser Marketing-Team 16-20 Stunden pro Woche vor Ort in München: Social Media, Newsletter und Kampagnen. Du studierst Marketing oder BWL."
23 },
24 {
25 "title": "Registered Nurse - Intensive Care",
26 "companyName": "Lakeside General Hospital",
27 "location": "Leeds, UK",
28 "description": "Join our 20-bed ICU. At least 2 years of ICU experience and NMC registration required. Visa sponsorship and a relocation package are available for international nurses. Full-time, rotating shifts."
29 }
30 ]
31};
32
33
34const run = await client.actor("glidepath/job-postings-ai-tagger").call(input);
35
36
37console.log('Results from dataset');
38console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
39const { items } = await client.dataset(run.defaultDatasetId).listItems();
40items.forEach((item) => {
41 console.dir(item);
42});
43
44