MakeMyTrip Buses Search
mmt.buses.search
Search buses between two Indian cities for a date. Each trip has the operator, bus type, departure and arrival, duration, fare range, seats left, rating and amenities.
At a glance
- Endpoint ID
mmt.buses.search- Price
- 1–2 credits per call; failed calls are free
- Runs for up to
- 30 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "mmt.buses.search", "input": { "date": "2026-11-16", "destination": "Agra", "max_results": 3, "mode": "bus", "source": "Delhi" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "mmt.buses.search", "input": { "date": "2026-11-16", "destination": "Agra", "max_results": 3, "mode": "bus", "source": "Delhi" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "mmt.buses.search", "input": { "date": "2026-11-16", "destination": "Agra", "max_results": 3, "mode": "bus", "source": "Delhi" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
date |
string | yes | The travel date, YYYY-MM-DD, today or later in India. | 2026-11-16 |
destination |
string | yes | The city you go to, such as Agra. | Agra |
source |
string | yes | The city you leave from, such as Delhi, or MakeMyTrip's bus city code. | Delhi |
adults |
integer | no | Leave out: trips are listed per seat. | |
children |
integer | no | Leave out: trips are listed per seat. | |
cursor |
string | no | Pass cursor from the last response to get the next trips. | |
max_results |
integer | no | How many trips to return, from 1 to 20. The default is 10. | 3 |
mode |
string | no | Leave out, or send bus. | bus |
page |
string | no | Leave out; use cursor for the next trips. | |
return_date |
string | no | Leave out: bus search is one way. |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "origin": "Delhi", "total_pages": 71, "total_trips": 212, "trips": [ { "price": 1799, "arrival": "2026-11-16T14:55:00+05:30", "boarding": "", "currency": "INR", "departure": "2026-11-16T10:15:00+05:30", "duration": "4h40m0s", "operator": "E Bus India", "price_max": 3099, "review_score": 5, "seats_left": 42, "trip_id": "39_MMTCC1199_MMTCC3641_16-11-2026_1000011957980069321", "vehicle_type": "VE A/C Seater / Sleeper (2+1)", "amenities": [ "Water Bottle", "Blankets" ] }, { "price": 1199, "arrival": "2026-11-17T03:15:00+05:30", "boarding": "", "currency": "INR", "departure": "2026-11-16T23:00:00+05:30", "duration": "4h15m0s", "operator": "Tushar Tour and Travels", "price_max": 1899, "review_score": 4.6, "seats_left": 44, "trip_id": "39_MMTCC1199_MMTCC3641_16-11-2026_1000011957989183766", "vehicle_type": "A/C Seater / Sleeper (2+1)", "amenities": [ "Water Bottle", "Air Purifier" ] } ]}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
trips[].operator |
string | The bus company. | E Bus India |
trips[].vehicle_type |
string | The bus type and seating. | VE A/C Seater / Sleeper (2+1) |
trips[].departure |
string | Departure time, local. | 2026-11-16T10:15:00+05:30 |
trips[].arrival |
string | Arrival time, local. | 2026-11-16T14:55:00+05:30 |
trips[].duration |
string | Journey time. | 4h40m0s |
trips[].price |
integer | The lowest fare, in the currency shown. | 1799 |
trips[].seats_left |
integer | Seats still available. | 42 |
trips[].review_score |
integer | Travellers' rating of the operator. | 5 |
trips[].amenities |
array | What the bus offers, such as charging points. | Water Bottle, Blankets, Charging Point |
trips[].boarding |
string | The main boarding point. | |
trips[].currency |
string | The currency of the fares. | INR |
trips[].price_max |
integer | The highest fare, in the currency shown. | 3099 |
trips[].trip_id |
string | MakeMyTrip's ID for the trip; pass it to the bus details endpoint. | 39_MMTCC1199_MMTCC3641_16-11-2026_1000011957980069321 |
origin |
string | The city searched from. | Delhi |
total_pages |
integer | How many result pages there are. | 71 |
total_trips |
integer | How many buses match in total. | 212 |
trips |
array | The buses found. | 3 records |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other MakeMyTrip endpoints
Something missing or unclear? Ask the team that builds the MakeMyTrip endpoints.