1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "reviews": [
10 {
11 "placeId": "demo-cafe-1",
12 "locationName": "Demo Cafe",
13 "publishedAt": "2026-09-20",
14 "rating": 5,
15 },
16 {
17 "placeId": "demo-cafe-1",
18 "locationName": "Demo Cafe",
19 "publishedAt": "2026-08-02",
20 "rating": 4,
21 },
22 {
23 "placeId": "demo-cafe-1",
24 "locationName": "Demo Cafe",
25 "publishedAt": "2026-03-15",
26 "rating": 4,
27 },
28 {
29 "placeId": "demo-gym-2",
30 "locationName": "Demo Gym",
31 "publishedAt": "2025-05-11",
32 "rating": 3,
33 },
34 {
35 "placeId": "demo-gym-2",
36 "locationName": "Demo Gym",
37 "publishedAt": "2025-01-30",
38 "rating": 4,
39 },
40 ],
41 "referenceDate": "2026-10-01",
42}
43
44
45run = client.actor("practical_ai_lab_jp/pal-maps-review-recency-audit").call(run_input=run_input)
46
47
48print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
49for item in client.dataset(run.default_dataset_id).iterate_items():
50 print(item)
51
52