{"uid":"cap_EiKcVFMtvSXYGAom-VEuj","slug":"airports-reference-airport-code-converter-iata-icao-58311be8","name":"Airports Reference: Airport Code Converter (IATA ↔ ICAO)","description":"Convert an airport code between IATA (3 letters) and ICAO (4 letters) and validate the format; reports unknown codes.","url":"https://airports-reference.x402tookit.com/airport-code-convert?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["code"],"properties":{"code":{"type":"string","description":"An IATA (LHR) or ICAO (EGLL) airport code"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"iata":{"type":["null","string"]},"icao":{"type":["null","string"]},"input":{"type":["null","string"]},"source":{"type":["null","string"]},"airport":{"type":["null","object"],"properties":{"lat":{"type":["null","number"]},"lon":{"type":["null","number"]},"iata":{"type":["null","string"]},"icao":{"type":["null","string"]},"name":{"type":["null","string"]},"type":{"type":["null","string"]},"ident":{"type":["null","string"]},"region":{"type":["null","string"]},"country":{"type":["null","string"]},"elevationM":{"type":["null","number"]},"regionName":{"type":["null","string"]},"countryName":{"type":["null","string"]},"elevationFt":{"type":["null","number"]},"municipality":{"type":["null","string"]},"scheduledService":{"type":["boolean","null"]}}},"reasons":{"type":["array","null"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"inputKind":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"attribution":{"type":["null","string"]},"formatValid":{"type":["boolean","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FAorVZmt6RQ-9f1211oOn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an airport code between IATA (3-letter) and ICAO (4-letter) formats, validates the format, and reports whether the code is known.","exampleAgentPrompt":"What's the ICAO code for London Heathrow — I have the IATA code LHR and need the 4-letter version for a flight plan.","exampleUseCases":[{"title":"Flight plan ICAO code lookup","prompt":"I'm filing a flight plan and need the ICAO code for Dallas Fort Worth — I only have the IATA code DFW. Can you convert it?"},{"title":"Validate passenger itinerary code","prompt":"A booking system returned the airport code 'KSFO' — is that a valid ICAO code, and what's the matching IATA code?"},{"title":"Normalize mixed-format airport data","prompt":"I have a dataset with a mix of IATA and ICAO codes, starting with EGLL — can you tell me what IATA code that maps to and confirm the format is valid?"}],"resultDescription":"Returns both the IATA and ICAO codes for the airport, a format validity flag, a verdict on whether the code is known, a human-readable summary, detailed airport metadata (name, type, lat/lon, country, region, municipality, elevation in meters and feet, scheduled service status), the input code echo, input kind (IATA or ICAO), and source/attribution fields. If the code is unknown or malformed, the verdict and reasons fields reflect that.","failureModes":["Unknown code: code passes format validation but is not found in the dataset — verdict reflects 'unknown', iata/icao fields may be null","Invalid format: code does not match IATA (3 letters) or ICAO (4 letters) pattern — formatValid returns false","Missing required parameter: omitting the 'code' query parameter results in an error response","Ambiguous or non-airport ICAO prefix: some valid-format codes may not correspond to civilian airports"],"whenToPreferThis":"Use this endpoint when you need to convert between IATA and ICAO airport code formats, validate whether a given code is correctly formatted and recognized, or retrieve basic airport metadata keyed by either code type. It is purpose-built for code-format translation and validation, unlike a general airport search endpoint which is better suited for fuzzy name matching or discovery.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:12:42.103Z","isFirstParty":false,"canonicalSlug":"airports-reference-airport-code-converter-iata-icao-58311be8"}