{"uid":"cap_8wrcPSCIKab2w8xK7ce99","slug":"airports-reference-airport-lookup-by-code-or-name-dc18b662","name":"Airports Reference – Airport Lookup by Code or Name","description":"Find an airport by IATA code, ICAO code or name with fuzzy matching: location, elevation, type, longest runway.","url":"https://airports-reference.x402tookit.com/airport-lookup?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":["q"],"properties":{"q":{"type":"string","description":"IATA (JFK), ICAO (KJFK) or name (Heathrow, Kennedy Intl)"},"country":{"type":"string","description":"Optional ISO country code or name to narrow a name search"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"input":{"type":["null","string"]},"source":{"type":["null","string"]},"matches":{"type":["array","null"],"items":{"type":"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"]},"score":{"type":["null","number"]},"region":{"type":["null","string"]},"country":{"type":["null","string"]},"matchedOn":{"type":["null","string"]},"wikipedia":{"type":["null","string"]},"elevationM":{"type":["null","number"]},"regionName":{"type":["null","string"]},"countryName":{"type":["null","string"]},"elevationFt":{"type":["null","number"]},"municipality":{"type":["null","string"]},"longestRunwayFt":{"type":["null","number"]},"scheduledService":{"type":["boolean","null"]}}}},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"attribution":{"type":["null","string"]}}}}}}},"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_48g90ZmOlGIV10XkuhuTX","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":"Look up an airport by IATA code, ICAO code, or name (with fuzzy matching) and return its location, elevation, type, and longest runway.","exampleAgentPrompt":"Can you look up the airport with IATA code SFO and tell me its exact coordinates, elevation, type, and how long its longest runway is?","exampleUseCases":[{"title":"Validate IATA code before booking","prompt":"I have the code 'LHR' — can you confirm that's a real airport and tell me its full name, country, and whether it has scheduled commercial service?"},{"title":"Fuzzy search airport by city name","prompt":"I'm not sure of the exact code — look up 'Kennedy International' and give me its IATA and ICAO codes plus its location coordinates."},{"title":"Check runway length for aircraft planning","prompt":"What's the longest runway at Dubai International airport (DXB), and what's the elevation there in feet?"}],"resultDescription":"A list of matching airport records scored by relevance, each containing IATA code, ICAO code, full name, latitude, longitude, elevation in meters and feet, airport type, longest runway in feet, municipality, region, country, scheduled service flag, Wikipedia URL, and the field that was matched on. Also includes a summary and any relevant disclaimers.","failureModes":["No airport found for the given code or name — returns empty matches array","Ambiguous name query returns multiple low-confidence matches requiring disambiguation","Malformed or non-existent IATA/ICAO code returns no results","Optional country filter may not narrow results if country code is unrecognized","Network or payment authorization failure returns HTTP error"],"whenToPreferThis":"Choose this endpoint when you need to resolve an airport identifier (IATA, ICAO, or a human-readable name) into structured reference data including location, elevation, and runway info. It supports fuzzy name matching, making it suitable for user-supplied freeform input. Prefer sibling endpoints for nearest-airport searches, country listings, code conversions, or great-circle distances.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:11:23.269Z","isFirstParty":false,"canonicalSlug":"airports-reference-airport-lookup-by-code-or-name-dc18b662"}