{"uid":"cap_sKbvolG35H6rY0r4owL4F","slug":"2s-io-8b478ada","name":"2s.io Airport Lookup","description":"Look up an airport by 3-letter IATA (e.g. SFO) or 4-letter ICAO (e.g. KSFO) code. Query: code (3-5 chars, alphanumeric). Returns { airport: { id, ident, type, name, latitude, longitude, elevationFt, continent, isoCountry, isoRegion, municipality, scheduledService, icaoCode, iataCode, gpsCode, localCode, wikipediaLink } } or 404 NOT_FOUND.","url":"https://2s.io/api/airport/lookup","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":["code"],"properties":{"code":{"type":"string","maxLength":5,"minLength":3,"description":"3-letter IATA or 4-letter ICAO airport code (e.g. SFO, KSFO)."}},"additionalProperties":false}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"code":"SFO"}}},"response":{"data":{"source":{"url":"https://ourairports.com","license":"CC0 1.0 Universal (public domain dedication)","provider":"OurAirports"},"airport":{"id":3878,"name":"San Francisco International Airport","type":"large_airport","ident":"KSFO","gpsCode":"KSFO","iataCode":"SFO","icaoCode":"KSFO","latitude":37.6198,"continent":"NA","isoRegion":"US-CA","localCode":"SFO","longitude":-122.3748,"isoCountry":"US","elevationFt":13,"municipality":"San Francisco","wikipediaLink":"https://en.wikipedia.org/wiki/San_Francisco_International_Airport","scheduledService":true}},"meta":{"cost":{"usd":0.001,"tier":0},"caller":"x402","version":null,"endpoint":"airport.lookup","settlement":{"txHash":"0x6e8310c3b3b961a554be8f1c362f6239ba62669e8a0a924e534331af9fef4d05","network":"eip155:8453","success":true}}}},"exampleRequest":{"code":"SFO"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ji8OiFq7y6kEMJBBhDzll","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Look up detailed airport information by IATA (3-letter) or ICAO (4-letter) code, returning location, elevation, country, and service metadata.","exampleAgentPrompt":"What airport is 'KSFO' — can you look it up and tell me its full name, city, country, coordinates, and whether it has scheduled commercial service?","exampleUseCases":null,"resultDescription":"Returns a JSON object with a nested `airport` containing: id, ident, type, name, latitude, longitude, elevationFt, continent, isoCountry, isoRegion, municipality, scheduledService flag, icaoCode, iataCode, gpsCode, localCode, and a Wikipedia link. Returns 404 NOT_FOUND if the code is unrecognized.","failureModes":["404 NOT_FOUND if the airport code does not exist in the database","Invalid code length (must be 3–5 alphanumeric characters) may result in validation error","Typos or incorrect codes return no match rather than a fuzzy suggestion","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you have a known IATA or ICAO airport code and need structured metadata about that airport — name, coordinates, country, region, elevation, and scheduled service status. Prefer this over general web search when you need machine-readable, structured airport data for downstream processing such as mapping, routing, or enriching flight records.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T03:43:27.108Z","isFirstParty":false}