# MMT Airport Search

Search MakeMyTrip airports and cities by query and return IATA-like entries.

- Platform: [MakeMyTrip](https://docs.upscrape.com/docs/platforms/mmt)
- Capability ID: `mmt.search.airports`
- 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 YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "max_results": 6,
    "query": "delhi"
  },
  "capability": "mmt.search.airports"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `adults` | `integer` | No | Passenger filter for airport compatibility checks |
| `children` | `integer` | No | Passenger filter for airport compatibility checks |
| `cursor` | `string` | No | Pagination cursor returned by upstream |
| `max_results` | `integer` | No | Optional maximum number of airport matches to return |
| `page` | `string` | No | Optional page token or number for upstream paging |
| `query` | `string` | Yes | City or airport name to search |
| `rooms` | `integer` | No | Room filter for airport compatibility checks |

### Example input

```json
{
  "max_results": 6,
  "query": "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 committed sample 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)
