Calculate the great-circle distance between any two airports using their ICAO codes. Returns distance in miles and kilometers along with full airport details. Essential for flight planning, travel applications, and carbon footprint calculators.
{
"status": "ok",
"error": null,
"data": {
"distanceMiles": 2470.23,
"distanceKm": 3974.2,
"distanceNauticalMiles": 2145.12,
"estimatedFlightTime": "5h 24m",
"timezoneDiffHours": -3,
"bearing": 265,
"direction": "West",
"isInternational": false,
"carbonEstimateKg": 543,
"airport1": {
"name": "John F Kennedy International Airport",
"iata": "JFK",
"icao": "KJFK",
"city": "New York",
"state": "New-York",
"country": "US",
"elevation": 13,
"latitude": 40.63980103,
"longitude": -73.77890015,
"timezone": "America/New_York"
},
"airport2": {
"name": "Los Angeles International Airport",
"iata": "LAX",
"icao": "KLAX",
"city": "Los Angeles",
"state": "California",
"country": "US",
"elevation": 125,
"latitude": 33.94250107,
"longitude": -118.4079971,
"timezone": "America/Los_Angeles"
}
}
}






Calculate the great-circle distance between any two airports using their ICAO codes. Returns distance in miles and kilometers along with full airport details. Essential for flight planning, travel applications, and carbon footprint calculators.
A single authenticated GET with the location you care about — no SDK required.
GET /v1/airportdistance?query=… x-api-key: your_key
Each request pulls from multiple upstream sources and computes the derived fields for you.
One structured object, typically under 200 ms — ready to render.
{ distanceMiles, distanceKm, distanceNauticalMiles, … }
Real applications shipping on this endpoint today — each with the numbers that made it worth wiring up.
See every use caseUse precise airport distances to calculate CO2 emissions. Provide users with accurate environmental impact data for their flights.
Provide precise great-circle distances between airports. Include full airport details for comprehensive flight planning.
Copy a working request, or install a typed SDK. Same endpoint, same key.
const res = await fetch("https://api.apiverve.com/v1/airportdistance?iata1=JFK&iata2=LAX", {
headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);Every related API ships with your key — no separate plans, no extra keys, one bill.
See pricingReady-made recipes for Zapier, Make, and n8n — trigger on an event, and the data lands where your team works.
The same key unlocks every other APIVerve endpoint — reach for them when you need them.
Browse the catalog