# Flights from Madrid (MAD) to Campinas (VCP)

1 direct, 11 routes with 1 stop, 738 with 2 stops. Straight-line distance 8376 km.

## Direct

Azul flies direct, about 8353 km.

## Shortest routes

- MAD → VCP · 8353 km · about 665 min · 0 stops
- MAD → SSA → VCP · 8369 km · about 770 min · 1 stop
- MAD → REC → VCP · 8372 km · about 800 min · 1 stop
- MAD → FOR → VCP · 8379 km · about 830 min · 1 stop
- MAD → LIS → VCP · 8418 km · about 810 min · 1 stop
- MAD → GIG → VCP · 8524 km · about 780 min · 1 stop
- MAD → OPO → VCP · 8584 km · about 800 min · 1 stop
- MAD → LUX → VCP · 10910 km · about 1021 min · 1 stop

## How to query this

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