makemytrip.com APImakemytrip.com ↗
Search airports by name and retrieve cheapest flight fares across 30+ dates via the MakeMyTrip fare calendar API. Returns IATA codes, prices, and airline data.
curl -X GET 'https://api.parse.bot/scraper/3733f7b7-76b9-4577-a772-d42e21cee06c/search_airports?limit=5&query=Mumbai' \ -H 'X-API-Key: $PARSE_API_KEY'
Search for airports and cities by name to get IATA codes. Use this to find the correct IATA airport codes before searching for fares. Returns matching airports with city, country, and nearby airport information.
| Param | Type | Description |
|---|---|---|
| limit | integer | Maximum number of results to return |
| queryrequired | string | City or airport name to search for (e.g., 'Delhi', 'Mumbai', 'London') |
{
"type": "object",
"fields": {
"query": "string — the search query echoed back",
"airports": "array of airport objects with iata_code, city_name, airport_name, country, country_code, and optional nearby_airports",
"total_results": "integer — number of airports returned"
},
"sample": {
"data": {
"query": "Mumbai",
"airports": [
{
"country": "India",
"city_name": "Mumbai",
"iata_code": "BOM",
"airport_name": "Chhatrapati Shivaji International Airport",
"country_code": "IN",
"nearby_airports": [
{
"distance": "22 km from Mumbai",
"city_name": "Navi Mumbai",
"iata_code": "NMI",
"airport_name": "Navi Mumbai International Airport"
}
]
},
{
"country": "India",
"city_name": "Surat",
"iata_code": "STV",
"airport_name": "Surat International Airport",
"country_code": "IN"
}
],
"total_results": 4
},
"status": "success"
}
}About the makemytrip.com API
The MakeMyTrip API provides 2 endpoints for flight research: search_airports to resolve city and airport names into IATA codes, and get_fare_calendar to retrieve the cheapest available fares across 30+ dates for any origin-destination pair. Each fare object includes the travel date, price, currency, airline name, and airline codes, making it straightforward to identify the lowest-cost day to fly a given route.
Airport Search
The search_airports endpoint accepts a query string — a city or airport name such as "Delhi" or "London" — and returns an array of matching airport objects. Each object includes iata_code, city_name, airport_name, country, country_code, and an optional nearby_airports array for cities served by multiple airports. The total_results field tells you how many matches were returned. Use this endpoint first to confirm IATA codes before passing them to the fare calendar.
Fare Calendar
The get_fare_calendar endpoint takes origin and destination as IATA codes and an optional date parameter in YYYY-MM-DD format. It returns fares spanning approximately 30+ dates around that reference date, sorted ascending by price. Each fare object carries date, date_display, price, currency, airline, and airline_codes. The response also surfaces a cheapest_fare object (or null if no fares exist) and a total_dates_with_fares count, so you can quickly identify the single best date without iterating the full array.
Currency and Regional Coverage
The fare calendar is served through MakeMyTrip's global (UAE-region) infrastructure. The currency parameter accepts confirmed values of USD and AED; other currencies such as INR may return an error or empty results. Keep this in mind when building applications targeting Indian domestic routes — convert from USD or AED on your end rather than requesting INR directly.
- Find the cheapest day to fly between two cities by scanning the full fare calendar and reading
cheapest_fare. - Build a flexible-date flight search UI that displays a month's worth of prices per route using the
faresarray. - Resolve ambiguous city names to IATA codes programmatically before constructing fare queries with
search_airports. - Track fare trends over time by polling
get_fare_calendarfor the same route on different reference dates. - Identify which airlines serve a route on low-fare dates using the
airlineandairline_codesfields. - Power a budget travel alert system that flags routes where
pricedrops below a defined threshold. - Populate airport autocomplete fields in a booking tool using the
airport_name,city_name, andiata_codefields fromsearch_airports.
| 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 developer API?+
What does `get_fare_calendar` return and how many dates does it cover?+
date_display, price, currency, airline, and airline_codes. The cheapest_fare field in the response pinpoints the single lowest-priced date without requiring you to sort the array yourself.Which currencies work with the fare calendar?+
currency parameter are USD and AED. The API is served from MakeMyTrip's UAE-region infrastructure, so requesting INR or other currencies may return an error or no results. If you need fares in another currency, retrieve them in USD or AED and convert client-side.