1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "locationSearch": "Paris, France",
12 "regionId": "2734",
13 "checkIn": "2026-08-15",
14 "checkOut": "2026-08-20",
15 "childrenAges": [],
16 "hotelFilters": {
17 "sort": "RECOMMENDED",
18 "star_ratings": [
19 4,
20 5
21 ],
22 "price_min": 50,
23 "price_max": 300,
24 "guest_rating_min": 70,
25 "amenities": [
26 "WIFI",
27 "POOL"
28 ],
29 "property_types": [
30 "HOTEL"
31 ],
32 "meal_plans": [],
33 "payment_type": "FREE_CANCELLATION"
34 },
35 "propertyId": "16786",
36 "pickupSearchTerm": "New York, New York, United States of America",
37 "pickupDatetime": {
38 "day": 15,
39 "month": 8,
40 "year": 2026,
41 "hour": 10,
42 "minute": 0
43 },
44 "dropoffSearchTerm": "New York, New York, United States of America",
45 "dropoffDatetime": {
46 "day": 20,
47 "month": 8,
48 "year": 2026,
49 "hour": 10,
50 "minute": 0
51 },
52 "carFilters": {
53 "sort": "RECOMMENDED",
54 "car_types": [
55 "midsize",
56 "compact"
57 ],
58 "vendors": [
59 "ZE",
60 "ZI"
61 ],
62 "price_range": "75-100",
63 "capacity": "TWO_TO_FIVE",
64 "specs": [
65 "AUTO_TRANSMISSION"
66 ],
67 "radius_km": 10
68 },
69 "carOfferToken": "AQh3XDzUb4Yaw4cMGaeYnjj7avjCnI7in9MF41jMKsvokMLK..."
70};
71
72
73const run = await client.actor("fingolfin/expedia-scraper").call(input);
74
75
76console.log('Results from dataset');
77console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
78const { items } = await client.dataset(run.defaultDatasetId).listItems();
79items.forEach((item) => {
80 console.dir(item);
81});
82
83