# Flights from Dublin (DUB) to Madrid (MAD)

1 direct, 131 routes with 1 stop, 11819 with 2 stops. Straight-line distance 1453 km.

## Direct

Aer Lingus, Ryanair, Iberia, Iberia Express flies direct, about 1452 km.

## Shortest routes

- DUB → MAD · 1452 km · about 155 min · 0 stops
- DUB → SDR → MAD · 1452 km · about 285 min · 1 stop
- DUB → BIO → MAD · 1469 km · about 290 min · 1 stop
- DUB → OVD → MAD · 1494 km · about 300 min · 1 stop
- DUB → NTE → MAD · 1528 km · about 295 min · 1 stop
- DUB → BRS → MAD · 1542 km · about 290 min · 1 stop
- DUB → BOD → MAD · 1573 km · about 300 min · 1 stop
- DUB → SNN → MAD · 1613 km · about 276 min · 1 stop

## How to query this

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