# Flights from Madrid (MAD) to Guayaquil (GYE)

1 direct, 11 routes with 1 stop, 495 with 2 stops. Straight-line distance 9013 km.

## Direct

Air Europa, Iberia flies direct, about 9012 km.

## Shortest routes

- MAD → GYE · 9012 km · about 695 min · 0 stops
- MAD → UIO → GYE · 9017 km · about 808 min · 1 stop
- MAD → BOG → GYE · 9022 km · about 835 min · 1 stop
- MAD → MDE → GYE · 9079 km · about 830 min · 1 stop
- MAD → PUJ → GYE · 9192 km · about 853 min · 1 stop
- MAD → PTY → GYE · 9403 km · about 867 min · 1 stop
- MAD → SJO → GYE · 9931 km · about 895 min · 1 stop
- MAD → MIA → GYE · 10209 km · about 964 min · 1 stop

## How to query this

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

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.
