1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "branches": [
12 {
13 "branchId": "BR-001",
14 "name": "Central Branch",
15 "region": "north",
16 "confirmedOn": "2026-10-20",
17 "hours": {
18 "monday": "09:00-18:00",
19 "tuesday": "09:00-18:00",
20 "wednesday": "09:00-18:00",
21 "thursday": "09:00-18:00",
22 "friday": "09:00-18:00",
23 "saturday": "10:00-16:00",
24 "sunday": "closed"
25 },
26 "specialHours": {
27 "2026-12-25": "closed",
28 "2026-12-31": "09:00-15:00"
29 }
30 },
31 {
32 "branchId": "BR-002",
33 "name": "Harbor Branch",
34 "region": "south",
35 "confirmedOn": "2026-05-02",
36 "hours": {
37 "monday": "09:00-18:00",
38 "tuesday": "09:00-17:00",
39 "wednesday": "09:00-18:00",
40 "thursday": "09:00-18:00",
41 "friday": "09:00-18:00",
42 "saturday": "10:00-16:00",
43 "sunday": "10:00-14:00"
44 },
45 "specialHours": {
46 "2026-12-25": "10:00-14:00"
47 }
48 },
49 {
50 "branchId": "BR-003",
51 "name": "Airport Kiosk",
52 "region": "south",
53 "hours": {
54 "monday": "09:00-18:00",
55 "tuesday": "09:00-18:00",
56 "wednesday": "09:00-18:00",
57 "thursday": "09:00-18:00",
58 "friday": "09:00-18:00",
59 "saturday": "10:00-16:00"
60 }
61 }
62 ],
63 "policy": {
64 "weeklyHours": {
65 "monday": "09:00-18:00",
66 "tuesday": "09:00-18:00",
67 "wednesday": "09:00-18:00",
68 "thursday": "09:00-18:00",
69 "friday": "09:00-18:00",
70 "saturday": "10:00-16:00",
71 "sunday": "closed"
72 },
73 "regionalWeeklyHours": {},
74 "holidays": [
75 {
76 "date": "2026-12-25",
77 "name": "Year-end closure",
78 "hours": "closed"
79 },
80 {
81 "date": "2026-12-31",
82 "name": "Short trading day",
83 "hours": "09:00-15:00"
84 }
85 ]
86 },
87 "asOfDate": "2026-11-05"
88};
89
90
91const run = await client.actor("practical_ai_lab_jp/pal-maps-branch-hours-policy-exception-audit").call(input);
92
93
94console.log('Results from dataset');
95console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
96const { items } = await client.dataset(run.defaultDatasetId).listItems();
97items.forEach((item) => {
98 console.dir(item);
99});
100
101