Airport Database API - IATA, ICAO, Flight Distance, METAR
airports_flight_distanceAirport database + flight distance in one call: IATA/ICAO lookup, airports near a point, great-circle distance, flight time and CO2 per passenger (official UK DEFRA 2025 factors), plus live METAR/TAF. Open data, no API key, no proxy. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.02/call via x402 at https://radarbg.com/x402/airports-flight-distance.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "distance",
"codes": [
"JFK",
"LHR",
"SOF"
],
"routes": [
"JFK-LHR",
"SOF-VAR",
"LAX-NRT"
],
"latitude": 43.2321
},
"name": "airports_flight_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | distance = great-circle distance, bearing and estimated flight time for routes like JFK-LHR. lookup = full airport details by IATA/ICAO code. search = find airports by text, country or type. nearby = airports around a latitude/longitude. we | |
| codes | No | IATA (3 letters, e.g. JFK) or ICAO (4 characters, e.g. EGLL) airport codes. For weather mode, ICAO codes of any station also work. For airline mode: airline IATA (BA, W6), ICAO (BAW) codes or names (Ryanair). | |
| query | No | Text to find in airport name, city, code or keywords, for example 'heathrow', 'varna' or 'international'. Can be combined with country and type filters. In airline mode: text in the airline name, alias or callsign, e.g. 'wizz' or 'speedbird | |
| types | No | Filter by type: large_airport, medium_airport, small_airport, heliport, seaplane_base, balloonport, closed. Empty = all open airport types in search mode, and large/medium/small airports in nearby mode. | |
| routes | No | Airport pairs as IATA or ICAO codes, for example JFK-LHR, SOF-VAR, LAX-NRT. Accepted separators: dash, 'to', '>' or space. | |
| country | No | Two-letter ISO country code, for example US, GB, BG, DE. Empty = all countries. In airline mode: ISO 2-letter code lists that country's airlines (e.g. BG). | |
| latitude | No | Latitude of the center point in decimal degrees, for example 43.2321 (Varna). | |
| radiusKm | No | Search radius around the point in kilometers. | |
| longitude | No | Longitude of the center point in decimal degrees, for example 27.8251 (Varna). | |
| includeTaf | No | Also return the latest TAF (terminal aerodrome forecast) for each station, raw text. | |
| includeFaaDelays | No | weather and lookup modes: add faaDelays to every US airport row - official FAA NAS status right now (ground stop, ground delay program with avg/max minutes, arrival/departure delays, closures). Non-US airports are unchanged. One extra free | |
| activeAirlinesOnly | No | Airline mode: for name, query and country searches return only airlines marked active. Code lookups always return the best match (active first) and list other airlines that used the same code. | |
| scheduledServiceOnly | No | Keep only airports that have scheduled passenger flights. Turn off to also see small airfields. |