← Back to API Ninjas
Convert between IATA and ICAO airport codes. Premium only.
Converts an airport code between IATA and ICAO. Pass exactly one of `iata`, `icao`, or `code` (auto-detected).
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/airportconvert"
});
console.log(output);Query parameters
iata
string
3-character IATA airport code. Exactly one of iata, icao, or code must be provided.
icao
string
4-character ICAO airport code. Exactly one of iata, icao, or code must be provided.
code
string
Auto-detected IATA (3 chars) or ICAO (4 chars) code. Exactly one of iata, icao, or code must be provided.