1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "reviews": [
9 {
10 "id": "R1",
11 "productId": "EXAMPLE-BLENDER",
12 "rating": 5,
13 "date": "2026-10-01",
14 "reviewer": "a1",
15 "text": "I received this blender for free in exchange for a 5-star review. Works great!",
16 },
17 {
18 "id": "R2",
19 "productId": "EXAMPLE-BLENDER",
20 "rating": 5,
21 "date": "2026-10-02",
22 "reviewer": "a2",
23 "text": "My brother owns the company, but honestly this is the best blender I've ever used.",
24 },
25 {
26 "id": "R3",
27 "productId": "EXAMPLE-BLENDER",
28 "rating": 5,
29 "date": "2026-10-03",
30 "reviewer": "a3",
31 "text": "This blender is powerful and quiet, crushes ice in seconds and cleans up easily in the dishwasher. Highly recommend it to anyone.",
32 },
33 {
34 "id": "R4",
35 "productId": "EXAMPLE-BLENDER",
36 "rating": 5,
37 "date": "2026-10-03",
38 "reviewer": "a4",
39 "text": "This blender is powerful and quiet, crushes ice in seconds and cleans up easily in the dishwasher. Highly recommend it to everyone.",
40 },
41 {
42 "id": "R5",
43 "productId": "EXAMPLE-BLENDER",
44 "rating": 5,
45 "date": "2026-10-04",
46 "reviewer": "a5",
47 "text": "Terrible. Broke after two days and the lid leaks.",
48 },
49 {
50 "id": "R6",
51 "productId": "EXAMPLE-BLENDER",
52 "rating": 4,
53 "date": "2026-10-05",
54 "reviewer": "a6",
55 "text": "Solid blender for smoothies. A bit loud on high, but the jar is sturdy and easy to clean.",
56 },
57 {
58 "id": "R7",
59 "productId": "EXAMPLE-BLENDER",
60 "rating": 2,
61 "date": "2026-10-06",
62 "reviewer": "a7",
63 "text": "The motor smells hot after a minute. Returning it.",
64 },
65 ] }
66
67
68run = client.actor("ultimatemc/review-integrity-checker").call(run_input=run_input)
69
70
71print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
72for item in client.dataset(run.default_dataset_id).iterate_items():
73 print(item)
74
75