# MMT buses search

Search bus routes between source and destination for a travel date.

- Platform: [MakeMyTrip](https://docs.upscrape.com/docs/platforms/mmt)
- Capability ID: `mmt.buses.search`
- Cost: 1 credit per request
- Maximum runtime: 30 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
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 '{
  "input": {
    "date": "2026-11-16",
    "destination": "Agra",
    "max_results": 8,
    "mode": "bus",
    "source": "Delhi"
  },
  "capability": "mmt.buses.search"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `adults` | `integer` | No | Unsupported for public bus inventory; nonzero values are rejected At least 1. |
| `children` | `integer` | No | Unsupported for public bus inventory; nonzero values are rejected At least 0. |
| `cursor` | `string` | No | Source bus listing cursor from the previous result |
| `date` | `string` | Yes | Travel date in YYYY-MM-DD, today or later in India time |
| `destination` | `string` | Yes | Destination bus city name or MakeMyTrip bus city code |
| `max_results` | `integer` | No | Maximum bus trips to return, 1 to 20; default 10 From 1 to 20. |
| `mode` | `string` | No | Optional 'bus' or 'train' |
| `page` | `string` | No | Unsupported; use the source cursor from the previous result |
| `return_date` | `string` | No | Unsupported for public one-way bus inventory; supplied values are rejected |
| `source` | `string` | Yes | Source bus city name or MakeMyTrip bus city code |

### Example input

```json
{
  "date": "2026-11-16",
  "destination": "Agra",
  "max_results": 8,
  "mode": "bus",
  "source": "Delhi"
}
```

## Response

Successful output is returned in `results[0].data`.

Raw platform output is intentionally open-ended and may evolve with the upstream source.

No example output is available for this capability.


## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
