1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "reviews": [
9 {
10 "text": "Delivery took three weeks and nobody answered my emails.",
11 "rating": 1,
12 "date": "2026-11-28",
13 },
14 {
15 "text": "Great quality, fits perfectly. Will order again!",
16 "rating": 5,
17 "date": "2026-11-27",
18 },
19 {
20 "text": "Good product but shipping costs are too high.",
21 "rating": 3,
22 "date": "2026-11-25",
23 },
24 {
25 "text": "Support solved my issue in 10 minutes, thank you.",
26 "rating": 5,
27 "date": "2026-11-22",
28 },
29 {
30 "text": "The size chart is wrong, I had to return it.",
31 "rating": 2,
32 "date": "2026-11-20",
33 },
34 ] }
35
36
37run = client.actor("macgitarra/ai-review-analyzer").call(run_input=run_input)
38
39
40print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
41for item in client.dataset(run.default_dataset_id).iterate_items():
42 print(item)
43
44