Get All Hotels List By Search Region
This API retrieves all hotels associated with a given region ID. The Get All Hotels List by Search Region API retrieves a list of hotels located within a specific region.
It takes the Search RegionId input and returns details like HotelId, HotelName, RegionId, Rating, Latitude, and Longitude.
This API is mainly used to display hotels for region-based searches and bookings.
The development for this API is completed in the Content API.
It supports both XML and JSON request and response formats.
GetAllHotelsListBySearchRegion 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 in 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 Search 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