{"uid":"cap_2sHpKXLTeppzy8X5jme0x","slug":"opendata402-airport-lookup-0fc4a2ce","name":"opendata402 Airport Lookup","description":"Airport lookup by IATA code (AMS), ICAO code (EHAM) or name/city: name, type, city, country, region, coordinates, elevation, scheduled service and both codes, for about 9,000 large, medium and IATA-coded airports worldwide. Use it for travel, logistics and aviation tasks. OurAirports data, public domain, refreshed nightly.","url":"https://opendata402.com/v1/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","properties":{"q":{"type":"string","maxLength":80,"minLength":3,"description":"Name or city."},"code":{"type":"string","pattern":"^[A-Za-z0-9]{3,4}$","description":"IATA (3) or ICAO (4) code."},"country":{"type":"string","pattern":"^[A-Za-z]{2}$","description":"ISO country code filter for q."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_cynH_4-fDpFu0P1neKyJO","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":"Look up airport details by IATA code, ICAO code, or name/city, returning name, type, location, coordinates, elevation, and service status for ~9,000 airports worldwide.","exampleAgentPrompt":"What are the full details for Amsterdam Airport Schiphol — its IATA and ICAO codes, coordinates, elevation, country, and whether it has scheduled service?","exampleUseCases":[{"title":"Flight route planning by airport code","prompt":"I need the full details for Schiphol Airport — can you look it up by its IATA code AMS and give me its coordinates, country, region, and whether it has scheduled service?"},{"title":"Verifying airport existence for a city","prompt":"Does the city of Eindhoven have an airport with scheduled service? Search by city name and tell me the airport name, type, IATA code, and coordinates."},{"title":"Filtering airports by country","prompt":"Find all airports in Portugal — search by country code PT — and list their names, IATA codes, types, and whether they have scheduled commercial service."}],"resultDescription":"Returns a JSON object (or array) with airport name, type (large/medium/small), city, country, region, geographic coordinates (latitude/longitude), elevation in feet, scheduled service flag, IATA code, and ICAO code for each matched airport.","failureModes":["No results found if the IATA/ICAO code is invalid or not in the database","Ambiguous name/city queries may return multiple results requiring further filtering","Small or private airports not assigned IATA codes may not appear","Stale data possible for recently opened or closed airports despite nightly refresh","Missing q or code parameter returns an error requiring at least one search term"],"whenToPreferThis":"Choose this endpoint when you need structured, authoritative airport reference data — especially coordinates, codes, type, and scheduled-service status — for travel itinerary planning, logistics routing, or aviation lookups. It covers ~9,000 large, medium, and IATA-coded airports globally with nightly-refreshed OurAirports data. Prefer it over general geocoding APIs when the entity is specifically an airport and you need both IATA and ICAO identifiers together.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:38:53.609Z","isFirstParty":false,"canonicalSlug":"opendata402-airport-lookup-0fc4a2ce"}