1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "searchQueries": [
12 "London"
13 ],
14 "hotelUrls": [],
15 "checkIn": "",
16 "checkOut": "",
17 "adults": 2,
18 "rooms": 1,
19 "children": 0,
20 "childrenAges": [],
21 "currency": "USD",
22 "language": "en-gb",
23 "maxHotelsPerSearch": 10,
24 "maxReviewRowsPerHotel": 10,
25 "monitorChanges": false,
26 "onlyChanges": false,
27 "proxyMode": "none",
28 "proxyCountryCode": "",
29 "includeReviewSnippets": true,
30 "maxRunMinutes": 4,
31 "maxSourceSeconds": 90
32};
33
34
35const run = await client.actor("glowing_glove/booking-hotel-review-intelligence").call(input);
36
37
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45