Airport Reference IATA ICAO Lookup Search Distance Airlines API
Free tier included · TravelAirport Reference API delivers comprehensive airport reference data completely offline using public-domain OurAirports data. Look up any airport by IATA (3-letter) or ICAO (4-letter) code, search airports by country and name, calculate great-circle distance and estimated flight time between airports, and resolve airline and aircraft details — all without external calls or data retention.
This API covers lookup, search, distance, airlines, aircraft. With over 9,000 airports featuring IATA codes, plus airline and aircraft reference data from OpenFlights, it's ideal for travel apps, flight planning tools, aviation databases, and logistics platforms needing reliable static reference data.
The service is stateless and offline: no databases are written to, no request logs are kept, and no third-party calls are made. Responses are fast JSON, with optional XML or YAML output via the /format endpoint. Honest limits: this is reference data only — no live flight status, schedules, or real-time availability. The /near endpoint caps radius at 500 km and returns at most 200 results; /search and /near accept limit 1–200. Codes are validated to 3–7 ASCII alphanumeric characters; invalid codes return 422, unknown codes return 404.
Endpoints
| Method | Path | What it does |
|---|---|---|
GET | / | API metadata: name, version, and links to the interactive docs and health endpoint. |
GET | /health | Liveness probe; returns status "ok" while the process is up. |
GET | /stats | Dataset statistics: number of airport records and the data license/attribution string. |
GET | /lookup | Resolve a single airport by IATA (3-letter) or ICAO (4-letter) code. Case-insensitive; code is trimmed and uppercased before lookup. |
GET | /search | List airports of one ISO 3166-1 alpha-2 country, optionally filtered by a case-insensitive substring of the airport name or municipality. |
GET | /near | Airports within radius_km of (lat, lon), closest first, capped by limit. |
GET | /distance | Great-circle distance (km) and estimated flight time between two airports identified by IATA or ICAO code. |
GET | /airline | Resolve an airline by its 2-letter IATA code or 3-letter ICAO code. |
GET | /aircraft | Resolve an aircraft type by its IATA code or ICAO code. |
GET | /format | Same airport data as /lookup but serialized in the requested format: json (default), xml, or yaml. |
Quick start
curl -X GET "https://airport.p.rapidapi.com/stats" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: airport.p.rapidapi.com"
FAQ
Does this API provide live flight status or schedules?
No. This is reference data only — airport details, coordinates, elevation, and similar static information. No live flights, schedules, or real-time availability.
Is the data updated regularly?
The data is sourced from OurAirports public-domain snapshots and OpenFlights datasets. Updates are periodic, not real-time. Check /stats for the current record count.
Can I get results in XML or YAML instead of JSON?
Yes, use the /format endpoint with `format=xml` or `format=yaml`. The default /lookup endpoint returns JSON only.
What happens if I pass an invalid or unknown code?
Invalid codes (wrong length or non-alphanumeric characters) return HTTP 422. Unknown but valid-format codes return HTTP 404 with a structured error message.
Try Airport Reference IATA ICAO Lookup Search Distance Airlines free
Free tier on every plan. Get an API key and start calling in under a minute.
Open on RapidAPI