airport

Airports within a radius of a coordinate, sorted by distance.

Airports within a radius of a coordinate, sorted by distance. Query: lat (-90..90), lon (-180..180), radius_km (1-2000, default 200), limit (1-100, default 20), type (optional: large_airport|medium_airport|small_airport|heliport|seaplane_base|balloonport|closed), country (optional 2-letter ISO 3166-1), scheduled_service (optional bool, true = commercial-service airports only). Returns { query, count, airports: [{ id, ident, name, iataCode, icaoCode, type, latitude, longitude, distanceKm, ... }] }.

get/api/airport/near

Request

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

Query parameters

latnumber required

Latitude in decimal degrees (-90 to 90).

lonnumber required

Longitude in decimal degrees (-180 to 180).

radius_kmnumber

Search radius in kilometers (1-2000). Default 200.

limitinteger

Max airports to return (1-100). Default 20.

type'large_airport' | 'medium_airport' | 'small_airport' | 'heliport' | 'seaplane_base' | 'balloonport' | 'closed'

Filter by airport type.

countrystring

Filter by ISO 3166-1 alpha-2 country code (e.g. US).

scheduled_serviceboolean

When true, only commercial-service airports.

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.