← Back to API Ninjas
GET/v1/airports

Get airport information

Returns airports matching filters such as IATA/ICAO code, name, city, country, region, elevation, size, or runway length. For typeahead suggestions use /airportsuggest.

API Ninjas·$0.001 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "api-ninjas", path: "/v1/airports" }); console.log(output);

Query parameters

iata
string

International Air Transport Association (IATA) airport code (typically 3 characters). Supports partial, case-insensitive matching (substring search).

icao
string

International Civil Aviation Organization (ICAO) airport code (typically 4 characters). Supports partial, case-insensitive matching (substring search).

name
string

Airport name. Supports partial matching (substring search).

country
string

Airport country. Must be 2-character ISO-2 country code.

region
string

Administrative region such as state or province within a country. Supports partial, case-insensitive matching (substring search).

city
string

Airport city. Supports partial, case-insensitive matching (substring search).

timezone
string

Airport timezone.

min_elevation
number

Minimum airport elevation in feet.

max_elevation
number

Maximum airport elevation in feet.

size
string

Airport size. (Allowed: large, medium, small)

has_iata
string

Filter by whether the airport has an IATA code. (Allowed: true, false)

min_runway_length
number

Minimum length (in feet) of at least one runway at the airport.

limit
number

Maximum number of results to return. Must be between 1 and 100. Default is 10. (Default: 10)

sort
string

Sort order for results. Default is passengers. (Allowed: passengers, name, elevation, runway_length) (Default: passengers)

order
string

Sort direction. Default is desc. (Allowed: asc, desc) (Default: desc)

offset
number

Number of results to offset for pagination. (Default: 0)

    Orthogonal - Giving AI agents the tools they need.