List airlines
GET/v2/airlines
List airlines
Responses
- 200
- default
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
airlines
object[]
Unique identifier for the airline.
The ICAO airline code. Unique. Example: UAL
The IATA airline code. This field is not unique. Example: UA
The ICAO airline display code. This is the code that is displayed to users and is usually the same as the ICAO code. However, some airlines have different display codes when they are a subsidiary of another airline, but use the same ICAO code as their parent company. As such, this field may not be unique. Example: UAL
The IATA airline display code. This is the code that is displayed to users and is usually the same as the IATA code. Currently, this will always be the same as the IATA code. Example: UA
The airline name. Example: United Airlines
{
"airlines": [
{
"id": "string",
"icaoCode": "string",
"iataCode": "string",
"displayIcaoCode": "string",
"displayIataCode": "string",
"name": "string"
}
]
}
Default error response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details
object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}