---
title: "airAutocomplete"
method: GET
path: "/v2/air-autocomplete"
tags: ["Autocomplete"]
---

# airAutocomplete

`GET /v2/air-autocomplete`

## Query parameters

- `query` string, required

## Response `200`

OK

- AirAutocompleteResponse
  - `airports` Airport[], required — List of Airports matching the query
    - `airportCode` string, required — Unique code for the Airport
    - `airportName` string, required — Full Name of the Airport
    - `cityCode` string, required — City Code for the location
    - `location` Location — Location details
      - `countryCode` string — Unique country code for a location
      - `countryName` string — Full name of the country
      - `googlePlaceId` string — Unique place ID for the location assigned by Google
      - `latlong` Latlng — Latitude and Longitude for a Location
        - `latitude` number, double, required — Latitude of the Location
        - `longitude` number, double, required — Longitude of the Location
      - `name` string, required — Full name of the Location
      - `stateName` string — Full name of the state
    - `groupInfo` AirportGroupInfo — Grouping criteria for the airports in same group
      - `groupId` string, required — Id of the airport group
      - `groupCityCode` string — City code of the airport group. If airport group does not have a recognized city code, then this field will be empty.
      - `mainAirportLocation` Location, required — Location details
        - `countryCode` string — Unique country code for a location
        - `countryName` string — Full name of the country
        - `googlePlaceId` string — Unique place ID for the location assigned by Google
        - `latlong` Latlng — Latitude and Longitude for a Location
          - `latitude` number, double, required — Latitude of the Location
          - `longitude` number, double, required — Longitude of the Location
        - `name` string, required — Full name of the Location
        - `stateName` string — Full name of the state

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/spotnana/apis/air-api.md) · [All operations](https://skmtc.net/spotnana/apis/air-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spotnana/air-api/versions/3009937ca024/schema)
