airport_lookup
Retrieve airport details using IATA, ICAO, or name search. Returns full record with coordinates, location, type, and elevation.
Instructions
Look up an airport by IATA code (3 letters, e.g. "LHR"), ICAO code (4 chars, e.g. "EGLL"), or free-text name/city search (e.g. "heathrow"). Returns the full record: IATA + ICAO, name, type (large/medium/small/heliport/closed/seaplane), municipality, region, country, latitude/longitude and elevation. Provide one of iata, icao, or query; optional type filter. Ambiguous name searches return ranked candidates. Covers 85,555 airports worldwide (OurAirports, public domain, cross-checked vs OpenFlights + Wikidata). Use when an agent has an airport code or name and needs the airport's identity, location or codes. Distinct from airline_lookup (which searches CARRIERS / AWB prefixes, not airports) and unlocode_lookup (general UN/LOCODE transport locations of which airports are one function). Reference data only — not for navigation; verify current codes with IATA/ICAO.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iata | No | Exact 3-letter IATA code | |
| icao | No | Exact 4-character ICAO / ident | |
| type | No | Optional filter by airport type | |
| query | No | Name / city / municipality search (min 2 chars) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| count | Yes | ||
| _source | Yes | ||
| results | Yes | ||
| disclaimer | Yes |