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.
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.
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.
Add major_only=1 to restrict results to large international airports — ideal for booking UIs where small airfields aren't relevant.
Every airport object in the response includes a distance_km field — the great-circle distance from your query point, rounded to two decimal places.
Default limit of 50 results per page. Use limit and offset to paginate through large radius results consistently.
Results include IATA, ICAO, name, type, coordinates, country code, and annual passenger counts — the same rich Airport object as the standard Airports API.
Add lat, lon & radius_km — get back sorted airports with distance.
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); // 48900000All parameters are added to GET /v1/airports
| Parameter | Required | Default | Description |
|---|---|---|---|
| lat | required | — | Latitude of the center point (WGS84, e.g. 50.03) |
| lon | required | — | Longitude of the center point (WGS84, e.g. 8.57) |
| radius_km | optional | 100 | Search radius in kilometres. Results outside this radius are excluded. |
| major_only | optional | 0 | Set to 1 to return only large international airports. |
| lang | optional | en | BCP 47 language code for translated name and country fields. |
| limit | optional | 50 | Number of results per page (max 100 on paid plans). |
| offset | optional | 0 | Offset for pagination. |
When a user enables location in your app, pre-fill the departure airport selector with the closest options — no typing required.
Answer "Which airport should I fly from?" automatically by returning the closest large airport to the user's GPS coordinates.
Detect which airport a device is near and load the relevant terminal map, gate data, or flight board automatically.
Everything you need to know about finding airports by coordinates.