1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "byPropertyIds",
12 "destination": "Orlando, FL",
13 "storefront": "vrbo.com",
14 "adults": 2,
15 "children": 0,
16 "sortBy": "RECOMMENDED",
17 "minBedrooms": 0,
18 "minBathrooms": 0,
19 "minBeds": 0,
20 "propertyType": "",
21 "guestRating": "",
22 "amenity": "",
23 "freeCancellation": "",
24 "priceType": "nightly",
25 "minPrice": 0,
26 "maxPrice": 0,
27 "premierHost": false,
28 "instantBook": false,
29 "petsAllowed": false,
30 "availableOnly": false,
31 "includeDetails": false,
32 "includeReviews": false,
33 "maxReviews": 10,
34 "includeCalendar": false,
35 "calendarDays": 30,
36 "siblingFallback": true,
37 "maxItems": 3,
38 "startUrls": [],
39 "propertyIds": [
40 "4889910"
41 ]
42};
43
44
45const run = await client.actor("nimbryxo-studio/vrbo-destination-rental-listings-extractor").call(input);
46
47
48console.log('Results from dataset');
49console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
50const { items } = await client.dataset(run.defaultDatasetId).listItems();
51items.forEach((item) => {
52 console.dir(item);
53});
54
55