1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "platform": "airbnb",
12 "jobs": [],
13 "startUrls": [],
14 "searchUrl": "https://www.airbnb.com/s/Cardiff--United-Kingdom/homes",
15 "startUrl": "https://www.trivago.co.uk/en-GB/srl/hotels-cardiff-united-kingdom?search=200-21013;dr-20260710-20260711;drs-40;pa-2;rc-1-2",
16 "location": "London",
17 "numberOfLinks": 20,
18 "checkInDate": "2026-07-01",
19 "startDate": "2026-07-01",
20 "numberOfDays": 14,
21 "days": 7,
22 "stayNights": 1,
23 "targetMonth": "2026-12",
24 "pages": 3,
25 "hotelClass": "any",
26 "currency": "USD",
27 "adults": 2,
28 "children": 0,
29 "pets": 0,
30 "concurrency": 6,
31 "concurrentJobs": 1,
32 "verbose": false,
33 "proxyConfiguration": {
34 "useApifyProxy": true,
35 "apifyProxyGroups": [
36 "RESIDENTIAL"
37 ]
38 }
39};
40
41
42const run = await client.actor("moving_beacon-owner1/travel-hotel-intelligence").call(input);
43
44
45console.log('Results from dataset');
46console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
47const { items } = await client.dataset(run.defaultDatasetId).listItems();
48items.forEach((item) => {
49 console.dir(item);
50});
51
52