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
| Key | Datatype | Required | Description | 
|---|---|---|---|
| fields | string | The 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. | |
| codes | string | Filter for a specific hotel or list of hotels. | |
| destinationCode | string | Filter to limit the results for an specific destination. | |
| countryCode | string | Filter to limit the results for an specific country. | |
| lastUpdateTime | string | Specifying this parameter will limit the results to those modified or added after the date specified. The allowed format is YYYY-MM-DD | |
| language | string | Language Code in which you want the descriptions to be returned. If not specifically indicated, English is the default language. | |
| from | number | Number of the initial record to receive, if nothing is indicated 1 is the default value. | |
| to | number | Number of the final record to receive, if nothing is indicated 100 is the default value. | |
| useSecondaryLanguage | boolean | "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
| Key | Datatype | Required | Description | 
|---|---|---|---|
| Api-key | string | API Key used in the request | |
| X-Signature | string | SHA256 hash in Hex format from your API Key, your secret plus current timestamps in seconds | |
| Accept | string | Defines response format, posible values: application/xml, application/json | |
| Accept-Encoding | string | Defines type of encoding used on the data |