{"uid":"cap_U7uoHPuHpbEakwmsFqyfl","slug":"vextorium-airport-distance-calculator-cb4016c4","name":"Vextorium Airport Distance 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/v1/airport-distance?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"origin":{"type":"string"},"destination":{"type":"string"}}},"responseSchema":{"type":"json","example":{"note":"Straight-line distance; the real route is usually 3-8% longer. CO2 is indicative.","origin":{"lat":40.493407,"lon":-3.572249,"city":"Madrid","iata":"MAD","icao":"LEMD","name":"Adolfo Suárez Madrid–Barajas Airport","type":"large","region":"ES-MD","country":"ES","altitude_m":609,"regular_flights":true},"destination":{"lat":40.639447,"lon":-73.779317,"city":"New York","iata":"JFK","icao":"KJFK","name":"John F. Kennedy International Airport","type":"large","region":"US-NY","country":"US","altitude_m":4,"regular_flights":true},"distance_km":5775.071,"distance_miles":3588.463,"flight_time_approx_h":7.72,"distance_nautical_miles":3118.289,"initial_bearing_degrees":294.7,"co2_per_passenger_kg_approx":686}},"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_qLhf_ndcBNuQPg7m-GoAu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the straight-line distance, approximate flight time, bearing, and CO2 emissions between two airports identified by IATA or ICAO code.","exampleAgentPrompt":"What's the great-circle distance and estimated flight time between MAD (Madrid Barajas) and JFK (New York Kennedy), and how much CO2 per passenger roughly?","exampleUseCases":[{"title":"Flight carbon footprint estimator","prompt":"I'm planning a trip from London Heathrow (LHR) to Tokyo Narita (NRT) — can you tell me the distance in km and the approximate CO2 emissions per passenger for that flight?"},{"title":"Airline route planning distance check","prompt":"We're evaluating a new route between Dubai (DXB) and São Paulo Guarulhos (GRU) — what's the straight-line distance in nautical miles, the initial bearing, and the approximate flight time?"},{"title":"Travel time comparison between airports","prompt":"How does the flight distance and estimated travel time from Chicago O'Hare (ORD) to Sydney (SYD) compare to flying from Los Angeles (LAX) to Sydney (SYD)?"}],"resultDescription":"Returns a JSON object with full metadata for both origin and destination airports (IATA, ICAO, name, city, country, region, lat/lon, altitude, type, regular flights flag), plus computed values: distance in km, miles, and nautical miles; approximate flight time in hours; initial bearing in degrees; and estimated CO2 per passenger in kg. Includes a note that the straight-line distance is typically 3–8% shorter than the actual route.","failureModes":["Unknown or invalid IATA/ICAO code returns an error or null airport metadata","Missing required origin or destination field returns a 400 validation error","Ambiguous airport identifier may resolve to the wrong airport","CO2 and flight time values are estimates and may not reflect actual airline routing"],"whenToPreferThis":"Use this endpoint when you need fast, structured, pay-per-call airport distance data including CO2 estimates and bearing without relying on a full flight search API. Ideal for agents that need geospatial aviation data without flight availability or pricing — e.g. carbon calculators, route planners, logistics tools, or travel apps needing distance enrichment. Prefer over generic geocoding APIs when the inputs are airport codes and aviation-specific output (nautical miles, bearing, CO2) is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:37:41.361Z","isFirstParty":false,"canonicalSlug":"vextorium-airport-distance-calculator-cb4016c4"}