# Flights from Madrid (MAD) to Quito (UIO)

1 direct, 18 routes with 1 stop, 973 with 2 stops. Straight-line distance 8737 km.

## Direct

Iberia, Air Europa flies direct, about 8737 km.

## Shortest routes

- MAD → UIO · 8737 km · about 665 min · 0 stops
- MAD → BOG → UIO · 8742 km · about 815 min · 1 stop
- MAD → MDE → UIO · 8803 km · about 805 min · 1 stop
- MAD → PTY → UIO · 9185 km · about 851 min · 1 stop
- MAD → GYE → UIO · 9292 km · about 837 min · 1 stop
- MAD → SJO → UIO · 9799 km · about 885 min · 1 stop
- MAD → MIA → UIO · 9993 km · about 950 min · 1 stop
- MAD → JFK → UIO · 10314 km · about 965 min · 1 stop

## How to query this

- JSON: https://travel.buy-it.gr/api/v1/routes/MAD/UIO
- This page: https://travel.buy-it.gr/api/v1/routes/MAD/UIO.md
- HTML, English: https://travel.buy-it.gr/en/flights/MAD-UIO
- All routes: https://travel.buy-it.gr/api/search?from=MAD&to=UIO&maxStops=2
- Operating days for one leg: https://travel.buy-it.gr/api/leg?from=MAD&to=UIO
- Price a path on one date: https://travel.buy-it.gr/api/price?path=MAD,UIO&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.
