1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "reviews": [
9 {
10 "title": "Café Aurora",
11 "stars": 5,
12 "publishedAtDate": "2026-10-02",
13 "text": "Best flat white in town and the staff is super friendly. A bit pricey though.",
14 },
15 {
16 "title": "Café Aurora",
17 "stars": 2,
18 "publishedAtDate": "2026-10-05",
19 "text": "Waited 25 minutes for two coffees. Nobody apologized.",
20 },
21 {
22 "title": "Café Aurora",
23 "stars": 4,
24 "publishedAtDate": "2026-10-09",
25 "text": "Lovely pastries, cozy place. Wish they had oat milk and more seats.",
26 },
27 {
28 "title": "Café Aurora",
29 "stars": 1,
30 "publishedAtDate": "2026-10-12",
31 "text": "Card machine was broken and they only took cash. Very slow service.",
32 },
33 {
34 "title": "Café Aurora",
35 "stars": 5,
36 "publishedAtDate": "2026-10-15",
37 "text": "Amazing croissants, friendly baristas, great wifi to work.",
38 },
39 {
40 "title": "Café Aurora",
41 "stars": 3,
42 "publishedAtDate": "2026-10-20",
43 "text": "Good coffee but too noisy and the wait was long at lunch time.",
44 },
45 {
46 "title": "Café Aurora",
47 "stars": 5,
48 "publishedAtDate": "2026-10-22",
49 "text": "El mejor café de la zona, el personal muy amable.",
50 },
51 {
52 "title": "Café Aurora",
53 "stars": 2,
54 "publishedAtDate": "2026-10-28",
55 "text": "Prices went up again and the portions are smaller. Disappointed.",
56 },
57 ] }
58
59
60run = client.actor("datatools-ai/review-insights-ai").call(run_input=run_input)
61
62
63print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
64for item in client.dataset(run.default_dataset_id).iterate_items():
65 print(item)
66
67