1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "Sort": "urn:expediagroup:taxonomies:core:#bdb0015d-63cc-4f9f-be86-3f973867ba30",
12 "Urls": [
13 "https://www.expedia.com/Prague-Hotels-Hermitage-Hotel-Prague.h2434356.Hotel-Information?chkin=2025-08-19&chkout=2025-08-20&x_pwa=1&rfrr=HSR&pwa_ts=1754814635849&referrerUrl=aHR0cHM6Ly93d3cuZXhwZWRpYS5jb20vSG90ZWwtU2VhcmNo&useRewards=false&rm1=a2®ionId=2872&destination=Prague%2C+Czechia&destType=MARKET&neighborhoodId=6175677&latLong=50.08718%2C14.42564&sort=RECOMMENDED&top_dp=112&top_cur=USD&userIntent=&selectedRoomType=314041214&selectedRatePlan=381270028&searchId=da51d7da-2c8d-495e-81a1-8ced05303f68"
14 ],
15 "proxyConfiguration": {
16 "useApifyProxy": true,
17 "apifyProxyGroups": [
18 "RESIDENTIAL"
19 ]
20 }
21};
22
23
24const run = await client.actor("getdataforme/expedia-reviews-spider").call(input);
25
26
27console.log('Results from dataset');
28console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
29const { items } = await client.dataset(run.defaultDatasetId).listItems();
30items.forEach((item) => {
31 console.dir(item);
32});
33
34