For this API request, you will need to hit the following endpoint.
In order to be granted access to the API, all of your requests must include an APC-Auth header that includes your API Key. An APC-Auth-Secret header can also be supplied for special cases where a referrer cannot be found, however, in most cases it will not be necessary.
|APC-Auth||Required||Your unique 10 digit alphanumeric Air-Port-Codes API key. This can be located in your account settings.|
In order to be granted access to the API, all of your requests must include a 'key' parameter that includes your API Key found in your Air-port-codes account. A 'secret' parameter can also be supplied for special cases where a referrer cannot be found, such as if you are testing locally, however, in most cases it will not be necessary.
Results will be ordered based on size of airport with larger airports first and smaller ones last.
|term||Required||The search term used for the lookup. The term searches against the airport name, city, state, country and iata (airport) code.|
|limit||Optional||The maximum number of results to return. The default maximum is 10.|
|size||Optional||The servicing area size of the airports to use. The default is 0 which means any servicing size of airport will be returned. Valid options are: 0-any, 1-local and up, 2-regional and up, 3-international and up, 5-airport groups only (eg. All New York City Airports). You can also pass in multiple sizes pipe separated (eg. 1|2|3).|
|type||Optional||The type of listings to be returned. Multiple options are allowed with pipe (|) separation. Valid options are: a-airports, h-heliport, s-seaplanes, r-railway, g-group. Only the first letter is necessary such as (a|g|r). A group simply refers to all the airports within a city. Such as NYC would contain all New York City airports. Default is (a|g).|