---
title: "Get airports near a location"
method: GET
path: "/airports/nearby"
tags: ["airports"]
---

# Get airports near a location

`GET /airports/nearby`

## Request

- Base URL: `https://aeroapi.flightaware.com/aeroapi`
- URL: `https://aeroapi.flightaware.com/aeroapi/airports/nearby`
- Auth: API key in header `x-apikey`
- TypeScript: <https://skmtc.dev/flightaware/apis/aeroapi/docs/airports/nearby/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a list of airports located within a given distance from the
given location.

## Query parameters

- `latitude` number, required
- `longitude` number, required
- `radius` integer, required
- `only_iap` boolean
- `max_pages` integer
- `cursor` string

## Response `200`

OK

- object
  - `links` object, nullable, required: Object containing links to related resources.
    - `next` string, uri-reference, required: A link to the next set of records in a collection.
  - `num_pages` integer, required: Number of pages returned
  - `airports` object[], required
    - `airport_code` string, required: Default airport identifier, generally ICAO but may be IATA or LID if the airport lacks an ICAO code
    - `code_icao` string, nullable: ICAO identifier for the airport if known
    - `code_iata` string, nullable: IATA identifier for the airport if known
    - `code_lid` string, nullable: LID identifier for the airport if known
    - `alternate_ident` string, nullable, required: IATA or LID identifier for the airport. (Deprecated, use code_iata for the IATA identifier or code_lid for the LID identifier instead.)
    - `name` string, required: Common name for the airport
    - `type` 'Airport' | 'Heliport' | 'Seaplane Base' | 'Ultralight' | 'Stolport' | 'Gliderport' | 'Balloonport' | 'null', nullable: Type of airport
    - `elevation` number, required: Height above Mean Sea Level (MSL)
    - `city` string, required: Closest city to the airport
    - `state` string, required: State/province where the airport resides if applicable. For US states this will be their 2-letter code; for provinces or other entities, it will be the full name.
    - `longitude` number, required: Airport's longitude, generally the center point of the airport
    - `latitude` number, required: Airport's latitude, generally the center point of the airport
    - `timezone` string, required: Applicable timezone for the airport, in the TZ database format
    - `country_code` string, required: 2-letter code of country where the airport resides (ISO 3166-1 alpha-2)
    - `wiki_url` string, uri, nullable, required: Link to the wikipedia page for the airport
    - `airport_flights_url` string, uri-reference, required: The URL to flights for this airport
    - `distance` integer, required: Distance of airport from the specified location (statute miles)
    - `heading` integer, required: Direction from specified location to airport (degrees)
    - `direction` 'N' | 'E' | 'S' | 'W' | 'NE' | 'SE' | 'SW' | 'NW', required: Cardinal direction from specified location to airport

## Other responses

- `400`: Incorrect parameter(s). Expected: numerical latitude and longitude, radius > 0.

---

[API](https://skmtc.dev/flightaware/apis/aeroapi.md) - [All operations](https://skmtc.dev/flightaware/apis/aeroapi/llms.txt) - [OpenAPI document](https://skmtc.dev/flightaware/apis/aeroapi/revisions/3023e7a0c54c?raw)
