Airlines API

The Airlines API provides general and detailed fleet information for over 1,000 airlines from small, regional service providers to publicly-traded international carriers.

(4.4)

From 7,683 users

1,500+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
415ms451ms481ms663ms1079ms

Didn't find what you were looking for? Suggest an improvement


/v1/airlines GET

https://api.api-ninjas.com/v1/airlines

Returns a list of up to 10 airline results.

Parameters

At least one of the following parameters must be set:

  • icao  optional

    International Civil Aviation Organization (ICAO) 3-character airline code.

  • iata  optional

    International Air Transport Association (IATA) 2-character airline code.

  • name  optional

    Airline name. This parameter supports partial matching (e.g. United will match United Airlines).

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

Returns an array of airline objects, each containing:

  • name

    Airline name.

  • country

    Country where the airline is based.

  • year_created

    Year the airline was founded or created.

  • base

    Base airport or hub.

  • iata

    2-character IATA airline code.

  • icao

    3-character ICAO airline code.

  • fleet

    Object containing fleet information with aircraft type codes as keys and counts as values, plus a total field.

  • logo_url

    URL to the airline's full logo image.

  • brandmark_url

    URL to the airline's brandmark image.

  • tail_logo_url

    URL to the airline's tail logo image.

Sample Request Live Demo!

name

Try this API endpoint with all available parameters in our API playground

https://api.api-ninjas.com/v1/airlines?name=Singapore Airlines

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON

Code Examples

1 2 curl -X GET "https://api.api-ninjas.com/v1/airlines?name=Lufthansa" \ -H "X-Api-Key: YOUR_API_KEY"

If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.