{"uid":"cap_c-594OCcB40QhHBUjQyWi","slug":"airport-distance-flight-metrics-calculator-f72f0023","name":"Airport Distance & Flight Metrics Calculator","description":"Great-circle distance between two airports by IATA or ICAO code in km, miles and nautical miles, bearing, approximate flight time and estimated economy-class CO2 per passenger.","url":"https://api.vextorium.com/distancia-aeropuertos-pago?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"origen":{"type":"string"},"destino":{"type":"string"}}},"responseSchema":{"type":"json","example":{"nota":"Distancia en línea recta; la ruta real suele ser un 3-8 % más larga. CO2 orientativo.","origen":{"lat":40.493407,"lon":-3.572249,"iata":"MAD","icao":"LEMD","pais":"ES","tipo":"grande","ciudad":"Madrid","nombre":"Adolfo Suárez Madrid–Barajas Airport","region":"ES-MD","altitud_m":609,"vuelos_regulares":true},"destino":{"lat":40.639447,"lon":-73.779317,"iata":"JFK","icao":"KJFK","pais":"US","tipo":"grande","ciudad":"New York","nombre":"John F. Kennedy International Airport","region":"US-NY","altitud_m":4,"vuelos_regulares":true},"distancia_km":5775.071,"distancia_millas":3588.463,"rumbo_inicial_grados":294.7,"tiempo_vuelo_aprox_h":7.72,"co2_pasajero_kg_aprox":686,"distancia_millas_nauticas":3118.289}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9EOFo3z8yIEBiD-hMfk4s","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates great-circle distance, bearing, approximate flight time, and economy-class CO2 emissions between two airports identified by IATA or ICAO code.","exampleAgentPrompt":"How far is it from Madrid (MAD) to New York JFK, and roughly how long would the flight take and how much CO2 would each passenger emit?","exampleUseCases":[{"title":"Carbon footprint check before booking","prompt":"I'm thinking of flying from London Heathrow (LHR) to Singapore Changi (SIN) — how far is that trip and what's the approximate CO2 per passenger in economy class?"},{"title":"Flight time estimate for itinerary planning","prompt":"Can you tell me the approximate flight duration and great-circle distance in km between LAX and NRT, and what direction the plane would initially fly?"},{"title":"Nautical miles for aviation route planning","prompt":"What's the great-circle distance in nautical miles between Dubai International (DXB) and Sydney Kingsford Smith (SYD), and what's the initial bearing?"}],"resultDescription":"Returns a JSON object with full metadata for both origin and destination airports (name, city, country, IATA/ICAO codes, coordinates, altitude, region, whether regular flights operate), plus the great-circle distance in km, miles, and nautical miles, the initial compass bearing in degrees, approximate flight time in hours, and estimated economy-class CO2 emissions per passenger in kg. Includes a note that real-world routes are typically 3–8% longer than the straight-line distance.","failureModes":["Unknown or invalid IATA/ICAO code returns an error or null airport data","Closed or private airports with no regular flights may return vuelos_regulares: false","Network timeouts may occur for slow upstream lookups","Missing 'origen' or 'destino' fields result in a validation error"],"whenToPreferThis":"Choose this endpoint when you need aviation-specific distance calculations between airports using standard IATA or ICAO codes, especially when you also need bearing, flight time estimates, or CO2 emissions data in a single call. Prefer it over generic geospatial distance APIs when working with named airports rather than raw coordinates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:39.331Z","isFirstParty":false,"canonicalSlug":"airport-distance-flight-metrics-calculator-f72f0023"}