1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "items": [
9 {
10 "title": "Harbor Street Cafe",
11 "text": "Waited 35 minutes for two flat whites and the barista forgot one of them. Cakes were lovely though.",
12 "stars": 2,
13 "publishedAtDate": "2026-10-20T09:12:00Z",
14 "reviewId": "sample-1",
15 },
16 {
17 "title": "Harbor Street Cafe",
18 "text": "Great coffee and very friendly staff, but the bathroom was dirty and out of soap.",
19 "stars": 3,
20 "publishedAtDate": "2026-10-11T14:40:00Z",
21 "reviewId": "sample-2",
22 },
23 {
24 "title": "Harbor Street Cafe",
25 "text": "Best almond croissant in town. Quick service even on a busy Saturday.",
26 "stars": 5,
27 "publishedAtDate": "2026-09-27T10:05:00Z",
28 "reviewId": "sample-3",
29 },
30 ] }
31
32
33run = client.actor("seasons-ai/reviews-to-fix-list").call(run_input=run_input)
34
35
36print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40