1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "searchUrl": "https://www.booking.com/searchresults.html?ss=London+Center&dest_id=1233&dest_type=district&group_adults=2&no_rooms=1&group_children=0&selected_currency=GBP",
12 "destination": "London Center",
13 "destId": "1233",
14 "destType": "district",
15 "startDate": "2026-04-25",
16 "numDays": 30,
17 "currency": "GBP",
18 "adults": 2,
19 "rooms": 1,
20 "children": 0,
21 "proxyConfiguration": {
22 "useApifyProxy": true,
23 "apifyProxyGroups": [
24 "RESIDENTIAL"
25 ],
26 "apifyProxyCountry": "GB"
27 },
28 "timeout": 60000,
29 "retries": 5,
30 "delayMin": 2,
31 "delayMax": 5
32};
33
34
35const run = await client.actor("moving_beacon-owner1/my-actor-3").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