v1

latestSwagger 2.02026-07-14211635.2 KB
Geography APIs

Search airports by country / Search nearby airports / Search an airport

This webservice is providing you the ability to retrieve a list of airports matching your search criterias.<br />The 3 mains search criterias are<br />- by country code, this will list all airports for a given country.<br />- by latitude/longitude with a radius in km. You can actually combine those 2 criterias, and search for example the closest airport in the USA of Vancoucer, Canada.<br />- The last way to use the API is by searching directly with a IATA CODE in the location parameter, this will only return one result in the array of data results

get/airports

Query parameters

language'en' | 'fr' | 'de' | 'es' required

the language code of the language you want the content to be returned

locationstring

The location you want to search for. Either a latitude/longitude point or a letter airport IATA CODE ( ex. LHR ) if you want the detail for only one single airport.

radiusinteger

Radius in km for a lat/long search, will be ignore if a IATA is passed in location parameter code is passed

countrycodestring

Filter - The country ISO code 2 letters, provided by the GET /countries. If passed the results will be filtered to this country only, regardless if you passed a lat/long and a large radius

top_airportsboolean

Filter the results to only the top and large airports airports.

Response

Success

countinteger
messagestring
statusstring

Status of the response