Our airport codes API can be accessed from nearly any programming language but we find it is best accessed through a simple AJAX request on the frontend or a Curl script on the backend. Our instructions should help you understand how to connect to our API and we also provide a free Postman collection and Swagger implementation to make things easy for you.
Please ensure that you are using your API Key which can be found in your Air-port-codes account. If you are accessing the api from an app that won't provide a referrer header then you will need to use an API Secret Key to connect. This key can also be found in your account.
Do you use Postman? Import our Postman collection to make it easy to try all our APIs. Just add your the following environment variables from your Air-port-codes account (APC-Auth, APC-Auth-Secret).
You can also use our Interactive REST tool to help you test out the airport codes API and refine your search queries the way you desire.
|The easiest way to build an airport autocomplete field||/api/v1/autocomplete||POST||read||use it||try it|
|Finds a list of airports matching search term||/api/v1/multi||POST||read||use it||try it|
|Finds a single airport matching an airport IATA code||/api/v1/single||POST||read||use it||try it|
|Retrieves all countries and their ISO||/api/v1/countries||POST||read||use it||try it|
|Retrieves all districts (states/provinces) of any country||/api/v1/states||POST||read||use it||try it|