1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "urls": [
12 "https://www.makemytrip.global/hotels/hotel-details/?hotelId=201805122329389541&_uCurrency=USD&checkin=08192025&checkout=08202025&city=CTDUB&country=UNI&lat=25.24268&lng=55.34082&locusId=CTDUB&locusType=city&page=3&rank=3®ionNearByExp=3&roomStayQualifier=2e0e&rsc=1e2e0e&searchText=Dubai&viewType=LUXE&mtkeys=undefined"
13 ],
14 "max_retries_per_url": 2,
15 "proxy": {
16 "useApifyProxy": false
17 }
18};
19
20
21const run = await client.actor("ecomscrape/makemytrip-hotel-details-scraper").call(input);
22
23
24console.log('Results from dataset');
25console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
26const { items } = await client.dataset(run.defaultDatasetId).listItems();
27items.forEach((item) => {
28 console.dir(item);
29});
30
31