Autocomplete API for Worldwide Cities and Airports

Aviation Edge Autocomplete API returns all relevant cities and airports based on the letters requested in the input.

Autocomplete API for Cities and Airports

Aviation Edge Autocomplete API returns all relevant cities and airports based on the letters requested in the input. The items are returned from our complete, worldwide city and airport databases via powerful JSON REST API.

autocomplete api.jpeg

City autocomplete APIs and airport autocomplete APIs are two of the most efficient APIs working in the background of especially travel websites and apps. The Autocomplete API is used to allow the users to select an item off a list that consists of items with the letter the user types in the search bar.

For example, the user types in "Mad" to select the origin airport, and the Autocomplete API allows the API client to return a list of cities and airports with the letters "Mad" in them. When implemented, these items appear right beneath the search where the user may choose the "Madrid" option.


Tip: Mix and Match!

  • You can implement our Future Schedules API in addition to the Autocomplete API. This API provides complete, flight-by-flight airport schedule data for a given date in the future and based on an airport.

  • The Autocomplete API will allow your users to easily choose the departure and arrival airports.

  • Meanwhile, the Future Schedules API will return scheduled flights for that route and the date.

You can access our complete list of APIs with a single API key without having to subscribe to and pay for multiple plans.

1_DTD-KeZ_T4QKIOdBhxkVdQ.jpeg


Airport Autocomplete API Features

The Airport Autocomplete API comes with a Service Level Agreement which offers guarantees 99.5% uptime, support, and more. The average response time is around 0.2 ms for the Autocomplete API. The API was built to return the relevant cities and airports immediately as your users type letters in the search bar. When implemented correctly, the options can update right away with each letter.

The standard Aviation Edge Cities and Airports Autocomplete API output includes items that have the requested letters anywhere IN them, and not only at the beginning. This makes sure your users will get all possible options. For example, when the letters "bar" are requested, both Barcelona as a city, Barcelona Airport Airport, and Madrid-Barajas Airport appear in the list along with other items.


Developer Information and Access to the Autocomplete API

Below is the example standard input for the Autocomplete API:


GET https://aviation-edge.com/v2/public/autocomplete?key=[API_KEY]&city=mad

[
{
"airportsByCities":
[
{
"GMT":"1",
"codeIataAirport":"MAD",
"codeIataCity":"MAD",
"codeIcaoAirport":"LEMD",
"codeIso2Country":"ES",
"latitudeAirport":40.46515,
"longitudeAirport":-3.570209,
"nameAirport":"Barajas",
"nameCountry":"Spain",
"phone":"902-404-704",
"timezone":"Europe/Madrid"
},
{
"GMT":"1",
"codeIataAirport":"TOJ",
"codeIataCity":"MAD",
"codeIcaoAirport":"LETO",
"codeIso2Country":"ES",
"latitudeAirport":40.455555,
"longitudeAirport":-3.546667,
"nameAirport":"Torrejon AFB",
"nameCountry":"Spain",
"phone":"","timezone":"Europe/Madrid"
},
{
"GMT":"-8",
"codeIataCity":"MDJ",
"codeIso2Country":"US",
"latitudeCity":44.812305,
"longitudeCity":-121.281,
"nameCity":"Madras",
"timezone":"America/Los_Angeles"
},
…

The City and Airport Autocomplete API is a JSON REST API service that you can use to develop with all widely-used SDKs for both commercial and personal use. Contact us for a reselling opportunity. Visit our official documentation on our Website or view the official GitHub repo for the API below:

Access the Autocomplete API Today

The City and Airport Autocomplete API is accessible with an API key. Subscribe to one of the Premium API subscription plans we offer below and get your API key to your email immediately. Access the data for as long as your subscription is active. Start and stop your subscription anytime without commitments. The API key grants access to our complete list of APIs along with the Autocomplete API. Get started with greatly reduced rates.

Got any questions? Contact us and we will get back to you!

1_LBJ-azam3XUCCqR6K8gyAQ.png


Follow us everywhere!