1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "businesses": [{
10 "businessName": "Example Domain — demonstration, not a local business",
11 "website": "https://example.com",
12 "source": {
13 "type": "customer_supplied",
14 "reference": "RFC 2606 example domain",
15 },
16 "reviews": [
17 {
18 "reviewId": "synthetic-1",
19 "rating": 2,
20 "date": "2026-11-01",
21 "responseStatus": "unknown",
22 },
23 {
24 "reviewId": "synthetic-2",
25 "rating": 1,
26 "date": "2026-11-02",
27 "responseStatus": "absent",
28 },
29 {
30 "reviewId": "synthetic-3",
31 "rating": 2,
32 "date": "2026-11-03",
33 "responseStatus": "present",
34 "businessResponse": "Synthetic demonstration reply",
35 },
36 ],
37 }],
38 "authorizedData": True,
39 "reviewDateRange": {
40 "from": "2026-01-01",
41 "to": "2026-12-31",
42 },
43}
44
45
46run = client.actor("afkdigital/local-business-website-review-auditor").call(run_input=run_input)
47
48
49print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
50for item in client.dataset(run.default_dataset_id).iterate_items():
51 print(item)
52
53