Retrieve Airlines API
To obtain information about airlines, you can use this endpoint, filtering by IataAirline and Iso2Country.
API request example for information about a specific airline, you can search based on IATA airline code
https://www.goflightlabs.com/airlines?
access_key=YOUR_ACCESS_KEY&codeIataAirline=AA
HTTP GET Request Parameters:
Object | Description | |
---|---|---|
access_key |
required | Your API access key, which can be found in your account dashboard. |
codeIataAirline |
optional | Use this parameter to get information about a specific airline, you can search based on IATA airline code. |
codeIso2Country |
optional | Use this parameter to get information the airlines based on the country codes. |
Example API Response:
{
"success": true,
"data": [
{
"name": "American Airlines",
"slug": "american-aa-aal-us",
"country_code": "US",
"iata_code": "AA",
"iata_prefix": 1,
"iata_accounting": 1,
"icao_code": "AAL",
"callsign": "AMERICAN",
"is_international": 1,
"iosa_registered": 1,
"iosa_expiry": "2025-07-29T00:00:00.000Z",
"is_passenger": 1,
"is_cargo": 1,
"is_scheduled": 1,
"total_aircrafts": 684,
"average_fleet_age": 10.2,
"accidents_last_5y": 26,
"crashes_last_5y": 0,
"website": "www.aa.com",
"twitter": "twitter.com\/americanair",
"facebook": "facebook.com\/aa",
"instagram": "instagram.com\/americanair",
"linkedin": "linkedin.com\/company\/american-airlines"
}
]
}
API Response Objects:
Response Object | Description |
---|---|
name |
Name of the airline |
country_code |
Country code of the airline |
iata_code |
IATA code of the airline |
iata_prefix |
IATA prefix |
iata_accounting |
IATA accounting code |
icao_code |
ICAO code of the airline |
callsign |
Callsign of the airline |
is_international |
Indicates if the airline is international (1 for yes, 0 for no) |
iosa_registered |
Indicates if the airline is registered with IOSA (1 for yes, 0 for no) |
iosa_expiry |
Expiry date of IOSA registration |
is_passenger |
Indicates if the airline operates passenger flights (1 for yes, 0 for no) |
is_cargo |
Indicates if the airline operates cargo flights (1 for yes, 0 for no) |
is_scheduled |
Indicates if the airline operates scheduled flights (1 for yes, 0 for no) |
total_aircrafts |
Total number of aircraft operated by the airline |
average_fleet_age |
Average age of the fleet in years |
accidents_last_5y |
Number of accidents in the last 5 years |
crashes_last_5y |
Number of crashes in the last 5 years |
website |
Website of the airline |
twitter |
Twitter handle of the airline |
facebook |
Facebook page of the airline |
instagram |
Instagram handle of the airline |
linkedin |
LinkedIn page of the airline |