1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "maxDiscoveryChargeUsd": 0.5,
10 "sourceMode": "list",
11 "itemsList": [
12 {
13 "placeId": "ChIJ-bright-smile",
14 "title": "Bright Smile Dental",
15 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ-bright-smile",
16 "totalScore": 4.1,
17 "reviewsCount": 87,
18 "categoryName": "Dentist",
19 "address": "12 Main St, Austin, TX",
20 "city": "Austin",
21 "countryCode": "US",
22 "stars": 2,
23 "text": "Waited 45 minutes past my appointment time and nobody apologised. Front desk never picks up the phone.",
24 "publishedAtDate": "2026-09-01",
25 "responseFromOwnerText": None,
26 "name": "REDACTED",
27 },
28 {
29 "placeId": "ChIJ-bright-smile",
30 "title": "Bright Smile Dental",
31 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ-bright-smile",
32 "totalScore": 4.1,
33 "reviewsCount": 87,
34 "categoryName": "Dentist",
35 "address": "12 Main St, Austin, TX",
36 "city": "Austin",
37 "countryCode": "US",
38 "stars": 1,
39 "text": "Called four times to reschedule, no answer, no callback. Went elsewhere.",
40 "publishedAtDate": "2026-08-20",
41 "responseFromOwnerText": None,
42 "name": "REDACTED",
43 },
44 {
45 "placeId": "ChIJ-bright-smile",
46 "title": "Bright Smile Dental",
47 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ-bright-smile",
48 "totalScore": 4.1,
49 "reviewsCount": 87,
50 "categoryName": "Dentist",
51 "address": "12 Main St, Austin, TX",
52 "city": "Austin",
53 "countryCode": "US",
54 "stars": 5,
55 "text": "Dr. Patel is wonderful with kids, very gentle.",
56 "publishedAtDate": "2026-08-15",
57 "responseFromOwnerText": "Thank you!",
58 "name": "REDACTED",
59 },
60 {
61 "placeId": "ChIJ-bright-smile",
62 "title": "Bright Smile Dental",
63 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ-bright-smile",
64 "totalScore": 4.1,
65 "reviewsCount": 87,
66 "categoryName": "Dentist",
67 "address": "12 Main St, Austin, TX",
68 "city": "Austin",
69 "countryCode": "US",
70 "stars": 3,
71 "text": "Good dentist but the booking is chaos - double booked twice this year.",
72 "publishedAtDate": "2026-08-02",
73 "responseFromOwnerText": None,
74 "name": "REDACTED",
75 },
76 {
77 "placeId": "ChIJ-bright-smile",
78 "title": "Bright Smile Dental",
79 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ-bright-smile",
80 "totalScore": 4.1,
81 "reviewsCount": 87,
82 "categoryName": "Dentist",
83 "address": "12 Main St, Austin, TX",
84 "city": "Austin",
85 "countryCode": "US",
86 "stars": 4,
87 "text": "Clean clinic, friendly hygienist.",
88 "publishedAtDate": "2026-07-25",
89 "responseFromOwnerText": None,
90 "name": "REDACTED",
91 },
92 {
93 "placeId": "ChIJ-bright-smile",
94 "title": "Bright Smile Dental",
95 "url": "https://www.google.com/maps/place/?q=place_id:ChIJ-bright-smile",
96 "totalScore": 4.1,
97 "reviewsCount": 87,
98 "categoryName": "Dentist",
99 "address": "12 Main St, Austin, TX",
100 "city": "Austin",
101 "countryCode": "US",
102 "stars": 2,
103 "text": "Overcharged compared to the quote and impossible to reach anyone about it.",
104 "publishedAtDate": "2026-07-10",
105 "responseFromOwnerText": "We are sorry, please call us.",
106 "name": "REDACTED",
107 },
108 {
109 "title": "Python Software Foundation",
110 "website": "https://www.python.org",
111 "phone": None,
112 "totalScore": 4.8,
113 "reviewsCount": 120,
114 "categoryName": "Non-profit",
115 "city": "Wilmington",
116 "countryCode": "US",
117 "placeId": "ChIJ-psf",
118 "reviews": [
119 {
120 "stars": 5,
121 "text": "Great community and documentation.",
122 },
123 {
124 "stars": 4,
125 "text": "Conference was well organised.",
126 },
127 {
128 "stars": 5,
129 "text": "Helpful mailing lists.",
130 },
131 ],
132 },
133 {
134 "title": "Corner Café",
135 "website": "https://www.mozilla.org",
136 "totalScore": 3.6,
137 "reviewsCount": 214,
138 "categoryName": "Cafe",
139 "city": "San Francisco",
140 "countryCode": "US",
141 "placeId": "ChIJ-corner",
142 "reviews": [
143 {
144 "stars": 1,
145 "text": "Cold coffee, rude staff, 20 minute wait for a latte.",
146 "publishedAtDate": "2026-09-10",
147 },
148 {
149 "stars": 2,
150 "text": "Waited ages, order was wrong, nobody cared.",
151 "publishedAtDate": "2026-09-05",
152 },
153 {
154 "stars": 2,
155 "text": "Slow service again. The pastries are nice though.",
156 "publishedAtDate": "2026-08-28",
157 },
158 {
159 "stars": 5,
160 "text": "Lovely pastries and a sunny terrace.",
161 "publishedAtDate": "2026-08-01",
162 },
163 {
164 "stars": 3,
165 "text": "Decent food, chaotic service at lunchtime.",
166 "publishedAtDate": "2026-07-20",
167 },
168 ],
169 },
170 ],
171}
172
173
174run = client.actor("rich_minds/google-reviews-insights").call(run_input=run_input)
175
176
177print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
178for item in client.dataset(run.default_dataset_id).iterate_items():
179 print(item)
180
181