hotel-content-api

Hotel API 1.7

Content API

There are 3,227,879 hotels available through the API.

GetHotelListByHotelIdsAPI:

Path: /api/HotelApi/GetHotelListByHotelIdsAPI

Method Type :Post

This method retrieves a list of hotels along with their respective room information.

Search behaviour:

– Multi-Hotel Search

If the request contains multiple Hotel IDs, the API will treat it as a multi-hotel search.

  • The response will include hotel and room information for all the provided Hotel IDs.
  • Session ID will not be generated for multi-hotel searches.

– Single-Hotel Search

If the request contains only one Hotel ID, the API will treat it as a single-hotel search.

In this case, the system will:

  • Generate a Session ID for the search
  • The Session ID will remain valid for a specified time period
  • All subsequent operations—such as booking—must use the same Session ID
  • This ensures consistency between availability, pricing, and booking confirmation

Table

 
PropertyDescription
hotelListA list of unique hotel IDs to search for availability. If multiple IDs are provided, the API treats it as a multi-hotel search. If only one ID is provided, it is treated as a single-hotel search. These unique hotel IDs are provided by Travelclub.
checkInDateThe check-in date for the stay, formatted as YYYY-MM-DD. Example: “2025-04-24”.
checkOutDateThe check-out date for the stay, formatted as YYYY-MM-DD.
Example: “2025-04-26”.
roomInformationA list of room-related details, including the number of adults, number of children, and their respective ages. Each entry represents one room.
→ adultCount
The number of adults staying in a room. Example: “1” 
→ childCountThe number of children staying in a room. Example: “0”
→childrenAgeA list containing the ages of the children. If childCount is 0, this list will be empty.
nationalityThe nationality of the guest, represented by a 2-letter country code. Example: “AE” (United Arab Emirates).
isPackageRatesA boolean value indicating whether package rates (special rates when booking flights + hotels together) should be considered. false means package rates are not included.
ratingsA comma-separated list of acceptable hotel star ratings. Example: “4,4.5,5” filters results to hotels with 4, 4.5, or 5 stars.
isLoyaltyA boolean indicating whether loyalty pricing or member-only discounts should be applied. false means loyalty pricing is not included.
isCheapestRoomOnly
A boolean indicating whether only the cheapest available room should be returned in the response. true means the API will return only the lowest-priced room option for each hotel.
profileOptional profile name that can override the default supplier-selection logic.

Request samples:

Request 1: Single hotel search with 1A and 1Room

{
  "hotelList": [
    869759
  ],
  "checkInDate": "2025-04-24",
  "checkOutDate": "2025-04-26",
  "roomInformation": [
    {
      "adultCount": "1",
      "childCount": "0",
      "childrenAge": []
    }
  ],
  "nationality": "AE",
  "isPackageRates": false,
  "ratings": "4,4.5,5",
  "isLoyalty": false,
  "isCheapestRoomOnly": true
}

Request 2: Multi hotel search request for 2 rooms(1A1C, 2A1C)


{
  "hotelList": [
    869759,
2071487, 1725027 ], "checkInDate": "2025-04-24", "checkOutDate": "2025-04-26", "roomInformation": [ { "adultCount": "1", "childCount": "1", "childrenAge": [ "1" ] }, { "adultCount": "2", "childCount": "0", "childrenAge": [] } ], "nationality": "AE", "isPackageRates": false, "ratings": "4,4.5,5", "isLoyalty": false, "isCheapestRoomOnly": false }

Request 3: Single hotel search request for 2 rooms(1A1C, 3A)


{
  "hotelList": [
    869759
  ],
  "checkInDate": "2025-04-24",
  "checkOutDate": "2025-04-26",
  "roomInformation": [
    {
      "adultCount": "1",
      "childCount": "1",
      "childrenAge": [
        "1"
      ]
    },
    {
      "adultCount": "3",
      "childCount": "0",
      "childrenAge": []
    }
  ],
  "nationality": "AE",
  "isPackageRates": false,
  "ratings": "4,4.5,5",
  "isLoyalty": false,
  "isCheapestRoomOnly": false
}

Sample list of Hotel IDs

1427948, 1650292, 1795485, 1438721, 1441466, 1236749, 2007376, 2008853, 1129770, 1307185, 1529298, 1540181, 1315640, 1542785, 1623980, 1817727, 1928786, 1933276, 1966824, 1980723, 1984084, 2036724, 1457726, 1554627, 1589377, 1723576, 1725027, 1782317, 2255672, 2510666

Response

Here is a description of each field in the provided JSON response:

Top-Level Fields
  1. sessionId
    • A unique identifier for the session or search request.
    • Returned only when a single hotelId is searched.
    • This sessionId must be passed in the Price & Availability and BookHotel API methods.
    • Example: “67a2069477622f333215162e”
  2. hotelList
    • A list of hotel objects containing detailed information about each property.
    • Example: [ { … } ].
Hotel-Level Fields
  1. starRating
    • The star rating of the hotel, indicating its quality or luxury level.
    • Example: 5.
  2. hotelName
    • The name of the hotel.
    • Example: “Avani Deira Dubai Hotel”.
  3. HotelId
    • A unique identifier assigned to the hotel by Travelclub.
    • Example: “39688272“.
  4. hotelAddress
    • An object containing the hotel’s address details.
    • Fields:
      • cityName: The city where the hotel is located. Example: “Dubai”.
      • postalCode: The postal code of the hotel’s location. Example:
        “234344”.
      • countryCode: The country code of the hotel’s location. Example: “AE”.
      • completeAddress: The full address of the hotel. Example: “Abu Baker Al Siddque & Sallahuddin Road, Dubai,234344, AE”.
  5. geoLocation:
    • An object containing the hotel’s geographical coordinates
    • Fields:
      • latitude: The latitude of the hotel’s location. Example: “25.27074”.
      • longitude: The longitude of the hotel’s location. Example: “55.33”.
  6. hotelImage
    • A URL pointing to an image of the hotel.
    • Example:” https://i.travelapi.com/hotels/4000000/3080000/3071600/3071573/a36e9ae3_b.jpg”.
  7. amenities
    • A list of amenities offered by the hotel
  8. roomInformation
    • An object containing details about the rooms available at the hotel
    • Fields:
      • hotelRooms: A list of room types available at the hotel.
        • Each room type contains:
          • roomName: The name of the room type. Example: “Room (AVANI)”.
          • requestToken: A token required for booking and checking room availability.
          • roomCombinations: A list of room combinations for this
            room type
            • Each room configuration contains:
              • listOfBed: A list of bed configurations available in the room
              • Fields:
                • description: Description of the bed configuration. Example: “2 Twin Beds”.
                • id: A unique identifier for the bed configuration. Example: 37341.
                • configurationType: The type of bed configuration. Example: “TwinBed”.
                • configurationSize: The size of the bed configuration. Example: “Twin”.
                • refundable: Indicates whether the room is refundable. Example: false.
                • listOfPromo: A list of promotions applicable to the room.
                • Fields:
                  • promoId: The promotion ID.
                  • title: The title of the promotion.
                  • description: A description of the promotion.
                  • type: The type of promotion.
                  • terms: Terms and conditions of the promotion.
                  • descriptionRequired: Indicates if a description is required.
                  • displayStrikeoutPrice: Indicates if a strikeout price should be displayed.
                • cancellationPolicy: A list of cancellation policies for the room.
                  • Fields:
                    • toDate: The end date of the cancellation policy. This is UTC.
                    • Example: “2026-01-11T19:59:00.000Z”
                    • fromDate: The start date of the cancellation policy. Example: “2026-01-11T19:59:00.000Z”.
                    • penaltyNights: The number of penalty nights for cancellation.
                    • cancellationFee: The cancellation fee.
                    • percent: The percentage of the cancellation fee. Example: “100”.
                    • currency: The currency of the cancellation fee. Example: “AED”
                    • noShow:””
                • listOfPolicy: A list of additional policies for the room.
                • roomImages: A list of images for the room.
                • listOfFacility: A list of facilities available in the room. Example: [“Free self parking”, “Free WiFi”].
                • smokingPreferences: Indicates smoking preferences for the room.
                • listOfSpecials: A list of special features for the room.
                • Adults: The number of adults allowed in the room. Example: “1”.
                • Children: The number of children allowed in the room. Example: “1”.
                • ChildAges: The ages of the children allowed in the room. Example: “1”.
                • name: The name of the room. Example: “Room (AVANI)”
                • allowsExtraMeals: Indicates if extra meals are allowed.
                • roomIndex: A unique identifier for the room configuration. Example:”rPCQr15xb4kh/ino8QjbU4uCegYQt+7xR+lWR
                  wy5mI91ZHa/+ajI/YOy4bbUghTN/FlkbwYKCtOROp+RvnREng==”.
                • packageRate: Indicates if the rate is part of a package. Example: false.
                • totalFare: The total fare for the room. Example:555.66.
                • vat: The VAT (Value Added Tax) applied to the room. Example: 26.46.
                • nightRates: A list of nightly rates for the room.
                  • type: The type of rate. Example: “base_fare”.
                  • value: The value of the rate. Example: 228.15.
                • extraFees: A list of additional fees for the room.
                  • type: The type of fee. Example: “property_fee”.
                  • value: The value of the fee. Example: 45.36.
                  • boardCode: The board code for the room.
                  • boardName: The board name for the room. Example: “Room Only”, “Half Board”.
                • aminitiesFilters
                  • A list of filters for amenities.
                • hotelPolicy
                  • A list of policies for the hotel.
                •  checkInTime
                  • The check-in time for the hotel. Example: “03:00 PM (UTC+04:00)”.
                •  checkOutTime
                  • The check-out time for the hotel. Example: “12:00 PM (UTC+04:00)”.