Search Destinations and Access Geographic Property Data
The Destinations APIs provide you with access to geographic definitions and property mappings for over 600,000 regions and airports. Returns the geographic definition and property mappings of regions matching the specified parameters as a paginated response.
Parameters
Name
Description
Accept
string
( header )
*required application/json
Accept - Encoding
string
( header )
*required gzip
Authorization
string
( header )
*required Your API Key
*required Your PID Key
Customer-Ip
string
( header )
*required 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 )
*required "getDestinations" as a parameter
country_code
string
( query )
*required ISO 3166 (2 digit) country code
REQUEST
API Endpoint: https://www.abengines.com/api/v1/travel-api/transfer-booking/
header: array( 'Content-Type:application/json', 'Accept-encoding: gzip', 'PID:'ADD-PID-KEY', 'x-api-key:'ADD-API-YOUR-KEY' ); POST: { "action": "getDestinations", "country_code": "IN" }
Response
The API returns an HTTP response, which generally includes the result of the request invocation
{ "destinations": [ { "country_code": "IN", "country_name": "India", "destination_name": "Kullu", "destination_code": "1LU" }, { "country_code": "IN", "country_name": "India", "destination_name": "Panna", "destination_code": "1NA" }, { "country_code": "IN", "country_name": "India", "destination_name": "Satna", "destination_code": "1NS" } ] }