1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "reviewId": "RV101",
12 "business": "Cafe Alpha",
13 "topic": "service",
14 "category": "negative-unanswered",
15 "value": 1,
16 "rating": 1,
17 "date": "2026-10-12",
18 },
19 {
20 "reviewId": "RV102",
21 "business": "Cafe Alpha",
22 "topic": "waiting time",
23 "category": "negative-unanswered",
24 "value": 1,
25 "rating": 2,
26 "date": "2026-10-12",
27 },
28 {
29 "reviewId": "RV202",
30 "business": "Bistro Beta",
31 "topic": "food",
32 "category": "positive-answered",
33 "value": 1,
34 "rating": 5,
35 "date": "2026-10-12",
36 },
37 ],
38 "previousItems": [
39 {
40 "reviewId": "RV100",
41 "business": "Cafe Alpha",
42 "topic": "service",
43 "category": "negative-unanswered",
44 "value": 1,
45 "rating": 1,
46 "date": "2026-10-05",
47 },
48 {
49 "reviewId": "RV201",
50 "business": "Bistro Beta",
51 "topic": "food",
52 "category": "positive-answered",
53 "value": 1,
54 "rating": 5,
55 "date": "2026-10-05",
56 },
57 ],
58}
59
60
61run = client.actor("quanmatrix/google-maps-review-complaint-drift-analyzer").call(run_input=run_input)
62
63
64print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
65for item in client.dataset(run.default_dataset_id).iterate_items():
66 print(item)
67
68