{"uid":"cap_vWUOOGOhul4n92e_-y9yT","slug":"airports-reference-airport-to-airport-distance-calculator-ee4a9477","name":"Airports Reference – Airport-to-Airport Distance Calculator","description":"Great-circle distance in km, miles and nautical miles between two airports, with a rough flight time estimate.","url":"https://airports-reference.x402tookit.com/airport-distance?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["from","to"],"properties":{"to":{"type":"string","description":"Destination airport: IATA, ICAO or name"},"from":{"type":"string","description":"Origin airport: IATA, ICAO or name"},"speedKmh":{"type":"integer","description":"Assumed average cruise speed 300 to 1000 km/h (default 850)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"to":{"type":["null","object"],"properties":{"lat":{"type":["null","number"]},"lon":{"type":["null","number"]},"iata":{"type":["null","string"]},"icao":{"type":["null","string"]},"name":{"type":["null","string"]},"type":{"type":["null","string"]},"ident":{"type":["null","string"]},"region":{"type":["null","string"]},"country":{"type":["null","string"]},"elevationM":{"type":["null","number"]},"regionName":{"type":["null","string"]},"countryName":{"type":["null","string"]},"elevationFt":{"type":["null","number"]},"municipality":{"type":["null","string"]},"scheduledService":{"type":["boolean","null"]}}},"asOf":{"type":["null","string"]},"from":{"type":["null","object"],"properties":{"lat":{"type":["null","number"]},"lon":{"type":["null","number"]},"iata":{"type":["null","string"]},"icao":{"type":["null","string"]},"name":{"type":["null","string"]},"type":{"type":["null","string"]},"ident":{"type":["null","string"]},"region":{"type":["null","string"]},"country":{"type":["null","string"]},"elevationM":{"type":["null","number"]},"regionName":{"type":["null","string"]},"countryName":{"type":["null","string"]},"elevationFt":{"type":["null","number"]},"municipality":{"type":["null","string"]},"scheduledService":{"type":["boolean","null"]}}},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"estimate":{"type":["null","object"],"properties":{"minutes":{"type":["null","number"]},"hoursMinutes":{"type":["null","string"]},"assumedSpeedKmh":{"type":["null","number"]},"overheadMinutes":{"type":["null","number"]}}},"disclaimer":{"type":["null","string"]},"distanceKm":{"type":["null","number"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"attribution":{"type":["null","string"]},"distanceMiles":{"type":["null","number"]},"initialBearingDeg":{"type":["null","number"]},"distanceNauticalMiles":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bpwhxW80XW0z8-yFH7zAf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the great-circle distance in km, miles, and nautical miles between two airports, plus a rough flight time estimate based on cruise speed.","exampleAgentPrompt":"What's the great-circle distance between JFK and LHR, and roughly how long would the flight take at a cruise speed of 900 km/h?","exampleUseCases":[{"title":"Flight planning distance check","prompt":"How far is it from Los Angeles (LAX) to Tokyo Narita (NRT) in kilometers and nautical miles, and what's the estimated flight time at 850 km/h?"},{"title":"Travel itinerary leg comparison","prompt":"I'm planning a trip and want to compare two legs — can you tell me the great-circle distance between Dubai (DXB) and Singapore (SIN), and also between Singapore and Sydney (SYD)?"},{"title":"Aviation logistics route analysis","prompt":"What's the distance in miles and nautical miles from Chicago O'Hare (ORD) to Frankfurt (FRA), and how long would a flight take at a cruise speed of 920 km/h?"}],"resultDescription":"Returns a JSON object containing the resolved metadata for both the origin and destination airports (IATA, ICAO, name, lat/lon, country, region, elevation, municipality, scheduled service), the great-circle distance expressed in kilometers, miles, and nautical miles, an estimated flight time based on the specified or default cruise speed (850 km/h), and a timestamp for when the data was computed.","failureModes":["Unknown or unresolvable airport code/name returns null airport object","Invalid or out-of-range speedKmh value may return an error or use default","Fuzzy name matching may resolve to wrong airport if name is ambiguous","Missing required 'from' or 'to' query params returns a validation error","Network timeout or service unavailability returns a 5xx error"],"whenToPreferThis":"Use this endpoint when you need a precise great-circle distance between two specific airports (by IATA, ICAO, or name) along with a flight time estimate. It is the right choice when you already know both airport identifiers and need a quick, structured distance result in multiple units. Prefer this over general geospatial distance APIs when you specifically need airport-aware lookups with aviation context (codes, scheduled service, elevation) included in the response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:30:45.877Z","isFirstParty":false,"canonicalSlug":"airports-reference-airport-to-airport-distance-calculator-ee4a9477"}