Hotels

GET {{endpoint}}/hotel-content-api/1.0/hotels?fields=all&language=ENG&from=1&to=100&useSecondaryLanguage=false

This operation will bring up a list of hotels in a JSON or XML response.

Request Params

KeyDatatypeRequiredDescription
fieldsstringThe list of fields to be received in the response. If nothing is specified, the hotelCode is returned. See below for the complete list. "All" returns all fields available.
codesstringFilter for a specific hotel or list of hotels.
destinationCodestringFilter to limit the results for an specific destination.
countryCodestringFilter to limit the results for an specific country.
lastUpdateTimestringSpecifying this parameter will limit the results to those modified or added after the date specified. The allowed format is YYYY-MM-DD
languagestringLanguage Code in which you want the descriptions to be returned. If not specifically indicated, English is the default language.
fromnumberNumber of the initial record to receive, if nothing is indicated 1 is the default value.
tonumberNumber of the final record to receive, if nothing is indicated 100 is the default value.
useSecondaryLanguageboolean"True" if you want to receive the descriptions in English if the description is not available in the language requested.
"False" (default value) if you dont want to receive the description in English if the language requested is not available.

HEADERS

KeyDatatypeRequiredDescription
Api-keystringAPI Key used in the request
X-SignaturestringSHA256 hash in Hex format from your API Key, your secret plus current timestamps in seconds
AcceptstringDefines response format, posible values: application/xml, application/json
Accept-EncodingstringDefines type of encoding used on the data