1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "previous": {
12 "snapshotId": "jobs-ge-2026-08-31",
13 "observedAt": "2026-08-31T09:00:00.000Z",
14 "sourceLabel": "Authorized weekly export",
15 "postings": [
16 {
17 "postingKey": "job-removed",
18 "title": "Marketing Analyst",
19 "department": "Marketing",
20 "location": "Tbilisi",
21 "canonicalUrl": "https://jobs.example.com/job-removed"
22 },
23 {
24 "postingKey": "job-changed",
25 "title": "Software Engineer",
26 "department": "Engineering",
27 "location": "Tbilisi",
28 "workplaceType": "OFFICE",
29 "canonicalUrl": "https://jobs.example.com/job-changed"
30 },
31 {
32 "postingKey": "job-same",
33 "title": "Product Manager",
34 "department": "Product",
35 "location": "Tbilisi",
36 "canonicalUrl": "https://jobs.example.com/job-same"
37 }
38 ]
39 },
40 "current": {
41 "snapshotId": "jobs-ge-2026-09-01",
42 "observedAt": "2026-09-01T09:00:00.000Z",
43 "sourceLabel": "Authorized weekly export",
44 "postings": [
45 {
46 "postingKey": "job-added",
47 "title": "Brand Designer",
48 "department": "Marketing",
49 "location": "Tbilisi",
50 "canonicalUrl": "https://jobs.example.com/job-added"
51 },
52 {
53 "postingKey": "job-changed",
54 "title": "Software Engineer",
55 "department": "Engineering",
56 "location": "Remote",
57 "workplaceType": "REMOTE",
58 "canonicalUrl": "https://jobs.example.com/job-changed"
59 },
60 {
61 "postingKey": "job-same",
62 "title": "Product Manager",
63 "department": "Product",
64 "location": "Tbilisi",
65 "canonicalUrl": "https://jobs.example.com/job-same"
66 }
67 ]
68 },
69 "changeTypes": [
70 "ADDED",
71 "REMOVED",
72 "CHANGED"
73 ],
74 "changedFields": [],
75 "includeBeforeAfter": true,
76 "maxChanges": 2000,
77 "inputLabel": "weekly-job-board-diff",
78 "acknowledgeObservedDiffOnly": true
79};
80
81
82const run = await client.actor("zinin/job-board-snapshot-change-detector").call(input);
83
84
85console.log('Results from dataset');
86console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
87const { items } = await client.dataset(run.defaultDatasetId).listItems();
88items.forEach((item) => {
89 console.dir(item);
90});
91
92