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": 20,
39 "month": 9,
40 "year": 2026,
41 "hour": 10,
42 "minute": 0
43 },
44 "dropoffSearchTerm": "New York, New York, United States of America",
45 "dropoffDatetime": {
46 "day": 25,
47 "month": 9,
48 "year": 2026,
49 "hour": 10,
50 "minute": 0
51 },
52 "carFilters": {},
53 "carOfferToken": "AQh3XDzUb4Yaw4cMGaeYnjj7avjCnI7in9MF41jMKsvokMLK..."
54};
55
56
57const run = await client.actor("fingolfin/expedia-scraper").call(input);
58
59
60console.log('Results from dataset');
61console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
62const { items } = await client.dataset(run.defaultDatasetId).listItems();
63items.forEach((item) => {
64 console.dir(item);
65});
66
67