1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "places": [
10 {
11 "placeId": "SAMPLE-PLACE-001",
12 "title": "Example Fixtures Harbor",
13 "postalCode": "10001",
14 "city": "Harborview",
15 "lastReviewDate": "2026-10-20",
16 },
17 {
18 "placeId": "SAMPLE-PLACE-002",
19 "title": "Example Fixtures Riverside",
20 "postalCode": "10002",
21 "city": "Harborview",
22 "lastReviewDate": "2025-12-15",
23 },
24 {
25 "placeId": "SAMPLE-PLACE-003",
26 "title": "Example Fixtures Uptown",
27 "postalCode": "10003",
28 "city": "Harborview",
29 "lastReviewDate": "2026-03-01",
30 },
31 {
32 "placeId": "SAMPLE-PLACE-003",
33 "title": "Example Fixtures Uptown",
34 "postalCode": "10003",
35 "city": "Harborview",
36 "lastReviewDate": "2026-02-01",
37 },
38 {
39 "placeId": "SAMPLE-PLACE-005",
40 "title": "Example Fixtures Lakeside",
41 "postalCode": "10005",
42 "city": "Harborview",
43 },
44 {
45 "placeId": "SAMPLE-PLACE-009",
46 "title": "Example Fixtures Airport",
47 "postalCode": "10009",
48 "city": "Harborview",
49 "lastReviewDate": "2026-09-01",
50 },
51 ],
52 "roster": [
53 {
54 "branchId": "BR-001",
55 "placeId": "SAMPLE-PLACE-001",
56 "owner": "Facilities North",
57 "escalateTo": "Regional Operations",
58 },
59 {
60 "branchId": "BR-002",
61 "placeId": "SAMPLE-PLACE-002",
62 "owner": "Facilities South",
63 "escalateTo": "Regional Operations",
64 },
65 {
66 "branchId": "BR-003",
67 "placeId": "SAMPLE-PLACE-003",
68 "owner": "Facilities North",
69 "escalateTo": "Regional Operations",
70 },
71 {
72 "branchId": "BR-004",
73 "placeId": "SAMPLE-PLACE-004",
74 "owner": "Facilities West",
75 "escalateTo": "Regional Operations",
76 },
77 {
78 "branchId": "BR-005",
79 "placeId": "SAMPLE-PLACE-005",
80 "owner": "Facilities South",
81 "escalateTo": "Regional Operations",
82 },
83 ],
84 "referenceDate": "2026-11-01",
85}
86
87
88run = client.actor("practical_ai_lab_jp/pal-maps-branch-exception-escalation-audit").call(run_input=run_input)
89
90
91print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
92for item in client.dataset(run.default_dataset_id).iterate_items():
93 print(item)
94
95