Single airport request - variables

Name Type Description
name String The name of the airport.
full_location String The airport address.
city String The city the airport resides in.
state Object The state the airport resides in. An object with the name, abbreviation and type of the state. The type of region is also provided (eg. State, Province, Municipality, County, District, etc). The type can vary depending on the country.
country Object The country the airport resides in. An object with the name and iso of the country.
continent Object The continent the airport resides in. An object with the name and abbreviation of the continent.
iata String The iata airport code.
type String The type of airport. Options are airport, seaplanes, heliport, railway and group.
latitude String The latitude for the airport.
longitude String The longitude for the airport.
elevation String The elevation for the airport.
website String The website of the airport.

Example response

The response will be in typical json fashion. The following response is from a search request for the iata code "jfk".

{
    "airport":{
        "name":"John F. Kennedy International Airport",
        "city":"New York City",
        "iata":"JFK",
        "full_location":"New York City, NY, United States",
        "type":"airport",
        "latitude":"40.641311",
        "longitude":"-73.778139",
        "elevation":"10",
        "website":"http:\/\/www.panynj.gov\/airports\/jfk.html",
        "country":{
            "name":"United States",
            "iso":"US"
        },
        "state":{
            "name":"New York",
            "abbr":"NY",
            "type":"State"
        },
        "continent":{
            "abbr":"NA",
            "name":"North America"
        }
    },
    "iata":"JFK",
    "status":true,
    "statusCode":200
}

An error response will look like this.

{
    "status":false,
    "statusCode":404,
    "message":"No results found for search term.",
    "iata":"zzz"
}