{"uid":"cap_m0ZUfUHQlk2kBr_nllcoQ","slug":"sitecheck-airport-lookup-a89a6a8d","name":"SiteCheck Airport Lookup","description":"Airport lookup in a bundled OurAirports extract (public domain, dated in the answer): by IATA or ICAO code, by name or city words, or the nearest airports within a radius (up to 300 km) of a point. Covers large and medium airports and every airport with an IATA code; small airports without one are left out. Name, codes, type, city, country, coordinates, elevation and Wikipedia link. No time zone (not in the source).","url":"https://api.sitecheck-api.workers.dev/api/airports?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":[],"properties":{"q":{"type":"string","description":"Name or city words, 3 to 60 characters (one of code, q or lat and lon)"},"lat":{"type":"string","description":"Latitude for the nearest search (with lon)"},"lon":{"type":"string","description":"Longitude for the nearest search (with lat)"},"code":{"type":"string","description":"IATA (3 letters) or ICAO (4 letters) code (one of code, q or lat and lon)"},"limit":{"type":"string","description":"Airports to return, 1 to 20, default 10"},"radiusKm":{"type":"string","description":"Search radius for the nearest search, 1 to 300, default 300"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"count":1,"query":{"code":"LHR"},"source":"OurAirports (public domain), large and medium airports and all airports with an IATA code","airports":[{"lat":51.47075,"lon":-0.45991,"city":"London","iata":"LHR","icao":"EGLL","name":"London Heathrow Airport","type":"large","country":"GB","wikipedia":"https://en.wikipedia.org/wiki/Heathrow_Airport","elevationM":25}],"dataDate":"2026-10-15","checkedAt":"2026-10-15T14:00:30.557Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uQ9LgQqyJDoMjnzq4E8V5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up airports by IATA/ICAO code, name/city text search, or nearest geographic coordinates, returning structured airport data.","exampleAgentPrompt":"Look up airport details for London Heathrow using its IATA code LHR and give me its coordinates, elevation, and ICAO code.","exampleUseCases":[{"title":"Nearest airport to GPS coordinates","prompt":"Find the nearest airports within 150 km of latitude 48.8566 and longitude 2.3522 and list up to 5 results."},{"title":"Airport lookup by city name","prompt":"Search for airports in the city of Frankfurt and return all results with their IATA and ICAO codes."},{"title":"Validate IATA code for booking system","prompt":"I need to confirm that 'JFK' is a valid IATA code — can you look it up and give me the full airport name and country?"}],"resultDescription":"Returns a JSON object with a count, the original query echoed back, a source attribution, and an array of matching airports each containing IATA code, ICAO code, name, city, country, latitude, longitude, elevation in meters, airport type (large/medium/small), Wikipedia URL, and the data date and check timestamp.","failureModes":["No airports found for the given code/query/coordinates — returns empty airports array","Invalid IATA/ICAO code format — may return no results","Coordinates outside valid range — may return no results","Search radius out of allowed range (1–300 km) — likely validation error","Limit parameter out of range (1–20) — may be clamped or rejected","Payment failure if x402 micropayment not completed — 402 response"],"whenToPreferThis":"Use this endpoint when you need structured airport data (codes, coordinates, elevation, type) and can identify airports by IATA/ICAO code, name/city text, or geographic proximity. Prefer over general web search when you need machine-readable, consistently structured airport records from a known public-domain dataset. Ideal for travel planning agents, flight booking assistants, and logistics tools needing fast, pay-per-call airport lookups without a subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:43:13.050Z","isFirstParty":false,"canonicalSlug":"sitecheck-airport-lookup-a89a6a8d"}