Flight Search
Last updated
Last updated
Welcome to the developer documentation of the Traveloapi Flight API Reference. This API let you build full featured websites and applications with all the power of flight search, without having to implement the complex stuff that we've already done. Traveloapi Flight API Reference allows users to search for Flight. API consumer can use this service to integrate it with their application.
Get Access to API - To access the services of API you must have key credentials provided by Traveloapi.
POST
https://traveloapi.com/yourapi/flightmain/flight_search
Name | Type | Description |
---|---|---|
gatkey
string
gatkey (provided by traveloapi)Pass gatkey with url
SearchDetails
string
This parameter gets and sets the entire flight search – specified properties entered by user. These search parameters should be submiited as query string with URL
Origin
string
This value represents source city name. Three alphabetic IATA code should be entered by user to get valid source city. This field should not contain More than and less than 3 characters.
Destination
string
It represents destination city/airport name .It cannot be same as source value. Three alphabetic IATA code should be entered by user to get valid destination city. This field should not contain More than and less than 3 characters.
BeginDate
string
It represents journey date. This value should be entered as string not less than and More than 10 characters in date format ‘yyyy-mm-dd’.(Date and time are taken in miliseconds)
TripType
string
This is an Enumeration type parameter which has a specified list of values OneWay=0 and RoundTrip=1
Adults
string
Domain for this field contains values from 1-9. At least one adult must be selected.
Childs
string
Domain range for this field is 0-9.
Infants
string
This field’s domain has values from 0-2. Number of infants cannot be more than number of adults as per single booking.
Cabin
string
This field has enumeration values (Economy =0,Business=2)
EngineID
string
This parameter has been defined as Enumeration type which has specified list of constant values. Each int value has been assigned to a different airline Indigo = 0, Spicjet = 1, GoAir = 5, TravelPort = 7, AirAsia=10, AirCosta = 6, Trujet=11