API console
Try it
Send a real request to the sandbox API and inspect the response.
Credentials
Log in to pick from your saved API keys instead of pasting them.
Query parameters
7 fieldsAirline code
Two-character IATA airline code, such as W6.
Airport code
Three-character IATA airport code, such as BCN.
Flight direction
Whether the traveller is arriving at or departing from the airport.
Pickup date and time
Local pickup date and time, for example 2026-06-30 10:45.
Flight number
Flight number without the airline code.
Currency
Currency of the returned amounts. Must match the offer or reservation when one already exists.
Language
Legacy language field. Prefer the LANG or Accept-Language header.
cURL request
curl -X GET 'https://api.sandbox.travelandz.com/v1/transfers/flights?airlineCode=W6&airportCode=BCN&flightDirection=arriving&pickupDatetime=2026-06-30+10%3A45&flightNumber=1705¤cy=USD' \
-H 'Authorization: Bearer YOUR_SECRET_KEY' \
-H 'X-Travelandz-Id: YOUR_PUBLIC_KEY:YOUR_PROFILE_CODE'Add your credentials to send a request.
Response
Click "Try it!" to send a request and see the response here.
Look up the flight a traveller is arriving on or departing with.
Authentication and headers
| Header | Description |
|---|---|
Authorization | Bearer <secret_key>. Keep the secret on the server and never write it to client logs. |
X-Travelandz-Id | <public_key>:<profile_code>, where the persisted profile code has the form dp_<12 alphanumeric>. |
LANG | Preferred locale header. Accept-Language is also supported. |
Content-Type | application/json for requests with a JSON body. |
Request
This endpoint takes no body. All five identifying query parameters are required.
Request Query Params Schema
airlineCodeairportCodeflightDirectionpickupDatetimeflightNumbercurrencyUSD on a new search and is inherited afterwards.languageLANG or Accept-Language header.Success response
Returns flights[]. An empty array is a successful result and simply means no flight matched.
Response Body Schema
flightsflights[]airlineCodeflights[]airlineNameflights[]flightNumberflights[]flightCodeflights[]flightTypeflights[]originflights[]destinationflights[]timeflights[]datetimeResponse examples
{
"flights": [
{
"airlineCode": "W6",
"airlineName": "Wizz Air",
"flightNumber": "1705",
"flightCode": "W61705",
"flightType": "international",
"origin": "GDN",
"destination": "BCN",
"time": "9:10PM",
"datetime": "2026-06-30T21:10:00+02:00"
}
]
}Errors
| HTTP | Code | Meaning | Recommended action |
|---|---|---|---|
400 | The body, query or path is invalid, or contains an unknown property. | Fix the request using the message array. | |
400 | transfer_invalid_currency | The currency is outside the supported list. | Use a supported currency. |
400 | transfer_invalid_language | The requested language is not supported. | Use one of the documented language values. |
429 | transfer_provider_error | The service is temporarily rate limited. | Retry with exponential backoff. |
502 | transfer_provider_error | The request could not be completed. | Do not assume success. Keep your identifiers and read the reservation when the operation could have been created. |
Usage notes
Use this endpoint to fill airline and flightNumber for booking, then verify the flight against the pickup time before you charge the traveller.
cURL example
curl --request GET \
--url "https://api.sandbox.travelandz.com/v1/transfers/flights?airlineCode=W6&airportCode=BCN&flightDirection=arriving&pickupDatetime=2026-06-30%2010%3A45&flightNumber=1705¤cy=USD" \
-H "Authorization: Bearer $TRAVELANDZ_SECRET_KEY" \
-H "X-Travelandz-Id: $TRAVELANDZ_PUBLIC_KEY:$TRAVELANDZ_PROFILE_CODE"