mapi.makemytrip.com APImapi.makemytrip.com ↗
Access MakeMyTrip city autocomplete, popular destinations, and flight fare configuration via 3 structured endpoints. Get IATA codes, visa info, and special fare types.
curl -X GET 'https://api.parse.bot/scraper/cc57f96d-2ca1-47d5-b6a6-65c69d10b5a7/get_city_autocomplete?query=Delhi' \ -H 'X-API-Key: $PARSE_API_KEY'
Search for cities and airports by keyword. Returns a list of matching locations with IATA codes, airport names, city names, and country information. Results are grouped under a SUGGESTIONS section.
| Param | Type | Description |
|---|---|---|
| queryrequired | string | Search keyword for city or airport name (e.g. 'Delhi', 'Mumbai', 'Goa'). |
{
"type": "object",
"fields": {
"results": "object containing section keys (e.g. SUGGESTIONS) each with a title and data array of airport/city objects",
"sectionsOrder": "object mapping section keys to their display order integers"
},
"sample": {
"data": {
"results": {
"SUGGESTIONS": {
"data": [
{
"iata": "DEL",
"country": "India",
"cityName": "New Delhi",
"locusCode": "CTDEL",
"airportName": "Indira Gandhi International Airport",
"countryCode": "IN"
}
],
"title": "SUGGESTIONS"
}
},
"sectionsOrder": {
"SUGGESTIONS": 1
}
},
"status": "success"
}
}About the mapi.makemytrip.com API
The MakeMyTrip API exposes 3 endpoints covering city and airport lookup, popular travel destinations, and flight search configuration sourced from MakeMyTrip's platform. The get_city_autocomplete endpoint accepts a keyword and returns matching airports and cities with IATA codes grouped by section. The get_popular_destinations endpoint surfaces e-visa, visa-free, and visa-on-arrival destination lists without requiring any input parameters.
City and Airport Autocomplete
The get_city_autocomplete endpoint takes a single required query string — such as "Delhi", "Mumbai", or "Goa" — and returns a structured results object keyed by section (e.g. SUGGESTIONS). Each section includes a title and a data array of airport/city objects carrying IATA codes, airport names, city names, and country information. A sectionsOrder object maps each section key to an integer display order, useful for rendering results in the correct sequence.
Popular Destinations
The get_popular_destinations endpoint requires no inputs and returns destination objects organized under three named sections: SUGGESTIONS (general popular searches), E-VISA_DEST (destinations with e-visa availability), and VISA_FREE_DEST (visa-free or visa-on-arrival destinations). Like the autocomplete response, each section contains a title and a data array, and a sectionsOrder object defines presentation order. This makes the endpoint directly useful for building destination pickers or travel inspiration features.
Flight Search Client Configuration
The get_client_config endpoint returns platform-level configuration for flight search. The response includes a meta object with display settings such as defaultShowCount, a specialfarelist array covering fare types like Student, Armed Forces, and Corporate — each with a name, message, subTitle, pft code, tripSector, tripType, and fareClass arrays — and a specialfareColors object defining color values for selected and unselected fare-type UI states. This endpoint is particularly relevant when building flight search UIs that need to replicate MakeMyTrip's fare category logic.
- Build a flight search autocomplete input that resolves city names to IATA codes using
get_city_autocomplete. - Populate a destination inspiration widget with visa-categorized destinations from
get_popular_destinations. - Filter e-visa destinations for users holding specific passports by consuming the
E-VISA_DESTsection. - Render special fare category UI (Student, Armed Forces, Corporate) with correct colors using
get_client_configresponse fields. - Validate and normalize user-entered airport or city names against confirmed IATA codes before booking calls.
- Surface visa-free travel options as a promotional feature using the
VISA_FREE_DESTsection data. - Replicate MakeMyTrip's fare type display logic in a custom travel booking front-end using
specialfarelistandspecialfareColors.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does MakeMyTrip have an official public developer API?+
What does `get_city_autocomplete` return beyond just a city name?+
SUGGESTIONS data array includes the IATA code, airport name, city name, and country information. Results are scoped to airports and cities matched by the query parameter, and the sectionsOrder field tells you how to order multiple sections if more than one is returned.Does the `get_popular_destinations` endpoint cover international destinations or only domestic Indian routes?+
SUGGESTIONS, E-VISA_DEST, and VISA_FREE_DEST sections. However, the scope of destinations reflects what MakeMyTrip surfaces as popular at a given time and is not a filterable dataset by region or country. You can fork this API on Parse and revise it to add a dedicated regional-filter endpoint if your use case requires narrower geographic slices.Does the API return live flight prices or availability?+
How current is the data returned by these endpoints?+
get_client_config is reasonable, but get_popular_destinations content may shift seasonally.