# Flights from Dubrovnik (DBV) to Madrid (MAD)

1 direct, 58 routes with 1 stop, 6331 with 2 stops. Straight-line distance 1826 km.

## Direct

Iberia flies direct, about 1830 km.

## Shortest routes

- DBV → MAD · 1830 km · about 185 min · 0 stops
- DBV → BCN → MAD · 1830 km · about 320 min · 1 stop
- DBV → FCO → MAD · 1836 km · about 325 min · 1 stop
- DBV → MRS → MAD · 1864 km · about 320 min · 1 stop
- DBV → SPU → MAD · 1868 km · about 325 min · 1 stop
- DBV → NAP → MAD · 1885 km · about 320 min · 1 stop
- DBV → PMI → MAD · 1889 km · about 307 min · 1 stop
- DBV → BRI → MAD · 1913 km · about 315 min · 1 stop

## How to query this

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