hotel-api-GetHotelContent

Hotel API 1.7

GetHotelContent

 

Retrieves basic hotel master information for a specified range of hotel records. The response includes hotel identifiers, names, address, postal code, geographical coordinates, contact details, star rating, city, and country.

Path: /api/HotelApi/GetHotelContent

Method Type :Post

Method Type :application/json

 

Request samples:

PropertyDescription

fromCount

Required

Starting record number from which hotel content retrieval begins.

toCount

Required

Ending record number up to which hotel content is retrieved.

Request:

{
"fromCount": 1,
"toCount": 100
}

Response fields:

PropertyDescription

hotelId

Integer

Unique identifier assigned to the hotel in the API database.

hotelName

String

Name of the hotel or property.
postalCode
String
Postal or ZIP code of the hotel’s location.
latitude
String
Geographical latitude coordinate of the hotel.
longitude
String
Geographical longitude coordinate of the hotel.
phone
String
Hotel contact telephone number, including country or area code where available.
email
String or null
Hotel contact email address; null if unavailable.
starRating
String
Hotel star rating or classification.
address
String
Street address or available physical address of the hotel.
city
String
City in which the hotel is located.

country

String

Country in which the hotel is located.

Response fields:

[
{
"hotelId": 10007,
"hotelName": "Lemon Tree Hotel Viman Nagar Pune",
"postalCode": "411014",
"latitude": "18.56215",
"longitude": "73.90796",
"phone": "91 2067432000",
"email": "hi.vn@lemontreehotels.com",
"starRating": "4",
"address": "100 -101, Viman Nagar",
"city": "Pune",
"country": "India"
},
{
"hotelId": 10008,
"hotelName": "Modern Smarthouse Dual Fuel Range",
"postalCode": "97601",
"latitude": "42.24164",
"longitude": "-121.7913",
"phone": "1541 3313421",
"email": null,
"starRating": "3",
"address": "2245 Biehn Street, Klamath Falls",
"city": "Klamath Falls",
"country": "United States"
}
] 

 

Important notes:

  1. The fromCount and toCount parameters define the range of hotel records to retrieve.
  2. The response is an array of hotel objects. Each hotel is identified by its unique hotelId.
  3. Contact information may be null or unavailable. Latitude, longitude, and starRating are returned as strings in the sample response.
  4. This API returns basic hotel content information and does not include room availability, rates, or booking details.