1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "schemaVersion": "1.0",
12 "asOf": "2026-08-05T12:00:00Z",
13 "rows": [
14 {
15 "itemId": "case-001",
16 "openedAt": "2026-08-05T08:00:00Z",
17 "dueAt": "2026-08-05T10:00:00Z",
18 "resolvedAt": "2026-08-05T09:30:00Z"
19 },
20 {
21 "itemId": "case-002",
22 "openedAt": "2026-08-05T08:00:00Z",
23 "dueAt": "2026-08-05T09:00:00Z",
24 "resolvedAt": "2026-08-05T09:30:00Z"
25 },
26 {
27 "itemId": "case-003",
28 "openedAt": "2026-08-05T08:00:00Z",
29 "dueAt": "2026-08-05T09:00:00Z",
30 "resolvedAt": null
31 },
32 {
33 "itemId": "case-004",
34 "openedAt": "2026-08-05T11:00:00Z",
35 "dueAt": "2026-08-05T13:00:00Z",
36 "resolvedAt": null
37 }
38 ]
39};
40
41
42const run = await client.actor("zinin/us-brand-signal-sla-checker").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