Airport (IATA) Search

IATA codes are an integral part of the travel industry, and essential for the identification of an airline, its destinations and its traffic documents. They are also fundamental to the smooth running of hundreds of electronic applications which have been built around these coding systems for passenger and cargo traffic purposes. This GET call does not have any specific parameters. It enables the user to get a list of all airlines (both LC - legacy carrier and LCC - low cost carrier) together with their codes.

Parameters

Name

Description

Accept

string

( header )

Must be application/json

Accept - Encoding

string

( header )

Must be gzip

Authorization

string

( header )

Must be Your PID

Must be Your API Key

Customer-Ip

string

( header )

Must be IP address of the customer, as captured by your integration. Send IPV4 addresses only.

Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.

Also used for fraud recovery and other important analytics.

action

string

( query )

Must be "flightLocations" as parameter

Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.

term

string

( query )

Must be Relevent regions.

Specific information about the region e.g. whether it covers surrounding areas for a city. Only present when relevant for a region.

limit

string

( query )

Limit the number of records returned.

REQUEST

API Endpoint: https://www.abengines.com/api/v1/travel-api/flights/

header: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-PID-KEY',
'x-api-key:'ADD-API-YOUR-KEY'
);

POST
{
  "action": "flightLocations",
  "limit":"5",
  "locale":"en",
  "term":"delhi"
}

					 

Response

The API returns an HTTP response, which generally includes the result of the request invocation

 {
    "airports": [
        {
            "city_fullname": "Delhi,India",
            "code": "DEL",
            "CountryCode": "IN ",
            "CityCode": "DEL",
            "CityName": "Delhi",
            "search_type": 2,
            "PopularSearchCount": 0,
            "name": "Indira Gandhi Airport",
            "CountryName": "India"
        }
    ]
}