1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "sourceMode": "list",
12 "maxDiscoveryChargeUsd": 0.5,
13 "travellerBrief": "Quiet hotel for a couple, walkable to the old town, with a pool and free cancellation",
14 "itemsList": [
15 {
16 "hotelId": "demo-1001",
17 "name": "Casa do Largo Boutique Hotel",
18 "url": "https://www.booking.com/hotel/pt/casa-do-largo-demo.html?checkin=2026-10-26&checkout=2026-10-28&group_adults=2",
19 "type": "Hotel",
20 "stars": 4,
21 "description": "Set in a restored 18th-century townhouse in Alfama, Casa do Largo Boutique Hotel offers a rooftop terrace with an outdoor swimming pool and views over the Tagus. The quiet side street is a 6-minute walk from Lisbon Cathedral.",
22 "price": 356,
23 "currency": "US$",
24 "rating": 9.1,
25 "ratingLabel": "Wonderful",
26 "reviews": 1284,
27 "checkIn": "From 15:00 to 23:00",
28 "checkOut": "Until 12:00",
29 "checkInDate": "2026-10-26",
30 "checkOutDate": "2026-10-28",
31 "location": {
32 "lat": "38.7112",
33 "lng": "-9.1312"
34 },
35 "address": {
36 "full": "Largo do Contador-Mor 7, Alfama, 1100-194 Lisbon, Portugal",
37 "city": "Lisbon",
38 "country": "Portugal"
39 },
40 "image": "https://cf.bstatic.com/xdata/images/hotel/max1024x768/demo-1001.jpg",
41 "rooms": [
42 {
43 "roomType": "Superior Double Room",
44 "available": true,
45 "roomsLeft": 2,
46 "facilities": [
47 "Air conditioning",
48 "Free WiFi",
49 "Soundproofing"
50 ],
51 "options": [
52 {
53 "price": 356,
54 "persons": 2,
55 "freeCancellation": true,
56 "yourChoices": [
57 "Breakfast included",
58 "Free cancellation before 24 October 2026"
59 ],
60 "hasGeniusDiscount": true
61 }
62 ]
63 }
64 ],
65 "facilities": [
66 {
67 "name": "Pool",
68 "facilities": [
69 {
70 "name": "Outdoor swimming pool",
71 "additionalInfo": {
72 "requiresAdditionalCharge": false
73 }
74 }
75 ]
76 },
77 {
78 "name": "Internet",
79 "facilities": [
80 {
81 "name": "Free WiFi"
82 }
83 ]
84 },
85 {
86 "name": "Parking",
87 "facilities": [
88 {
89 "name": "Public parking is possible at a location nearby (reservation is not needed) and costs EUR 18 per day.",
90 "additionalInfo": {
91 "requiresAdditionalCharge": true
92 }
93 }
94 ]
95 },
96 {
97 "name": "General",
98 "facilities": [
99 {
100 "name": "Non-smoking rooms"
101 },
102 {
103 "name": "Elevator"
104 },
105 {
106 "name": "Soundproof rooms"
107 }
108 ]
109 }
110 ],
111 "categoryReviews": [
112 {
113 "title": "Staff",
114 "score": 9.6
115 },
116 {
117 "title": "Cleanliness",
118 "score": 9.4
119 },
120 {
121 "title": "Location",
122 "score": 9.3
123 },
124 {
125 "title": "Value for money",
126 "score": 8.8
127 },
128 {
129 "title": "Free WiFi",
130 "score": 8.1
131 }
132 ],
133 "reviewSummary": {
134 "summary": "Guests love the rooftop pool, the calm street and the breakfast; a few mention the steep walk up from the tram.",
135 "pros": [
136 {
137 "description": "Rooftop pool with river views",
138 "numberOfMentions": 212
139 },
140 {
141 "description": "Quiet, spotless rooms",
142 "numberOfMentions": 180
143 },
144 {
145 "description": "Generous breakfast",
146 "numberOfMentions": 151
147 }
148 ],
149 "cons": [
150 {
151 "description": "Steep uphill walk from the tram stop",
152 "numberOfMentions": 64
153 }
154 ]
155 },
156 "finePrint": "A city tax of EUR 4 per person per night is charged at the property for guests aged 13 and older, up to 7 nights.",
157 "policies": [
158 {
159 "title": "Children and beds",
160 "content": "Children of any age are welcome."
161 },
162 {
163 "title": "Pets",
164 "content": "Pets are not allowed."
165 }
166 ],
167 "startUrlOrQuery": "Lisbon",
168 "timeOfScrapeISO": "2026-09-26T08:14:02.000Z"
169 },
170 {
171 "hotelId": "demo-1002",
172 "name": "Hotel Miradouro da Graça",
173 "url": "https://www.booking.com/hotel/pt/miradouro-da-graca-demo.html?checkin=2026-10-26&checkout=2026-10-28&group_adults=2",
174 "type": "Hotel",
175 "stars": 3,
176 "description": "Hotel Miradouro da Graça sits next to the Graça viewpoint and tram 28. Rooms are simple and bright; the lounge serves breakfast with a view of the castle.",
177 "price": 248,
178 "currency": "US$",
179 "rating": 8.6,
180 "ratingLabel": "Excellent",
181 "reviews": 2410,
182 "checkIn": "From 14:00",
183 "checkOut": "Until 11:00",
184 "checkInDate": "2026-10-26",
185 "checkOutDate": "2026-10-28",
186 "location": {
187 "lat": "38.7166",
188 "lng": "-9.1310"
189 },
190 "address": {
191 "full": "Rua da Graça 88, 1170-167 Lisbon, Portugal",
192 "city": "Lisbon",
193 "country": "Portugal"
194 },
195 "image": "https://cf.bstatic.com/xdata/images/hotel/max1024x768/demo-1002.jpg",
196 "rooms": [
197 {
198 "roomType": "Standard Double Room",
199 "available": true,
200 "roomsLeft": 5,
201 "facilities": [
202 "Air conditioning",
203 "Free WiFi"
204 ],
205 "options": [
206 {
207 "price": 248,
208 "persons": 2,
209 "freeCancellation": false,
210 "yourChoices": [
211 "Breakfast US$14 (optional)",
212 "Non-refundable"
213 ]
214 },
215 {
216 "price": 276,
217 "persons": 2,
218 "freeCancellation": true,
219 "yourChoices": [
220 "Breakfast included",
221 "Free cancellation before 25 October 2026"
222 ]
223 }
224 ]
225 }
226 ],
227 "facilities": [
228 {
229 "name": "Internet",
230 "facilities": [
231 {
232 "name": "Free WiFi"
233 }
234 ]
235 },
236 {
237 "name": "Parking",
238 "facilities": [
239 {
240 "name": "Private parking is possible on site (reservation is needed) and costs EUR 20 per day.",
241 "additionalInfo": {
242 "requiresAdditionalCharge": true
243 }
244 }
245 ]
246 },
247 {
248 "name": "General",
249 "facilities": [
250 {
251 "name": "Air conditioning"
252 },
253 {
254 "name": "24-hour front desk"
255 },
256 {
257 "name": "Elevator"
258 }
259 ]
260 }
261 ],
262 "categoryReviews": [
263 {
264 "title": "Staff",
265 "score": 9
266 },
267 {
268 "title": "Cleanliness",
269 "score": 8.7
270 },
271 {
272 "title": "Location",
273 "score": 8.9
274 },
275 {
276 "title": "Value for money",
277 "score": 8.9
278 },
279 {
280 "title": "Comfort",
281 "score": 8.2
282 }
283 ],
284 "reviewSummary": {
285 "summary": "Great value near the tram with a castle view at breakfast; rooms are on the small side.",
286 "pros": [
287 {
288 "description": "Next to tram 28 and the viewpoint",
289 "numberOfMentions": 301
290 },
291 {
292 "description": "Great value for Lisbon",
293 "numberOfMentions": 188
294 }
295 ],
296 "cons": [
297 {
298 "description": "Small rooms",
299 "numberOfMentions": 97
300 },
301 {
302 "description": "Street noise on weekends",
303 "numberOfMentions": 41
304 }
305 ]
306 },
307 "finePrint": "A damage deposit of EUR 100 is required on arrival and refunded at check-out. Check-in after 22:00 carries a surcharge of EUR 20.",
308 "policies": [
309 {
310 "title": "Cancellation/ prepayment",
311 "content": "Cancellation and prepayment policies vary according to accommodation type."
312 }
313 ],
314 "startUrlOrQuery": "Lisbon",
315 "timeOfScrapeISO": "2026-09-26T08:14:05.000Z",
316 "sampleMemory": {
317 "price": 272,
318 "firstSeenAt": "2026-09-19T07:02:11+00:00",
319 "note": "sample memory — the free demo's price drop"
320 }
321 },
322 {
323 "hotelId": "demo-1003",
324 "name": "Baixa Garden Suites",
325 "url": "https://www.booking.com/hotel/pt/baixa-garden-suites-demo.html?checkin=2026-10-26&checkout=2026-10-28&group_adults=2",
326 "type": "Apartment",
327 "stars": 4,
328 "description": "Baixa Garden Suites offers apartments with a kitchenette and a shared rooftop pool, 300 metres from Rossio Square. Each suite has a washing machine.",
329 "price": 298,
330 "currency": "US$",
331 "rating": 8.9,
332 "ratingLabel": "Fabulous",
333 "reviews": 640,
334 "checkIn": "From 16:00 to 20:00",
335 "checkOut": "Until 11:00",
336 "checkInDate": "2026-10-26",
337 "checkOutDate": "2026-10-28",
338 "location": {
339 "lat": "38.7127",
340 "lng": "-9.1388"
341 },
342 "address": {
343 "full": "Rua dos Correeiros 112, Baixa, 1100-167 Lisbon, Portugal",
344 "city": "Lisbon",
345 "country": "Portugal"
346 },
347 "image": "https://cf.bstatic.com/xdata/images/hotel/max1024x768/demo-1003.jpg",
348 "rooms": [
349 {
350 "roomType": "One-Bedroom Apartment",
351 "available": true,
352 "roomsLeft": 1,
353 "facilities": [
354 "Kitchenette",
355 "Washing machine",
356 "Air conditioning"
357 ],
358 "options": [
359 {
360 "price": 298,
361 "persons": 2,
362 "freeCancellation": true,
363 "yourChoices": [
364 "Free cancellation before 23 October 2026",
365 "No prepayment needed"
366 ]
367 }
368 ]
369 }
370 ],
371 "facilities": [
372 {
373 "name": "Pool",
374 "facilities": [
375 {
376 "name": "Rooftop pool"
377 },
378 {
379 "name": "Outdoor swimming pool"
380 }
381 ]
382 },
383 {
384 "name": "Kitchen",
385 "facilities": [
386 {
387 "name": "Kitchenette"
388 },
389 {
390 "name": "Washing machine"
391 }
392 ]
393 },
394 {
395 "name": "Internet",
396 "facilities": [
397 {
398 "name": "Free WiFi"
399 }
400 ]
401 },
402 {
403 "name": "Parking",
404 "facilities": [
405 {
406 "name": "Public parking is possible at a location nearby and costs EUR 25 per day.",
407 "additionalInfo": {
408 "requiresAdditionalCharge": true
409 }
410 }
411 ]
412 }
413 ],
414 "categoryReviews": [
415 {
416 "title": "Staff",
417 "score": 8.8
418 },
419 {
420 "title": "Cleanliness",
421 "score": 9.1
422 },
423 {
424 "title": "Location",
425 "score": 9.6
426 },
427 {
428 "title": "Value for money",
429 "score": 8.6
430 }
431 ],
432 "reviewSummary": {
433 "summary": "Central apartments with a pool; check-in closes at 20:00.",
434 "pros": [
435 {
436 "description": "Unbeatable central location",
437 "numberOfMentions": 140
438 },
439 {
440 "description": "Kitchenette and washing machine",
441 "numberOfMentions": 66
442 }
443 ],
444 "cons": [
445 {
446 "description": "Early check-in cut-off",
447 "numberOfMentions": 38
448 }
449 ]
450 },
451 "finePrint": "Guests arriving after 20:00 must contact the property in advance; late check-in carries an extra charge of EUR 30. This property only accepts cash for the city tax.",
452 "policies": [
453 {
454 "title": "Parties",
455 "content": "Parties/events are not allowed."
456 }
457 ],
458 "startUrlOrQuery": "Lisbon",
459 "timeOfScrapeISO": "2026-09-26T08:14:07.000Z"
460 },
461 {
462 "hotelId": "demo-1004",
463 "name": "Avenida Liberdade Grand",
464 "url": "https://www.booking.com/hotel/pt/avenida-liberdade-grand-demo.html?checkin=2026-10-26&checkout=2026-10-28&group_adults=2",
465 "type": "Hotel",
466 "stars": 5,
467 "description": "A five-star hotel on Avenida da Liberdade with an indoor pool, spa and fitness centre. Valet parking is available.",
468 "price": 780,
469 "currency": "US$",
470 "rating": 9,
471 "ratingLabel": "Wonderful",
472 "reviews": 3120,
473 "checkIn": "From 15:00",
474 "checkOut": "Until 12:00",
475 "checkInDate": "2026-10-26",
476 "checkOutDate": "2026-10-28",
477 "location": {
478 "lat": "38.7201",
479 "lng": "-9.1460"
480 },
481 "address": {
482 "full": "Avenida da Liberdade 185, 1250-141 Lisbon, Portugal",
483 "city": "Lisbon",
484 "country": "Portugal"
485 },
486 "image": "https://cf.bstatic.com/xdata/images/hotel/max1024x768/demo-1004.jpg",
487 "rooms": [
488 {
489 "roomType": "Deluxe King Room",
490 "available": true,
491 "facilities": [
492 "Air conditioning",
493 "Free WiFi",
494 "Bathtub"
495 ],
496 "options": [
497 {
498 "price": 780,
499 "persons": 2,
500 "freeCancellation": true,
501 "yourChoices": [
502 "Breakfast included",
503 "Free cancellation before 24 October 2026"
504 ]
505 }
506 ]
507 }
508 ],
509 "facilities": [
510 {
511 "name": "Pool",
512 "facilities": [
513 {
514 "name": "Indoor swimming pool"
515 }
516 ]
517 },
518 {
519 "name": "Wellness",
520 "facilities": [
521 {
522 "name": "Spa",
523 "additionalInfo": {
524 "requiresAdditionalCharge": true
525 }
526 },
527 {
528 "name": "Fitness centre"
529 }
530 ]
531 },
532 {
533 "name": "Parking",
534 "facilities": [
535 {
536 "name": "Valet parking",
537 "additionalInfo": {
538 "requiresAdditionalCharge": true
539 }
540 }
541 ]
542 },
543 {
544 "name": "Internet",
545 "facilities": [
546 {
547 "name": "Free WiFi"
548 }
549 ]
550 }
551 ],
552 "categoryReviews": [
553 {
554 "title": "Staff",
555 "score": 9.4
556 },
557 {
558 "title": "Cleanliness",
559 "score": 9.3
560 },
561 {
562 "title": "Location",
563 "score": 9.1
564 },
565 {
566 "title": "Value for money",
567 "score": 8
568 }
569 ],
570 "reviewSummary": {
571 "summary": "Luxury on the avenue with an excellent spa; pricey for Lisbon.",
572 "pros": [
573 {
574 "description": "Excellent spa and indoor pool",
575 "numberOfMentions": 260
576 },
577 {
578 "description": "Attentive staff",
579 "numberOfMentions": 233
580 }
581 ],
582 "cons": [
583 {
584 "description": "Expensive extras",
585 "numberOfMentions": 88
586 }
587 ]
588 },
589 "finePrint": "A resort fee of EUR 25 per room per night applies. A credit card pre-authorisation is taken at check-in.",
590 "policies": [
591 {
592 "title": "Pets",
593 "content": "Pets are allowed on request. Charges may apply."
594 }
595 ],
596 "startUrlOrQuery": "Lisbon",
597 "timeOfScrapeISO": "2026-09-26T08:14:09.000Z"
598 },
599 {
600 "hotelId": "demo-1005",
601 "name": "Rossio Budget Hostel",
602 "url": "https://www.booking.com/hotel/pt/rossio-budget-hostel-demo.html?checkin=2026-10-26&checkout=2026-10-28&group_adults=2",
603 "type": "Hostel",
604 "stars": 1,
605 "description": "Dorms and private rooms on Rossio Square.",
606 "price": 96,
607 "currency": "US$",
608 "rating": 7.6,
609 "ratingLabel": "Good",
610 "reviews": 512,
611 "checkInDate": "2026-10-26",
612 "checkOutDate": "2026-10-28",
613 "location": {
614 "lat": "38.7141",
615 "lng": "-9.1398"
616 },
617 "address": {
618 "full": "Praça Dom Pedro IV 40, 1100-200 Lisbon, Portugal",
619 "city": "Lisbon",
620 "country": "Portugal"
621 },
622 "rooms": [
623 {
624 "roomType": "Private Double Room",
625 "available": true,
626 "options": [
627 {
628 "price": 96,
629 "persons": 2,
630 "freeCancellation": false,
631 "yourChoices": [
632 "Non-refundable"
633 ]
634 }
635 ]
636 }
637 ],
638 "startUrlOrQuery": "Lisbon",
639 "timeOfScrapeISO": "2026-09-26T08:14:11.000Z"
640 },
641 {
642 "hotelId": "demo-1006",
643 "name": "Tejo Riverside Lofts",
644 "url": "https://www.booking.com/hotel/pt/tejo-riverside-lofts-demo.html?checkin=2026-10-26&checkout=2026-10-28&group_adults=2",
645 "type": "Apartment",
646 "stars": 4,
647 "description": "Loft apartments on the riverfront in Cais do Sodré.",
648 "currency": "US$",
649 "rating": 9.3,
650 "ratingLabel": "Superb",
651 "reviews": 208,
652 "checkInDate": "2026-10-26",
653 "checkOutDate": "2026-10-28",
654 "location": {
655 "lat": "38.7060",
656 "lng": "-9.1440"
657 },
658 "address": {
659 "full": "Rua da Ribeira Nova 12, 1200-370 Lisbon, Portugal",
660 "city": "Lisbon",
661 "country": "Portugal"
662 },
663 "rooms": [
664 {
665 "roomType": "Loft",
666 "available": false,
667 "options": []
668 }
669 ],
670 "startUrlOrQuery": "Lisbon",
671 "timeOfScrapeISO": "2026-09-26T08:14:13.000Z"
672 }
673 ],
674 "discoveryInput": {}
675};
676
677
678const run = await client.actor("rich_minds/booking-hotel-finder-ai").call(input);
679
680
681console.log('Results from dataset');
682console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
683const { items } = await client.dataset(run.defaultDatasetId).listItems();
684items.forEach((item) => {
685 console.dir(item);
686});
687
688