Search airlines
The airlines field on a flight search takes 2-character codes, not names. This call turns “Delta” or DL into the code you send.
Send X-API-Key the same way as on every other call. query is required. country and locale are optional and default to US and en.
Which code to send
Use airlines[].code on Search flights, inside airlines. DL is Delta. LH is Lufthansa. Codes longer than two characters are left out, because the search rejects them.
A query that matches nothing returns 200 with an empty airlines list. A missing query, a blank query, a bad locale, or an unsupported country returns 400. If the lookup itself fails, the response is 502 AIRLINES_UNAVAILABLE.
Parameters
Query parameters.
Airline name or code. 1 to 80 characters. A blank value is rejected.
ISO 3166-1 alpha-2 market. Omit it for US. Any other value is rejected. Same set as on a flight search.
Possible values59
USGBDEFRESITNLBEATCHIEPTGRPLCZROSENODKFITRAESAILINJPKRHKTWSGMYTHIDPHVNAUNZCAMXBRARCLCOPEUYPYBOECVECRPAGTHNNISVDOPRZAUA2-letter language code. Omit it for en. Anything that is not two letters is rejected.
Returns
A successful response, captured live.
{
"query": "delta",
"airlines": [
{
"code": "DL",
"name": "Delta",
"logo": "https://content.r9cdn.net/rimg/provider-logos/airlines/h/DL.png?crop=false&width=71&height=25&fallback=default1.png"
}
]
}