1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "businesses": [
12 {
13 "businessName": "Example Domain — demonstration, not a local business",
14 "website": "https://example.com",
15 "source": {
16 "type": "customer_supplied",
17 "reference": "RFC 2606 example domain"
18 },
19 "reviews": [
20 {
21 "reviewId": "synthetic-1",
22 "rating": 2,
23 "date": "2026-11-01",
24 "responseStatus": "unknown"
25 },
26 {
27 "reviewId": "synthetic-2",
28 "rating": 1,
29 "date": "2026-11-02",
30 "responseStatus": "absent"
31 },
32 {
33 "reviewId": "synthetic-3",
34 "rating": 2,
35 "date": "2026-11-03",
36 "responseStatus": "present",
37 "businessResponse": "Synthetic demonstration reply"
38 }
39 ]
40 }
41 ],
42 "authorizedData": true,
43 "reviewDateRange": {
44 "from": "2026-01-01",
45 "to": "2026-12-31"
46 }
47};
48
49
50const run = await client.actor("afkdigital/local-business-website-review-auditor").call(input);
51
52
53console.log('Results from dataset');
54console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
55const { items } = await client.dataset(run.defaultDatasetId).listItems();
56items.forEach((item) => {
57 console.dir(item);
58});
59
60