The Airports API provides vital information on nearly 30,000 airports worldwide including major international airports and small regional airports.
https://api.api-ninjas.com/v1/airports
Returns a list of up to 10 airport results. Use the offset parameter to access more results if available.
To look up a list of airport codes and names, use the /v1/airportslist endpoint.
At least one of the following parameters (other than offset) must be set:
iata optionalInternational Air Transport Association (IATA) 3-character airport code.
icao optionalInternational Civil Aviation Organization (ICAO) 4-character airport code.
name optional premium onlyAirport name. This parameter supports partial matching (e.g. Heathrow will match London Heathrow Airport).
country optional premium onlyAirport country. Must be 2-character ISO-2 country code (e.g. GB).
region optional premium onlyAdministrative region such as state or province within a country (e.g. California).
city optional premium onlyAirport city (e.g. London).
timezone optional premium onlyAirport timezone (e.g. Europe/London).
min_elevation optional premium onlyMinimum airport elevation in feet.
max_elevation optional premium onlyMaximum airport elevation in feet.
offset optional premium onlyNumber of results to offset for pagination.
X-Api-Key requiredAPI Key associated with your account.
https://api.api-ninjas.com/v1/airports?iata=LHRHeaders
X-Api-KeyLog in or sign up to get your API Key1
2
3
4
5
6
7
8
9
10
11
12
13
14
[
{
"icao": "EGLL",
"iata": "LHR",
"name": "London Heathrow Airport",
"city": "London",
"region": "England",
"country": "GB",
"elevation_ft": "83",
"latitude": "51.4706001282",
"longitude": "-0.4619410038",
"timezone": "Europe/London"
}
]1
2
curl -X GET "https://api.api-ninjas.com/v1/airports?iata=LHR" \
-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.
https://api.api-ninjas.com/v1/airportslist
Returns a list of up to 100 airport codes and names in alphabetical order. Use the offset parameter to access more results via pagination.
To look up detailed information about an airport, use the icao parameter in the /v1/airports endpoint.
offset optionalNumber of results to offset for pagination. Default is 0.
X-Api-Key requiredAPI Key associated with your account.
https://api.api-ninjas.com/v1/airportslist1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[
{
"icao": "00AK",
"name": "Lowell Field"
},
{
"icao": "00AL",
"name": "Epps Airpark"
},
{
"icao": "00AZ",
"name": "Cordes Airport"
},
"..."
]