ADVENTURE API
HOMESTAYS API

Hotel Search

post
Hotel Search Request & Response

https://traveloapi.com/yourapi/hotelapi/hotel_search
Request
Response
Path Parameters
gatkey
required
string
gatkey (provided by traveloapi)
City
required
string
This value represents source city name.
CityName
required
string
City name to search for hotel.
CheckInDate
required
string
It represents Check in date. This value should be entered as string not less than and more than 10 characters in date format 'yyyy-MM-dd'.
CheckOutDate
required
string
It represents the Check-out date and should be entered as string not less than and more than 10 characters in date format 'yyyy-MM-dd'. It cannot be greater than CheckInDate.
country
required
string
Two letter ISO country code.
rooms
required
string
It represents the information about the no. of rooms, room characteristic and information about the customer.
Room
required
string
It represents contains the information about the no. of rooms, room characteristic, and information of persons.
NumberOfAdults
required
string
It represents the value of total number of adults. Domain for this field contains values from 1-4.
Child
required
string
Total number of children. Domain for this field contains values from 1-4.
NumberOfChild
required
string
It represents the value of total number of children
childAge
required
string
It represents the age of the children. This is optional, but recommended if this parameter is passed, child's age is taken as 11 by default.
Count
required
string
It represents the value of number of rooms.
currency
required
string
It represents the currency code for different countries.
Nights
required
string
It represents the value of total number of nights.
engine
required
string
‚Äč
200: OK
Cake successfully retrieved.
{
"name": "Cake's name",
"recipe": "Cake's recipe name",
"cake": "Binary cake"
}
404: Not Found
Could not find a cake matching this query.
{
"message": "Invalid Request",
"status": "error",
}

Request Example :

{
"City": "Agra",
"CityName": "Agra , India",
"CheckInDate": "2018-10-29",
"CheckOutDate": "2018-10-30",
"Nights": "1",
"isFareRecheck": false,
"rooms": {
"Count": "1",
"Room": [
{
"NumberOfAdults": "2",
"Child": {
"NumberOfChild": "0"
}
}
]
}
}