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 "jobId": "job-101",
14 "url": "https://jobs.example.com/job-101",
15 "title": "Senior Data Analyst",
16 "company": "Example GmbH",
17 "location": "Berlin",
18 "country": "DE",
19 "employmentType": "Full-time",
20 "postedDate": "2026-08-12T10:00:00Z",
21 "sourceName": "Licensed ATS export",
22 "sourceLicense": "Buyer confirms downstream processing and delivery rights"
23 }
24 ]
25};
26
27
28const run = await client.actor("zinin/xing-jobs").call(input);
29
30
31console.log('Results from dataset');
32console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
33const { items } = await client.dataset(run.defaultDatasetId).listItems();
34items.forEach((item) => {
35 console.dir(item);
36});
37
38