Get All Hotels List By Country
This API retrieves all hotels associated with a given country’s region ID.
The Get All Hotels List by Country API retrieves a list of hotels available within a specific country.
It takes the CountryRegionId as input and returns details like HotelId, HotelName, RegionId, Rating, Latitude, and Longitude.
This API helps in displaying hotels based on the selected country for search and booking purposes.
It is mainly used to show all hotels grouped under a particular country.
It supports both XML and JSON request and response formats.
GetAllHotelsListByCountry Request Syntax
Request Header
HTTP Method : [POST]
Content-Type : [application/xml or application/json]
Accept : [application/xml or application/json]
Authentication : [Based on Org, User, and Password values inside the request body.]
Request Parameters
| Node/Field | Type | Required | Description |
|---|---|---|---|
|
Authority.Org |
String | Yes |
Organization name or code registered with the system. |
|
Authority.User |
String | Yes |
API username for authentication. |
|
Authority.Password |
String | Yes |
Password for the user account. |
|
RegionId |
integer | Yes |
The country’s region ID whose hotels should be fetched. Must be a valid country-level ID. |
Response Parameters
| Field | Type | Description |
|---|---|---|
|
Success |
Boolean |
Indicates if the request was processed successfully (true or false). |
|
Message |
String |
Descriptive message about the API result. |
|
Data |
Array |
Contains list of hotel details when the request is successful |
|
Data.Id |
Integer |
Unique identifier for the hotel. |
|
Data.HotelName |
String |
Name of the hotel. |
|
Data.RegionId |
Integer |
Region ID of the hotel (city/area). |
|
Data.Rating |
integer |
Star rating of the hotel. |
|
Data.Latitude |
decimal |
Latitude coordinate of the hotel’s location |
|
Data.Longitude |
decimal |
Longitude coordinate of the hotel’s location. |
Response Samples
Samples