# Flights from Hamburg (HAM) to Sofia (SOF)

1 direct, 57 routes with 1 stop, 5479 with 2 stops. Straight-line distance 1566 km.

## Direct

Wizz Air flies direct, about 1567 km.

## Shortest routes

- HAM → SOF · 1567 km · about 155 min · 0 stops
- HAM → BUD → SOF · 1570 km · about 275 min · 1 stop
- HAM → PRG → SOF · 1571 km · about 275 min · 1 stop
- HAM → VIE → SOF · 1572 km · about 270 min · 1 stop
- HAM → BEG → SOF · 1575 km · about 295 min · 1 stop
- HAM → BER → SOF · 1579 km · about 272 min · 1 stop
- HAM → NUE → SOF · 1681 km · about 320 min · 1 stop
- HAM → MUC → SOF · 1703 km · about 275 min · 1 stop

## How to query this

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