Airport Distance API

GET

Estimate flight duration and route distance between any pair of airports.

Airport Distance calculates great-circle flight distances and travel times between two airports using their 3-letter IATA codes. It provides route distance in miles and kilometers plus estimated flight duration.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/airportdistance?iata1=JFK&iata2=LAX
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "distanceMiles": 2470.23,
    "distanceKm": 3974.2,
    "distanceNauticalMiles": 2145.9,
    "estimatedFlightTime": "5h 26m",
    "timezoneDiffHours": -3,
    "bearing": 274,
    "direction": "West",
    "isInternational": false,
    "carbonEstimateKg": 469,
    "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"
    }
  }
}

Start from a template — a working app you can deploy in a minute

About the Airport Distance API

Supply two airport IATA codes to calculate the great-circle route distance in statute miles and kilometers together with estimated flight duration. Paid plans can query by four-letter ICAO codes and receive extra flight parameters, including nautical miles, initial compass bearing, timezone differences, passenger carbon estimates, and airport coordinates.

What people use it for

Flight Booking Summary
Travel booking platforms display flight distances and transit durations directly on ticket search results to give travelers accurate itinerary details.
Loyalty Points Calculation
To award frequent flyer status, loyalty management software measures flight mileage between departure and destination hubs for every passenger ticket.
Corporate Emissions Tracking
When logging business trips, corporate expense platforms look up route distances to audit travel policies and calculate flight carbon budgets.
Air Freight Planning
Estimate transit times and route mileage between airfield pairs before scheduling chartered cargo flights or aircraft repositioning legs.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Airport Distance

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Airport Distance API.

Read the docs →
Can I look up routes using ICAO codes instead of IATA?
Yes. Airport Distance provides dedicated endpoints for both standard three-letter IATA codes and four-letter ICAO codes. Note that queries using ICAO parameters require a paid plan.
Are carbon emissions and nautical miles included on the Free plan?
No, those are premium fields. The Free plan returns standard statute miles, kilometers, and estimated flight time. Upgrading to any paid plan unlocks nautical miles, compass bearings, timezone differences, passenger carbon estimates, and full airport metadata like city, elevation, and coordinates.
How many airport distance lookups does the Free plan cover?
The Free plan covers 100 airport distance lookups each month at 2 credits per call. If you need higher volume, the Starter plan provides 200,000 credits for up to 100,000 lookups a month, which works out to about $0.30 per 1,000 calls.
What units of measurement are provided for the route distance?
The API calculates great-circle distance in statute miles and kilometers on all plans. Paid plans also return distance in nautical miles, the aviation industry standard.
Can I use these flight distances and airport details in a commercial app?
Yes, commercial use is permitted on any paid plan. The Free plan is for non-commercial testing and evaluation only. You may embed the distance, duration, and airport details into your own software, but you cannot resell or redistribute the raw data as-is.

Ready to build with Airport Distance? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs