# Flights from Madrid (MAD) to Miami (MIA)

1 direct, 68 routes with 1 stop, 5567 with 2 stops. Straight-line distance 7105 km.

## Direct

American Airlines, Iberia, Air Europa flies direct, about 7118 km.

## Shortest routes

- MAD → MIA · 7118 km · about 603 min · 0 stops
- MAD → LIS → MIA · 7203 km · about 735 min · 1 stop
- MAD → MCO → MIA · 7348 km · about 800 min · 1 stop
- MAD → BOS → MIA · 7511 km · about 811 min · 1 stop
- MAD → JFK → MIA · 7528 km · about 781 min · 1 stop
- MAD → EWR → MIA · 7549 km · about 801 min · 1 stop
- MAD → PHL → MIA · 7554 km · about 773 min · 1 stop
- MAD → IAD → MIA · 7622 km · about 813 min · 1 stop

## How to query this

- JSON: https://travel.buy-it.gr/api/v1/routes/MAD/MIA
- This page: https://travel.buy-it.gr/api/v1/routes/MAD/MIA.md
- HTML, English: https://travel.buy-it.gr/en/flights/MAD-MIA
- All routes: https://travel.buy-it.gr/api/search?from=MAD&to=MIA&maxStops=2
- Operating days for one leg: https://travel.buy-it.gr/api/leg?from=MAD&to=MIA
- Price a path on one date: https://travel.buy-it.gr/api/price?path=MAD,MIA&date=2026-10-09

Replace airport codes in any of those URLs. `path` is comma-separated IATA codes, 2 to 5 airports. `date` is YYYY-MM-DD. `carriers` is optional, legs joined by `|` and airlines inside a leg joined by `.`, for example `FR|LO`.

The first flight must leave on `date`. Each following flight may leave that same day or the next day, and must depart at least 90 minutes after the previous flight lands. A response with `partial: true` on a calendar lists days a source has seen. It does not prove the other days are empty.

No API key. Responses are JSON unless the URL ends in `.md`. Prices are euros. `total: null` means no fare was found for the first flight on that date.
