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 "startUrls": [],
13 "searchUrl": "https://www.airbnb.com/s/Cardiff--United-Kingdom/homes",
14 "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",
15 "location": "London",
16 "numberOfLinks": 20,
17 "checkInDate": "2026-07-01",
18 "startDate": "2026-07-01",
19 "numberOfDays": 14,
20 "days": 7,
21 "stayNights": 1,
22 "targetMonth": "2026-12",
23 "pages": 3,
24 "hotelClass": "any",
25 "currency": "USD",
26 "adults": 2,
27 "children": 0,
28 "pets": 0,
29 "concurrency": 6,
30 "concurrentJobs": 1,
31 "proxyConfiguration": {
32 "useApifyProxy": true,
33 "apifyProxyGroups": [
34 "RESIDENTIAL"
35 ]
36 }
37};
38
39
40const run = await client.actor("moving_beacon-owner1/travel-hotel-intelligence").call(input);
41
42
43console.log('Results from dataset');
44console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
45const { items } = await client.dataset(run.defaultDatasetId).listItems();
46items.forEach((item) => {
47 console.dir(item);
48});
49
50