1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "currentItems": [
12 {
13 "jobId": "JOB1",
14 "employer": "Acme Retail",
15 "jobFamily": "Engineering",
16 "salaryUsd": 82000,
17 "category": "new",
18 "date": "2026-10-12"
19 },
20 {
21 "jobId": "JOB2",
22 "employer": "Acme Retail",
23 "jobFamily": "Support",
24 "salaryUsd": 49000,
25 "category": "new",
26 "date": "2026-10-12"
27 },
28 {
29 "jobId": "JOB3",
30 "employer": "Beta Systems",
31 "jobFamily": "Engineering",
32 "salaryUsd": 91000,
33 "category": "active",
34 "date": "2026-10-12"
35 }
36 ],
37 "previousItems": [
38 {
39 "jobId": "JOB3",
40 "employer": "Beta Systems",
41 "jobFamily": "Engineering",
42 "salaryUsd": 88000,
43 "category": "active",
44 "date": "2026-10-05"
45 },
46 {
47 "jobId": "JOB0",
48 "employer": "Acme Retail",
49 "jobFamily": "Engineering",
50 "salaryUsd": 79000,
51 "category": "removed",
52 "date": "2026-10-05"
53 }
54 ]
55};
56
57
58const run = await client.actor("quanmatrix/indeed-job-salary-demand-change-analyzer").call(input);
59
60
61console.log('Results from dataset');
62console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
63const { items } = await client.dataset(run.defaultDatasetId).listItems();
64items.forEach((item) => {
65 console.dir(item);
66});
67
68