# MakeMyTrip Hotels Scraper (`krazee_kaushik/makemytrip-hotels-scraper`) Actor

Scrape MakeMyTrip hotel listings by providing one or multiple search URLs with your filters. Extract prices, taxes, availability, ratings, reviews summary, amenities, images, and detailed sub-ratings using direct API-based extraction. Export data in JSON, CSV, Excel, XML, RSS, and HTML formats.

- **URL**: https://apify.com/krazee\_kaushik/makemytrip-hotels-scraper.md
- **Developed by:** [Krazee](https://apify.com/krazee_kaushik) (community)
- **Categories:** Lead generation, Travel, Automation
- **Stats:** 45 total users, 3 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 hotel scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### 🏨 What is MakeMyTrip Hotels Scraper and how does it work?

This actor helps you collect hotel listing data directly from [MakeMyTrip](https://www.makemytrip.com) search results pages.

Simply open MakeMyTrip, select your destination, dates, guests, and optional filters like price range, property type, or star rating, then copy the search URL into the actor input.

It can be used for hotel price monitoring, travel analytics, market research, OTA aggregation, AI travel apps, or large-scale travel data collection workflows.

--- 

### ⬇️ Example Input
Search URLs can be copied directly from the MakeMyTrip hotel search results page after selecting your destination, dates, guests, and optional filters like price range, star rating, or amenities.

```json
{
  "hotelsLimit": 50,
  "searchUrls": [
	"https://www.makemytrip.com/hotels/hotel-listing/?_uCurrency=INR&checkin=06192026&checkout=06202026&city=CTSLV&country=IN&filterData=DEALS%7CEARLY_BIRD&locusId=CTSLV&locusType=city&regionNearByExp=3&roomStayQualifier=1e0e1e0e1e0e1e0e&rsc=4e4e0e&searchText=Shimla"
  ]
}

````

***

### 📦 What data can you extract?

| Category | Included data |
|---|---|
| 🏨 Hotel details | Hotel name, property type, stay type, hotel category, star rating |
| 📍 Location data | City, country, locality, geo-coordinates, destination metadata |
| 💰 Pricing data | Original price, discounted price, taxes, fees, coupon details |
| 🛏 Availability | Room availability, sold out status, total room count |
| ⭐ Ratings & review summaries | Overall rating, total ratings, review counts, category-wise rating breakdowns |
| 🧼 Detailed sub-ratings | Cleanliness, food, facilities, location, value for money, child friendliness |
| 🎯 Hotel highlights | Free cancellation, breakfast included, parking, special offers, persuasion tags |
| 🖼 Media | Hotel images, display image, image counts, guest photo availability |
| 🔗 URLs & deeplinks | SEO URLs, hotel deeplinks, app deeplinks, sharing URLs |
| 🔎 Applied search filters | Data based on selected dates, occupancy, price range, amenities, property type, and more |

***

### 📥 Output Example (JSON):

The scraper exports results as a structured dataset. You can download it as JSON, CSV, Excel, HTML table, or use it via API.

```json
{
	"id": "201411211640291593",
	"name": "Hotel Glacier Heights",
	"propertyType": "Hotel",
	"starRating": 3,
	"stayType": "Hotel",
	"totalImageCount": 20,
	"travellerImageCount": 0,
	"locationPersuasion": [
		"Sonamarg Market"
	],
	"locationDetail": {
		"id": "CTXSQ",
		"name": "Sonmarg",
		"type": "city",
		"countryId": "IN",
		"countryName": "India"
	},
	"geoLocation": {
		"latitude": 34.30094,
		"longitude": 75.29056
	},
	"priceDetail": {
		"price": 4000,
		"priceWithTax": 4299,
		"discountedPrice": 2230,
		"discountedPriceWithTax": 2529,
		"totalTax": 299,
		"pricingKey": "DEFAULT",
		"discountedPriceWithTaxAndFees": 2529,
		"totalTaxWithFees": 299,
		"totalAdditionalFees": 0,
		"coupon": {
			"code": "MMTSMARTDEAL",
			"description": "Great Discounts for You. Get INR1190 Off",
			"promoIcon": "https://promos.makemytrip.com/Growth/Images/B2C/generic_offer_icon_dh.png",
			"specialPromo": false,
			"type": "ECOUPON",
			"couponAmount": 1190,
			"autoApplicable": false,
			"bnplAllowed": false,
			"disabled": false,
			"bankOffer": false,
			"noCostEmiApplicable": false,
			"giftCardAllowed": false
		}
	},
	"hotelPersuasions": [],
	"reviewSummary": {
		"cumulativeRating": 4.2,
		"totalReviewCount": 90,
		"totalRatingCount": 156,
		"ratingText": "Very Good",
		"hotelRatingSummary": [
			{
				"displayText": "Location",
				"value": 4.6,
				"reviewCount": 46,
				"heroTag": false
			},
			{
				"displayText": "Cleanliness",
				"value": 4.2,
				"reviewCount": 44,
				"heroTag": false
			},
			{
				"displayText": "Room",
				"value": 4,
				"reviewCount": 22,
				"heroTag": false
			},
			{
				"displayText": "Food",
				"value": 4.2,
				"reviewCount": 21,
				"heroTag": false
			}
			
		],
		"chatGPTSummaryExists": false
	},
	
	"detailDeeplinkUrl": "https://www.makemytrip.com/hotels/hotel-details?hotelId=201411211640291593&checkin=11062025&checkout=11072025&country=IN&city=CTXSQ&openDetail=true&currency=INR&roomStayQualifier=2e0e&locusId=CTXSQ&locusType=city&region=in&funnelName=HOTELS&rsc=1e2e&mpn=false",
	"totalRoomCount": 1,
	"appDeeplink": "mmyt://htl/detail/?topHtlId=201411211640291593&hotelId=201411211640291593&checkin=11062025&checkout=11072025&country=IN&city=CTXSQ&roomStayQualifier=2e0e&_uCurrency=INR&checkAvailability=true&locusId=CTXSQ&locusType=city&region=in&funnelName=HOTELS&rsc=1e2e&mpn=false",
	"sharingUrl": "https://app.mmyt.co/Xm2V/hotelShareScreenshot?hotelId=201411211640291593&city=CTXSQ&country=IN&roomStayQualifier=2e0e&checkin=11062025&checkout=11072025&cmp=hotelAppShareNew&locusId=CTXSQ&locusType=city&region=IN&funnelName=HOTELS&rsc=1e2e&mpn=false",
	"seoUrl": "https://www.makemytrip.com/hotels/hotel_glacier_heights-details-sonmarg.html",
	"soldOut": false,
	"myBizAssured": false,
	"serviceApartment": false,
	"hotelType": "HOTEL"
}
```

***

### ❓ FAQ

#### Does this scraper require a MakeMyTrip account or login cookies?

No. This MakeMyTrip scraper collects publicly available hotel listing data using backend requests. You do not need to provide account cookies, login sessions, or authentication tokens.

***

#### Is this data collected using browser automation or direct API extraction?

This actor works as a direct MakeMyTrip API scraper, extracting hotel listing data from backend endpoints instead of browser automation tools like Puppeteer or Playwright. This helps keep the scraper fast, stable, and lightweight.

***

#### Can I scrape multiple MakeMyTrip hotel search URLs in one run?

Yes. You can add multiple MakeMyTrip hotel search result URLs in a single run, including different locations, check-in dates, price ranges, property types, and amenities filters.

***

#### What file formats can I use to export the scraped hotel data?

You can export the extracted MakeMyTrip hotel dataset in JSON, CSV, Excel, XML, RSS, and HTML formats directly from the Apify Console or API.

***

#### How do I report issues or request custom MakeMyTrip scraping features?

If you find an issue, notice the scraper stopped working properly after a MakeMyTrip update, or need a custom travel data extraction solution, please create a request using the [Issues tab](https://console.apify.com/organization/XjtvaC9MoQZuFl4Da/actors/avzOhJu0FNQ8dcMpq/issues) or contact me directly at <kamakrazeekaushik@gmail.com>.

***

### 🔗 Looking for review data too?

Use the companion tool 👉 [MakeMyTrip Hotel Reviews Scraper](https://apify.com/krazee_kaushik/makemytrip-hotel-reviews-scraper).

# Actor input Schema

## `searchUrls` (type: `array`):

🔗 URLs from the hotel search results page (after entering destination, dates, and filters)

## `hotelsLimit` (type: `integer`):

Number of hotels to scrape for each search page url

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.makemytrip.com/hotels/hotel-listing/?checkin=06092026&city=CTKUU&checkout=06102026&roomStayQualifier=1e0e1e0e1e0e1e0e&locusId=CTKUU&country=IN&locusType=city&searchText=Manali&regionNearByExp=3&rsc=4e4e0e"
  ],
  "hotelsLimit": 50
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchUrls": [
        "https://www.makemytrip.com/hotels/hotel-listing/?checkin=06092026&city=CTKUU&checkout=06102026&roomStayQualifier=1e0e1e0e1e0e1e0e&locusId=CTKUU&country=IN&locusType=city&searchText=Manali&regionNearByExp=3&rsc=4e4e0e"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("krazee_kaushik/makemytrip-hotels-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "searchUrls": ["https://www.makemytrip.com/hotels/hotel-listing/?checkin=06092026&city=CTKUU&checkout=06102026&roomStayQualifier=1e0e1e0e1e0e1e0e&locusId=CTKUU&country=IN&locusType=city&searchText=Manali&regionNearByExp=3&rsc=4e4e0e"] }

# Run the Actor and wait for it to finish
run = client.actor("krazee_kaushik/makemytrip-hotels-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchUrls": [
    "https://www.makemytrip.com/hotels/hotel-listing/?checkin=06092026&city=CTKUU&checkout=06102026&roomStayQualifier=1e0e1e0e1e0e1e0e&locusId=CTKUU&country=IN&locusType=city&searchText=Manali&regionNearByExp=3&rsc=4e4e0e"
  ]
}' |
apify call krazee_kaushik/makemytrip-hotels-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=krazee_kaushik/makemytrip-hotels-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "MakeMyTrip Hotels Scraper",
        "description": "Scrape MakeMyTrip hotel listings by providing one or multiple search URLs with your filters. Extract prices, taxes, availability, ratings, reviews summary, amenities, images, and detailed sub-ratings using direct API-based extraction. Export data in JSON, CSV, Excel, XML, RSS, and HTML formats.",
        "version": "0.0",
        "x-build-id": "HikflmKfsceGTXohw"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/krazee_kaushik~makemytrip-hotels-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-krazee_kaushik-makemytrip-hotels-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/krazee_kaushik~makemytrip-hotels-scraper/runs": {
            "post": {
                "operationId": "runs-sync-krazee_kaushik-makemytrip-hotels-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/krazee_kaushik~makemytrip-hotels-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-krazee_kaushik-makemytrip-hotels-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "searchUrls"
                ],
                "properties": {
                    "searchUrls": {
                        "title": "Search URLs",
                        "type": "array",
                        "description": "🔗 URLs from the hotel search results page (after entering destination, dates, and filters)",
                        "items": {
                            "type": "string"
                        }
                    },
                    "hotelsLimit": {
                        "title": "Number of hotels per search",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Number of hotels to scrape for each search page url",
                        "default": 50
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
