# Flights from Barcelona (BCN) to Baku (GYD)

1 direct, 34 routes with 1 stop, 3807 with 2 stops. Straight-line distance 3982 km.

## Direct

Azerbaijan Airlines flies direct, about 3991 km.

## Shortest routes

- BCN → GYD · 3991 km · about 325 min · 0 stops
- BCN → FCO → GYD · 4001 km · about 465 min · 1 stop
- BCN → BEG → GYD · 4003 km · about 460 min · 1 stop
- BCN → IST → GYD · 4019 km · about 475 min · 1 stop
- BCN → SAW → GYD · 4027 km · about 470 min · 1 stop
- BCN → ESB → GYD · 4050 km · about 485 min · 1 stop
- BCN → RMO → GYD · 4066 km · about 490 min · 1 stop
- BCN → BUD → GYD · 4095 km · about 480 min · 1 stop

## How to query this

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