GPS CoordinatesRadius Searchdistance_km SortedMajor Airports FilterPagination

    Find airports near any GPS coordinate

    Pass lat, lon, and radius_km to the Airports endpoint — get back all airports in range, sorted by distance. Built for departure-airport pickers, smart assistants, and proximity-aware travel apps.

    GET https://aviation-api.logostream.dev/v1/airports?lat=50.03&lon=8.57&radius_km=50
    Airports in DB
    28,000+
    Sorted by Distance
    Default Radius
    100 km
    Build faster

    The NearBy API for Travel & Aviation Apps

    No geocoding step, no custom distance math. Add three parameters to the Airports endpoint and get a ready-to-use proximity list — with IATA codes, passenger counts, and exact distances.

    GPS-Native Radius Search

    Pass any WGS84 lat/lon coordinate and a radius in kilometres. The API pre-filters airports with a bounding box, then sorts by exact Haversine distance — so the nearest airport is always first.

    Major Airports Filter

    Add major_only=1 to restrict results to large international airports — ideal for booking UIs where small airfields aren't relevant.

    distance_km Field

    Every airport object in the response includes a distance_km field — the great-circle distance from your query point, rounded to two decimal places.

    Fast & Paginated

    Default limit of 50 results per page. Use limit and offset to paginate through large radius results consistently.

    Full Airport Data

    Results include IATA, ICAO, name, type, coordinates, country code, and annual passenger counts — the same rich Airport object as the standard Airports API.

    How it works

    Nearest airport in one line

    Add lat, lon & radius_km — get back sorted airports with distance.

    nearby-airports.js
    const res = await fetch(
      "https://aviation-api.logostream.dev/v1/airports" +
      "?lat=50.03&lon=8.57&radius_km=50&major_only=1",
      { headers: { "x-api-key": "YOUR_API_KEY" } }
    );
    const { data, total } = await res.json();
    const nearest = data[0];
    
    // Nearest airport
    console.log(nearest.name);         // "Frankfurt Airport"
    console.log(nearest.iata);         // "FRA"
    console.log(nearest.icao);         // "EDDF"
    console.log(nearest.distance_km);  // 7.82
    
    // Location
    console.log(nearest.latitude, nearest.longitude); // 50.026, 8.543
    console.log(nearest.country_code); // "DE"
    console.log(nearest.type);         // "large_airport"
    
    // Traffic
    console.log(nearest.passengers);   // 48900000

    Query Parameters

    All parameters are added to GET /v1/airports

    ParameterRequiredDefaultDescription
    latrequiredLatitude of the center point (WGS84, e.g. 50.03)
    lonrequiredLongitude of the center point (WGS84, e.g. 8.57)
    radius_kmoptional100Search radius in kilometres. Results outside this radius are excluded.
    major_onlyoptional0Set to 1 to return only large international airports.
    langoptionalenBCP 47 language code for translated name and country fields.
    limitoptional50Number of results per page (max 100 on paid plans).
    offsetoptional0Offset for pagination.

    Why use the NearBy feature?

    ✈️ Departure Picker

    When a user enables location in your app, pre-fill the departure airport selector with the closest options — no typing required.

    Sorted by distance_km
    major_only flag for booking UIs
    Works with device location API

    🤖 Smart Assistants

    Answer "Which airport should I fly from?" automatically by returning the closest large airport to the user's GPS coordinates.

    Single API call
    Rich airport metadata
    IATA & ICAO codes included

    🗺️ Maps & FIDS

    Detect which airport a device is near and load the relevant terminal map, gate data, or flight board automatically.

    Coordinates per airport
    Annual passenger counts
    All airport types covered

    NearBy API — Frequently Asked Questions

    Everything you need to know about finding airports by coordinates.

    Still have questions?

    Our team is happy to help you integrate the NearBy API.

    Get in touch