BeMyPlan API

Airlines

Look up airlines by code, name or country.

IATA airline codes are not unique

A code can belong to more than one airline. Identify an airline by its id, or by its ICAO code.

Endpoints

  • GET /data/v1/airlines: list airlines.
  • GET /data/v1/airlines/{airlineId}: one airline by id (arl_…), including a deactivated one.

Filters

ParameterMeaning
iataCodeIATA code, 2 characters. Also finds an airline by one of its alternate or historical codes.
icaoCodeICAO code, 3 letters. Also finds an airline by one of its alternate or historical codes.
iataCountryCodeISO 3166-1 alpha-2 country code.
nameThe start of the name, ignoring case and accents.

Codes are case-insensitive (?iataCode=kl works). Ids are not: they are lower case only.

Lists also take the pagination parameters.

Fields

FieldNotes
idarl_…
iataCodeMay be null.
icaoCodeMay be null.
name
iataCountryCodeMay be null.
conditionsOfCarriageUrlMay be null.
logoSymbolUrlnull at launch: BeMyPlan provides no airline logos yet.
logoLockupUrlnull at launch: BeMyPlan provides no airline logos yet.
alternateIataCodesOther IATA codes of the same airline, in use today. An empty list when there is none.
alternateIcaoCodesOther ICAO codes of the same airline, in use today. An empty list when there is none.
historicalIataCodesIATA codes the airline used in the past and no longer uses. An empty list when there is none.
historicalIcaoCodesICAO codes the airline used in the past and no longer uses. An empty list when there is none.
codeAliasesEvery other code with its system (iata or icao), kind (current or historical) and validFrom / validTo dates (YYYY-MM-DD, or null when unknown).
activefalse for a deactivated record.

One airline is one record. When two entries describe the same airline, the record keeps its main codes in iataCode and icaoCode and lists the others in the two alternate fields; a code it no longer uses goes in the two historical fields. The code filters match all of them and return the record under its current main codes.

Errors

  • An id that does not exist: 404 airline_not_found.
  • An id that is malformed: 400.

Fields and parameters in full: the API reference.

On this page