Here are some tips to make it easier to understand and read facilities from content-api.
It is very important to read the facilities as they contain relevant information about the room that the client will appreciate having before booking.
For each facility you get from the Content API/types/facilities will contain a facilityCode, a facilityGroupCode and a facilitytypology.
The description of each of these values can be consulted in the description of the Content API/types/facilities, Content API/types/facilitygroups and Content API/types/facilitytypologies operations.
For some of the facilities available, you might find there’s an extra tag “number”. The value provided indicates the numeric value of the facility itself.
You can get the information relative to the facilities on the Content API/types/facilities operation:
https://api.hotelbeds.com/hotel-content-api/1.0/types/facilities?fields=all&language=ENG&from=1&to=1000&useSecondaryLanguage=false
In the response you’ll find the code as shown below. Examples:
<facility code="1" facilityGroupCode="61" facilityTypologyCode="20">
<description>Single bed 90-130 width</description>
</facility>
...
<facility code="1" facilityGroupCode="85" facilityTypologyCode="3">
<description>Gay-friendly</description>
</facility>
...
<facility code="10" facilityGroupCode="60" facilityTypologyCode="8">
<description>Bathroom</description>
</facility>
...
<facility code="10" facilityGroupCode="70" facilityTypologyCode="23">
<description>Air conditioning in public areas</description>
</facility>
...
<facility code="44" facilityGroupCode="91" facilityTypologyCode="15">
<description>Switzerland- Protection plan for hotel businesses against COVID-19</description>
</facility>
...
<facility code="302" facilityGroupCode="60" facilityTypologyCode="33">
<description>Children share the bed with parents</description>
</facility>
...
<facility code="563" facilityGroupCode="85" facilityTypologyCode="21">
<description>Children get free accommodation, meals payable on the spot</description>
</facility>
...
<facility code="565" facilityGroupCode="85" facilityTypologyCode="3">
<description>Credit card is compulsory as a deposit, no deposit in cash is accepted</description>
</facility>
You can get the information relative to the facilitiygroups on the Content API/types/facilitygroups operation:
In the response you’ll find the code as shown below
Examples:
<group code="60">
<description>Room facilities (Standard room)</description>
</group>
...
<group code="61">
<description>Room Distribution</description>
</group>
...
<group code="62">
<description>Room distribution Alternative</description>
</group>
...
<group code="70">
<description>Facilities</description>
</group>
...
<group code="85">
<description>Things to keep in mind</description>
</group>
...
<group code="91">
<description>Healthy & Safety (COVID)</description>
</group>
Each facility contains a facilityTypologyCode. This typologycode describes the logic for the flags within a facility (numberflag, logicflag, feeflag, indYesOrNoFlag, amountflag…) which will apply or not for that specific facility.
You can get the information relative to the facilityTypologyCodes on the Content API/types/facilitytypologies operation:
The definition of each of the flags used in the facilities is described in our developer portal:
Find below a detailed explanation for the main ones:
This room facility indicates that there is no Balcony in that room.
<roomFacility facilityCode="230" facilityGroupCode="60" indLogic="false" indFee="false" voucher="false">
<description>Balcony</description>
</roomFacility>
This room facility indicates that there is Internet Access in that room and it’s free
<roomFacility facilityCode="100" facilityGroupCode="60" indLogic="true" indFee="false" voucher="false">
<description>Internet access</description>
</roomFacility>
This hotel facility indicates that Car park is available at the hotel and it has a cost of 360 SEK if the guest wants to use it.
<facility facilityCode="320" facilityGroupCode="70" order="1" indFee="true" indYesOrNo="true" amount="360" currency="SEK" applicationType="UN" voucher="true">
<description>Car park</description>
</facility>
This hotel facility indicates that the Room Size for the room is 16 sqm
<roomFacility facilityCode="295" facilityGroupCode="60" number="16" indYesOrNo="true" voucher="false">
<description>Room size (sqm)</description>
</roomFacility>
This hotel facility indicates that the hotel Year of construction is 1990
<facility facilityCode="20" facilityGroupCode="10" order="1" number="1990" voucher="false">
<description>Year of construction</description>
</facility>
While the above explanation and examples show you how to read the facilities, there’s a minor difference on how you’ll find the facilities when running HotelsRQ
or HotelDetailsRQ
https://api.hotelbeds.com/hotel-api/1.0/hotels/64239?language=ENG
When reading the facilities on these two operations, you won’t get the facilitytypology value, instead the system will automatically bring the info associated with the facilitytypology.
Instead of getting “facilityTypologyCode="26", you’ll get indLogic="true" indFee="false"
Example
<roomFacility facilityCode="100" facilityGroupCode="60" indLogic="true" indFee="false" voucher="false">
<description>Internet access</description>
</roomFacility>