1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "items": [
12 {
13 "title": "Natural History Museum",
14 "subTitle": null,
15 "description": "Landmark museum of animals and natural phenomena, with hands-on exhibits and animatronic dinosaurs.",
16 "ownerDescription": null,
17 "price": null,
18 "categoryName": "Natural history museum",
19 "address": "Cromwell Rd, South Kensington, London SW7 5BD, United Kingdom",
20 "neighborhood": "South Kensington",
21 "street": "Cromwell Rd",
22 "city": "London",
23 "postalCode": "SW7 5BD",
24 "state": null,
25 "countryCode": "GB",
26 "website": "https://www.nhm.ac.uk/",
27 "phone": "+44 20 7942 5000",
28 "phoneUnformatted": "+442079425000",
29 "location": {
30 "lat": 51.496715,
31 "lng": -0.1763672
32 },
33 "totalScore": 4.6,
34 "reviewsCount": 39058,
35 "permanentlyClosed": false,
36 "temporarilyClosed": false,
37 "placeId": "ChIJPy8Y5kIFdkgRxGSXw4Xjt3s",
38 "cid": "8914844151054820548",
39 "url": "https://www.google.com/maps/search/?api=1&query=Natural%20History%20Museum&query_place_id=ChIJPy8Y5kIFdkgRxGSXw4Xjt3s",
40 "scrapedAt": "2026-09-22T23:07:38.397Z",
41 "additionalInfo": {
42 "Accessibility": [
43 {
44 "Wheelchair accessible entrance": true
45 },
46 {
47 "Wheelchair accessible parking lot": true
48 },
49 {
50 "Wheelchair accessible restroom": true
51 },
52 {
53 "Wheelchair accessible seating": true
54 }
55 ]
56 },
57 "_exampleProvenance": {
58 "sourceActorId": "nwua9Gu5YrADL7ZDj",
59 "sourceRunId": "5VeVFvxu0MQhPBrWY",
60 "sourceDatasetId": "WJkSy7pXIRxQlwPvn",
61 "curatedPublicSnapshot": true,
62 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
63 }
64 },
65 {
66 "title": "Museum of Illusions",
67 "subTitle": null,
68 "description": null,
69 "ownerDescription": "Come challenge your senses at Museum of Illusions London, an interactive museum and immersive experience located on Tottenham Court Road in the heart of London. Explore a must see attraction that blends museum with illusion rooms, installations and holograms that make it one of the top attractions for anyone looking for fun things to do in London. Perfect for kids activities, family fun, birthday parties, field trips, date night, group activities, teambuilding and corporate events, it is a family friendly museum where educational fun meets unforgettable entertainment. Defy gravity, grow and shrink your body, walk into a life-size kaleidoscope and play tricks on your senses at every turn.",
70 "price": null,
71 "categoryName": "Museum",
72 "address": "6, 17 Tottenham Ct Rd, London W1T 1BJ, United Kingdom",
73 "neighborhood": null,
74 "street": "6, 17 Tottenham Ct Rd",
75 "city": "London",
76 "postalCode": "W1T 1BJ",
77 "state": null,
78 "countryCode": "GB",
79 "website": "https://moilondon.uk/?utm_source=google&utm_medium=local&utm_campaign=uberall",
80 "phone": "",
81 "phoneUnformatted": "",
82 "location": {
83 "lat": 51.5174418,
84 "lng": -0.1316447
85 },
86 "totalScore": 4.8,
87 "reviewsCount": 1015,
88 "permanentlyClosed": false,
89 "temporarilyClosed": false,
90 "placeId": "ChIJsS5McdcbdkgR9rc9sUf1ZS4",
91 "cid": "3343347986657556470",
92 "url": "https://www.google.com/maps/search/?api=1&query=Museum%20of%20Illusions&query_place_id=ChIJsS5McdcbdkgR9rc9sUf1ZS4",
93 "scrapedAt": "2026-09-22T23:07:41.959Z",
94 "additionalInfo": {
95 "Service options": [
96 {
97 "Onsite services": true
98 }
99 ],
100 "Accessibility": [
101 {
102 "Assisted listening devices": true
103 },
104 {
105 "Wheelchair accessible entrance": true
106 },
107 {
108 "Wheelchair accessible restroom": true
109 }
110 ],
111 "Amenities": [
112 {
113 "Offers tours": true
114 },
115 {
116 "Restroom": true
117 },
118 {
119 "Wi-Fi": true
120 },
121 {
122 "Free Wi-Fi": true
123 }
124 ],
125 "Crowd": [
126 {
127 "Family-friendly": true
128 }
129 ],
130 "Planning": [
131 {
132 "Getting tickets in advance recommended": true
133 }
134 ],
135 "Payments": [
136 {
137 "Admission fee": true
138 }
139 ],
140 "Children": [
141 {
142 "Discounts for kids": true
143 },
144 {
145 "Family discount": true
146 },
147 {
148 "Good for kids": true
149 },
150 {
151 "Kid-friendly activities": true
152 }
153 ]
154 },
155 "_exampleProvenance": {
156 "sourceActorId": "nwua9Gu5YrADL7ZDj",
157 "sourceRunId": "5VeVFvxu0MQhPBrWY",
158 "sourceDatasetId": "WJkSy7pXIRxQlwPvn",
159 "curatedPublicSnapshot": true,
160 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
161 }
162 },
163 {
164 "title": "Science Museum",
165 "subTitle": null,
166 "description": "A vast treasury of science & invention, famous for its state-of-the-art interactive exhibits.",
167 "ownerDescription": "Free to visit, the Science Museum is a must-see as part of any trip to London, with award-winning exhibitions, iconic objects and stories of incredible scientific achievement",
168 "price": null,
169 "categoryName": "Museum",
170 "address": "Exhibition Rd, South Kensington, London SW7 2DD, United Kingdom",
171 "neighborhood": "South Kensington",
172 "street": "Exhibition Rd",
173 "city": "London",
174 "postalCode": "SW7 2DD",
175 "state": null,
176 "countryCode": "GB",
177 "website": "https://www.sciencemuseum.org.uk/",
178 "phone": "+44 330 058 0058",
179 "phoneUnformatted": "+443300580058",
180 "location": {
181 "lat": 51.4972216,
182 "lng": -0.1767283
183 },
184 "totalScore": 4.6,
185 "reviewsCount": 77054,
186 "permanentlyClosed": false,
187 "temporarilyClosed": false,
188 "placeId": "ChIJP9oAE0MFdkgR3iKGFKZO1SE",
189 "cid": "2437941248506864350",
190 "url": "https://www.google.com/maps/search/?api=1&query=Science%20Museum&query_place_id=ChIJP9oAE0MFdkgR3iKGFKZO1SE",
191 "scrapedAt": "2026-09-22T23:07:42.214Z",
192 "additionalInfo": {
193 "Service options": [
194 {
195 "Onsite services": true
196 }
197 ],
198 "Highlights": [
199 {
200 "Live performances": true
201 }
202 ],
203 "Accessibility": [
204 {
205 "Wheelchair accessible entrance": true
206 },
207 {
208 "Wheelchair accessible parking lot": true
209 },
210 {
211 "Wheelchair accessible restroom": true
212 },
213 {
214 "Wheelchair accessible seating": true
215 }
216 ],
217 "Offerings": [
218 {
219 "Gift shop": true
220 },
221 {
222 "Theater": true
223 }
224 ],
225 "Amenities": [
226 {
227 "Restaurant": true
228 },
229 {
230 "Restroom": true
231 },
232 {
233 "Wi-Fi": true
234 },
235 {
236 "Free Wi-Fi": true
237 }
238 ],
239 "Crowd": [
240 {
241 "Family-friendly": true
242 }
243 ],
244 "Planning": [
245 {
246 "Getting tickets in advance recommended": true
247 }
248 ],
249 "Children": [
250 {
251 "Good for kids": true
252 },
253 {
254 "Has changing table(s)": true
255 }
256 ],
257 "Parking": [
258 {
259 "Free parking lot": true
260 },
261 {
262 "Paid parking lot": true
263 },
264 {
265 "Paid street parking": true
266 }
267 ]
268 },
269 "_exampleProvenance": {
270 "sourceActorId": "nwua9Gu5YrADL7ZDj",
271 "sourceRunId": "5VeVFvxu0MQhPBrWY",
272 "sourceDatasetId": "WJkSy7pXIRxQlwPvn",
273 "curatedPublicSnapshot": true,
274 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
275 }
276 }
277 ]
278};
279
280
281const run = await client.actor("zinin/google-maps-chain-location-grouper").call(input);
282
283
284console.log('Results from dataset');
285console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
286const { items } = await client.dataset(run.defaultDatasetId).listItems();
287items.forEach((item) => {
288 console.dir(item);
289});
290
291