# airAutocomplete Endpoint: GET /v2/air-autocomplete Version: v2 Security: Bearer ## Query parameters: - `query` (string, required) Query to get autocomplete response Example: "LHR" ## Response 200 fields (application/json): - `airports` (array, required) List of Airports matching the query - `airports.airportCode` (string, required) Unique code for the Airport Example: "LHR" - `airports.airportName` (string, required) Full Name of the Airport Example: "Heathrow Airport" - `airports.cityCode` (string, required) City Code for the location Example: "LON" - `airports.location` (object) Location details - `airports.location.countryCode` (string) Unique country code for a location Example: "TR" - `airports.location.countryName` (string) Full name of the country Example: "Turkey" - `airports.location.googlePlaceId` (string) Unique place ID for the location assigned by Google Example: "ChIJL_P_CXMEDTkRw0ZdG-0GVvw" - `airports.location.latlong` (object) Latitude and Longitude for a Location - `airports.location.latlong.latitude` (number, required) Latitude of the Location Example: 77.1025 - `airports.location.latlong.longitude` (number, required) Longitude of the Location Example: 28.7041 - `airports.location.name` (string, required) Full name of the Location Example: "Denver" - `airports.location.stateName` (string) Full name of the state Example: "Colorado" - `airports.groupInfo` (object) Grouping criteria for the airports in same group - `airports.groupInfo.groupId` (string, required) Id of the airport group Example: "NYC" - `airports.groupInfo.groupCityCode` (string) City code of the airport group. If airport group does not have a recognized city code, then this field will be empty. Example: "NYC" - `airports.groupInfo.mainAirportLocation` (object, required) Location of the main airport in the group ## Response 401 fields (application/json): - `debugIdentifier` (string) Link to debug the error internally. - `errorMessages` (array) - `errorMessages.errorCode` (string) Error code to identify the specific errors. - `errorMessages.message` (string) Message containing details of error. - `errorMessages.errorParameters` (array) Error message parameters. - `errorMessages.errorParameters.name` (string) Parameter name - `errorMessages.errorParameters.value` (string) Parameter value - `errorMessages.errorDetail` (string) More details about the error. ## Response 403 fields (application/json): - `debugIdentifier` (string) Link to debug the error internally. - `errorMessages` (array) - `errorMessages.errorCode` (string) Error code to identify the specific errors. - `errorMessages.message` (string) Message containing details of error. - `errorMessages.errorParameters` (array) Error message parameters. - `errorMessages.errorParameters.name` (string) Parameter name - `errorMessages.errorParameters.value` (string) Parameter value - `errorMessages.errorDetail` (string) More details about the error.