Calculate Distance Between Any Two Airports

Airport Distance API.

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.

Free tier, no card< 200ms responses99.9% uptime SLA
GET/v1/airportdistancelive
Response200 OK · sample
{
  "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"
    }
  }
}
Sample response · verify to run one live call, no signup
Integrates with your favorite tools
LangChainn8nZapierMakePipedreamPower AutomatePostman

Airport Distance API

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.

  • Distance between any two airports
  • Results in miles and kilometers
  • Full airport details included
  • Comprehensive global airport database
  1. 1

    Send one request

    A single authenticated GET with the location you care about — no SDK required.

    GET /v1/airportdistance?query=
    x-api-key: your_key
  2. 2

    We do the aggregation

    Each request pulls from multiple upstream sources and computes the derived fields for you.

  3. 3

    Get clean JSON back

    One structured object, typically under 200 ms — ready to render.

    { distanceMiles, distanceKm, distanceNauticalMiles, }

Everything in a single call.

/v1/airportdistanceapplication/json
distanceMiles2470.23
distanceKm3974.2
distanceNauticalMiles2145.12
estimatedFlightTime"5h 24m"
timezoneDiffHours-3
bearing265
direction"West"
isInternationalfalse
carbonEstimateKg543
airport1name, iata, icao, city, state, country, elevation, latitude, longitude, timezone
airport2name, iata, icao, city, state, country, elevation, latitude, longitude, timezone

What developers build with it.

Real applications shipping on this endpoint today — each with the numbers that made it worth wiring up.

See every use case

Call it in your language.

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);

One subscription, the whole calculate distance between any two airports stack.

Every related API ships with your key — no separate plans, no extra keys, one bill.

See pricing
8APIs in this bundle
99.9%uptime SLA

Wire it into the tools you already run.

Ready-made recipes for Zapier, Make, and n8n — trigger on an event, and the data lands where your team works.

Google Sheets
Airport Distance Lookup in Google Sheets
WhenNew row added in Google Sheets
ThenFetch airport distance for IATA codes in row → write distanceMiles, distanceKm, and estimatedFlightTime to columns
Slack
Flight Distance Bot in Slack
WhenNew message posted in Slack channel
ThenFetch airport distance for airport codes → reply with distanceMiles, estimatedFlightTime, and airport cities
Airtable
Flight Route Database in Airtable
WhenNew record created in Airtable
ThenFetch airport distance for IATA codes → update record with distanceMiles, estimatedFlightTime, and direction
Notion
Travel Itinerary in Notion
WhenNew page created in Notion
ThenFetch airport distance for route → add distanceMiles, estimatedFlightTime, and timezoneDiffHours to page
Salesforce
Client Travel Distance in Salesforce
WhenNew opportunity created in Salesforce
ThenFetch airport distance for client and office airports → update with distanceMiles and estimatedFlightTime
GitHub
Team Travel Carbon Tracker on GitHub
WhenNew issue created in GitHub
ThenFetch airport distance for travel request → add carbonEstimateKg and distanceKm as issue comment
Browse all integrations

Questions about the API

What airport codes should I use?
Use ICAO codes (4 letters, e.g., KJFK, EGLL). ICAO codes are the international standard for aviation. Common US airports start with "K" (KJFK, KLAX, KORD).
Can I use IATA codes instead?
This API requires ICAO codes. IATA codes (3 letters like JFK, LHR) are not supported directly. Use our Airport Lookup API to convert between codes.
How is the distance calculated?
We use the great-circle distance formula (Haversine), which calculates the shortest distance over the Earth's surface. This is the standard for aviation.
Does it include all airports?
Our database includes major international airports, regional airports, and most public-use airfields worldwide.
Is this the actual flight distance?
This is the great-circle (direct) distance. Actual flight paths may be longer due to air traffic routes, weather, and restricted airspace.
Can I calculate flight time from this?
You can estimate flight time by dividing distance by average cruise speed (roughly 500-550 mph for jets), but actual times vary based on aircraft, winds, and routes.

Start building with the Airport Distance API. Free tier, no card required — your key is live in minutes.

Bonus: 300+ more APIs

The same key unlocks every other APIVerve endpoint — reach for them when you need them.

Browse the catalog