1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "reviews": [
12 {
13 "businessName": "Sunrise Family Dental",
14 "reviewerName": "Carla M.",
15 "rating": 1,
16 "reviewDate": "2026-09-02",
17 "reviewText": "I had my appointment at 9:30am on Tuesday and waited 50 minutes. The receptionist was rude when I asked how much longer and the bill was $80 more than the quote. Very disappointed.",
18 "reviewerReviewCount": 14
19 },
20 {
21 "businessName": "Sunrise Family Dental",
22 "reviewerName": "Tom R.",
23 "rating": 1,
24 "reviewDate": "2026-09-10",
25 "reviewText": "My sister went here and said they overcharged her. Never going.",
26 "reviewerReviewCount": 3
27 },
28 {
29 "businessName": "Sunrise Family Dental",
30 "reviewerName": "Kevin D.",
31 "rating": 1,
32 "reviewDate": "2026-09-21",
33 "reviewText": "I used to work here and the management is a joke. Go to BrightSmile Dental instead, much better.",
34 "reviewerReviewCount": 6
35 },
36 {
37 "businessName": "Sunrise Family Dental",
38 "reviewerName": "Anon 22",
39 "rating": 1,
40 "reviewDate": "2026-10-03",
41 "reviewText": "The hygienist Jenna was a total idiot. Her personal number is 512-555-0199 if you want to tell her yourself. Crap service.",
42 "reviewerReviewCount": 2
43 },
44 {
45 "businessName": "Sunrise Family Dental",
46 "reviewerName": "J S",
47 "rating": 1,
48 "reviewDate": "2026-10-14T10:05:00Z",
49 "reviewText": "Terrible place, avoid at all costs.",
50 "reviewerReviewCount": 1
51 },
52 {
53 "businessName": "Sunrise Family Dental",
54 "reviewerName": "M K",
55 "rating": 1,
56 "reviewDate": "2026-10-14T13:40:00Z",
57 "reviewText": "Terrible place. Avoid at all costs!!",
58 "reviewerReviewCount": 1
59 },
60 {
61 "businessName": "Sunrise Family Dental",
62 "reviewerName": "R P",
63 "rating": 2,
64 "reviewDate": "2026-10-15T08:00:00Z",
65 "reviewText": "Scam dentist. They are thieves.",
66 "reviewerReviewCount": 2
67 }
68 ],
69 "businesses": [
70 {
71 "businessName": "Sunrise Family Dental",
72 "businessCategory": "Dentist",
73 "businessPhone": "(512) 555-0142",
74 "staffNames": [
75 "Dr. Amelia Ortiz",
76 "Jenna Park"
77 ],
78 "competitorNames": [
79 "BrightSmile Dental"
80 ],
81 "otherBusinessNames": [
82 "Main Street Pizza"
83 ]
84 }
85 ],
86 "maxBriefs": 1,
87 "maxBusinessReports": 0,
88 "brandColor": "#7c3aed"
89};
90
91
92const run = await client.actor("translucent_wire/unfair-review-policy-auditor").call(input);
93
94
95console.log('Results from dataset');
96console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
97const { items } = await client.dataset(run.defaultDatasetId).listItems();
98items.forEach((item) => {
99 console.dir(item);
100});
101
102