1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "reviews": [
9 {
10 "title": "Example Bakery",
11 "placeId": "example-1",
12 "stars": 2,
13 "text": "Waited 25 minutes for two croissants and nobody apologised. The bread is good, but the service on Saturday morning is chaos.",
14 "publishedAtDate": "2026-10-20T09:12:00Z",
15 "reviewId": "demo-1",
16 },
17 {
18 "title": "Example Bakery",
19 "placeId": "example-1",
20 "stars": 5,
21 "text": "Best sourdough in town and the staff remembered my order.",
22 "publishedAtDate": "2026-10-21T08:30:00Z",
23 "reviewId": "demo-2",
24 },
25 {
26 "title": "Example Bakery",
27 "placeId": "example-1",
28 "stars": 1,
29 "text": "Bestelde een taart voor zaterdag, bij het afhalen was ze er niet. Geen excuses, geen oplossing.",
30 "publishedAtDate": "2026-10-22T15:40:00Z",
31 "reviewId": "demo-3",
32 },
33 ] }
34
35
36run = client.actor("olliolli/review-digest").call(run_input=run_input)
37
38
39print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
40for item in client.dataset(run.default_dataset_id).iterate_items():
41 print(item)
42
43