Get All Hotels List By Country
The Get All Hotels List by Country API retrieves a list of hotels available within a specific country, based on the CountryRegionId provided in the request.
It returns information for each hotel, including HotelId, HotelName, RegionId, Rating, Latitude, and Longitude.
This API is primarily used to display all hotels grouped under a particular country, helping users search, browse, or initiate bookings based on their selected destination.
It supports both XML and JSON request and response formats.
GetAllHotelsListByCountry Request Syntax
Endpoint URL
https://{{URL}} /webapi/staticData/getAllHotelsListByCountry
Request Header
HTTP Method : [POST]
Content-Type : [application/xml or application/json]
Accept : [application/xml or application/json]
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
|
Org |
String | Yes |
The organisation short code identifying the agent responsible for the request (Agency ID). |
|
User |
String | Yes |
The user’s logon, unique within the given organisation (User Name). |
|
Password |
String | Yes |
The given user’s password. |
|
RegionId |
integer | Yes |
The country’s region ID whose hotels should be fetched. |
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. |
|
Id |
Integer |
Unique identifier for the hotel. |
|
HotelName |
String |
Name of the hotel. |
|
RegionId |
Integer |
Region ID of the hotel (city/area). |
|
Rating |
integer |
Star rating of the hotel. |
|
Latitude |
decimal |
Latitude coordinate of the hotel’s location. |
|
Longitude |
decimal |
Longitude coordinate of the hotel’s location. |
Response Samples
Samples