GET /v1/aviation/airlines
Airlines, optionally limited to one country. These are the values the airlines and airlineCountries
filters accept on a Flight field.
Request
| Query parameter | Required | Default | Description |
|---|---|---|---|
country |
No | none | Limits the list to airlines registered in this country, as a two-character code. |
includeCeased |
No | false |
Includes airlines that have ceased operating. |
curl "https://api.alchemy.example/v1/aviation/airlines?country=gb" -H "X-Api-Key: YOUR_API_KEY"
Response
An array of { iataCode, icaoCode, name, callsign, country, active }, ordered by name:
[
{
"iataCode": "BA",
"icaoCode": "BAW",
"name": "British Airways",
"callsign": "SPEEDBIRD",
"country": "GB",
"active": true
},
{
"iataCode": "VS",
"icaoCode": "VIR",
"name": "Virgin Atlantic",
"callsign": "VIRGIN",
"country": "GB",
"active": true
}
]
The entries above are an example. Call the endpoint for current values.
| Property | Description |
|---|---|
iataCode |
The two-character IATA designator, used in flight numbers. |
icaoCode |
The three-letter ICAO designator. |
name |
The airline's name. |
callsign |
The airline's radio callsign. Omitted where it is unknown. |
country |
The country the airline is registered in. Omitted where it is unknown. |
active |
Whether the airline is still operating. |
Without includeCeased, the list contains only the airlines a Flight field uses by default. With it,
the list also contains the airlines a field with includeCeasedAirlines set can use.
An airline with no country is not matched by an airlineCountries filter.
Filtering with these values
The airline of an entry in the airlines filter is the IATA or ICAO designator. The country of an
entry in the airlineCountries filter is the country code. Both are matched without regard to case.
{
"type": "Flight",
"airlines": [{ "airline": "BA" }, { "airline": "VIR" }],
"map": {
"flightNumber": { "column": "flight_number", "dataType": "VarChar" },
"airlineName": { "column": "airline", "dataType": "VarChar" }
}
}
Errors
400 with a ProblemDetails body when country is not two characters. A country with no airlines
returns an empty array.
Requires an API key (see Authentication) but is not billed.