Airport Code Lookup Online
Look up 12 000 airports by IATA / ICAO code, name or city, find the nearest airports, and get the distance and bearing between two airports.
Result
Press “Run” to see the result.
/v1/airports/SGN (or iata=, icao=, code=) returns one airport: name, type, city, country, region, coordinates, elevation, scheduled service, codes and, for large and medium airports, the open runways (ends, length, width, surface, lighting). q searches names, cities and known alternate names without accents (saigon finds Tân Sơn Nhất); filter with country, type (large, medium, small, seaplane) and scheduled=true.
lat + lon lists the nearest airports (by default large, medium and small airports that have an IATA code) with their distance; from + to returns the great-circle distance in km, miles and nautical miles and the initial and final bearing.
Data: OurAirports (public domain), refreshed weekly: all large and medium airports, plus small airports and seaplane bases that have an IATA or ICAO code; closed airports and heliports are left out. Distances are on a sphere, within about 0.5 % of the ellipsoid distance – fine for display and estimates, not for flight planning.
Use this in your code
curl "https://apibox.io.vn/v1/airports?from=SGN&to=NRT" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch('https://apibox.io.vn/v1/airports?from=SGN&to=NRT', {
method: 'GET',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
},
});
const data = await res.json();
console.log(data);import requests
res = requests.get(
"https://apibox.io.vn/v1/airports?from=SGN&to=NRT",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/airports?from=SGN&to=NRT');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Is the data free to reuse?
Yes. OurAirports releases its data into the public domain; a credit is appreciated but not required.
Why is a small airfield missing?
Small airports are kept only when they have an IATA or ICAO code. Heliports and closed airports are dropped.
Is the distance the flown distance?
No. It is the shortest great-circle distance between the two airports; real routes are longer because of airways and weather.