1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "destination": "Lisbon, Portugal",
12 "checkIn": "2026-09-12",
13 "checkOut": "2026-09-15",
14 "guests": 2,
15 "rooms": 1,
16 "accommodationTypes": [
17 "hotel",
18 "aparthotel",
19 "guesthouse",
20 "short_term_rental"
21 ],
22 "maxTotalPrice": 1000,
23 "requiredAmenities": [],
24 "preferredAmenities": [],
25 "maxResults": 1
26};
27
28
29const run = await client.actor("trovevault/hotel-stay-price-comparison").call(input);
30
31
32console.log('Results from dataset');
33console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
34const { items } = await client.dataset(run.defaultDatasetId).listItems();
35items.forEach((item) => {
36 console.dir(item);
37});
38
39