Get All Search Regions by Country

The Get All Search Regions by Country API returns the list of available cities along with their respective Regions for the Country RegionId passed in your request.
This API takes a CountryRegionId as input and returns a list of cities and their associated regions. The response includes City details such as CityId and CityName, along with Region details such as RegionId and RegionName mapped under each city
This API helps in filtering and displaying cities that belong to a specific country.
It is mainly used to populate region lists for hotel or region searches. It supports both XML and JSON request/response formats.

getAllSearchRegionsByCountry 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

Org

String Yes

Organization code assigned to your agency.

User

String Yes

Username provided by the system.

Password

String Yes

User password for authentication.

RegionId

integer Yes

Country region ID used to fetch its cities.

Response Parameters

Field Type Description

Success

Boolean

Indicates successful operation (true).

Message

String

Message confirming successful fetch.

Data

Array

List of city records.

Data.CityList.CityId

Integer

Unique city region ID.

Data.CityList. CityName

String

City name with country reference.

Data.CityList. CityWiseRegionList

Array

List of Region records.

Data.CityList. CityWiseRegionList. RegionId

Integer

Unique Region ID.

Data. CityList. CityWiseRegionList. RegionName

String

Region name with City reference.

Response Samples

Samples

Copy
<HotelSearch xmlns="http://www.reservwire.com/namespace/WebServices/Xml"> <Authority> <Org>TestOrg</Org> <User>TestUser</User> <Password>TestPassword</Password> </Authority> <RegionId>123</RegionId> </HotelSearch>
<StaticAPIResponseOfListOfCityList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Success>true</Success> <Message>Search Region fetched successfully</Message> <Data> <CityList> <CityId>19680</CityId> <CityName>Las Vegas (and vicinity), NV</CityName> <CityWiseRegionList> <CityWiseRegionList> <RegionId>21610</RegionId> <RegionName>Fremont Street/Downtown</RegionName> </CityWiseRegionList> <CityWiseRegionList> <RegionId>21611</RegionId> <RegionName>The Strip</RegionName> </CityWiseRegionList> <CityWiseRegionList> <RegionId>21612</RegionId> <RegionName>Off the Strip</RegionName> </CityWiseRegionList> <CityWiseRegionList> <RegionId>21613</RegionId> <RegionName>Others</RegionName> </CityWiseRegionList> </CityWiseRegionList> </CityList> </Data> </StaticAPIResponseOfListOfCityList>
Copy
{ "Authority": { "Org": "TestOrg", "User": "TestUser", "Password": "TestPassword" }, "RegionId": 123 }
{ "Success": true, "Message": "Search Region fetched successfully", "Data": [ { "CityId": 19680, "CityName": "Las Vegas (and vicinity), NV", "CityWiseRegionList": [ { "RegionId": 21610, "RegionName": "Fremont Street/Downtown” }, { "RegionId": 21611, "RegionName": "The Strip } ] }] }