{"uid":"cap_41WEJtgGn6LJ_RU7bXW8L","slug":"agent-data-tools-revmesh2074-workers-dev-airport-lookup-by-iata-icao-1a9554e5","name":"Airport Lookup by IATA/ICAO Code, Name, City, or Coordinates","description":"Look up airports by IATA or ICAO code, name or city (Paris, JFK, EGLL, Heathrow): codes, full name, city, country, region, coordinates, elevation, size, scheduled service and Wikipedia link, for ~9,500 airports worldwide; or give lat and lon for the nearest airports with distances. Data: OurAirports (public domain), committed snapshot, answers in milliseconds. Use for travel tools, flight data enrichment and geocoding airport codes.","url":"https://agent-data-tools.revmesh2074.workers.dev/airport/lookup?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"q":{"type":"string","description":"IATA code, ICAO code, airport name or city"},"lat":{"type":"number","description":"Latitude, for the nearest airports (with lon)"},"lon":{"type":"number","description":"Longitude, for the nearest airports (with lat)"},"limit":{"type":"integer","description":"Number of airports (1-25, default 5)"},"country":{"type":"string","description":"Only airports in this country (code or name)"},"scheduled":{"type":"string","description":"true: only airports with scheduled passenger service"}}},"responseSchema":{"type":"object","properties":{"count":{"type":"number"},"source":{"type":"string"},"airports":{"type":"array","items":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"},"city":{"type":"string"},"iata":{"type":"string"},"icao":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"ident":{"type":"string"},"region":{"type":"string"},"country":{"type":"string"},"homepage":{"type":"string"},"wikipedia":{"type":"string"},"countryName":{"type":"string"},"elevationFt":{"type":"number"},"scheduledService":{"type":"boolean"}}}},"dataDate":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_s1N83Mh_4wRBSMgloPv6S","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Look up airport details (codes, name, city, country, coordinates, elevation, size, scheduled service) by IATA/ICAO code, name, city, or nearest location for ~9,500 airports worldwide.","exampleAgentPrompt":"What are the full details for the airport with IATA code CDG — give me the ICAO code, city, country, coordinates, elevation, and whether it has scheduled passenger service?","exampleUseCases":[{"title":"Enrich flight booking with airport data","prompt":"I have a flight from LAX to NRT — can you look up both airports and give me their full names, cities, coordinates, and whether they have scheduled passenger service?"},{"title":"Find nearest airports to a location","prompt":"What are the 5 closest airports to latitude 48.8566, longitude 2.3522 — include distances and whether they have scheduled commercial flights?"},{"title":"Resolve ICAO code for flight plan","prompt":"I need to file a flight plan and I need the ICAO code, full name, elevation in feet, and coordinates for Heathrow airport — can you look that up?"}],"resultDescription":"Returns a list of matching airports (up to 25), each with IATA code, ICAO code, full name, city, country name, region, latitude, longitude, elevation in feet, airport type/size, scheduled service flag, homepage URL, and Wikipedia link, plus a count of results and data snapshot date.","failureModes":["No matching airport found for the given query (empty airports array with count 0)","Invalid or unknown IATA/ICAO code returns no results","Missing lon when lat is provided (or vice versa) may return empty or error response","Limit out of range (outside 1-25) may be clamped or cause an error","Country filter with unrecognized code or name returns no results"],"whenToPreferThis":"Use this endpoint when you need fast, structured airport metadata — IATA/ICAO codes, coordinates, country, elevation, and scheduled service status — without calling a full flight data API. It is ideal for enriching flight records with airport details, geocoding airport codes to coordinates, or finding nearby airports given a lat/lon. Prefer it over general web search or geocoding APIs when the entity of interest is specifically an airport and you need aviation-standard identifiers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T12:39:24.787Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-airport-lookup-by-iata-icao-1a9554e5"}