airport

Look up an airport by 3-letter IATA (e.g.

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.

get/api/airport/lookup

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/airport/lookup
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

codestring required

3-letter IATA or 4-letter ICAO airport code (e.g. SFO, KSFO).

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.