Sort hotels
https://api.worldota.net/api/b2b/v3/search/hotelsort/
The call ranks the hotels in the region. The ranking is made the internal ETG algorithm.
đź’ˇ
Recommendations
Use the call when you want to determine the order of the bookings to display in a third-party product.Request example
curl --user '<KEY_ID>:<API_KEY>' 'https://api.worldota.net/api/b2b/v3/search/hotelsort/' \
--header 'Content-Type: application/json' \
--data '{
"region_id": 536,
"sort_type": "b2b",
"hotels_limit": 5
}'
Request body
The sort order type. Is different for the B2B and B2C clients.
ℹ️
- The possible values:
b2b
.b2c
.
Response
Response example
{
"data": {
"hotels": [
"concorde_am_studio",
"berlin_marriott_hotel_2",
"novum_hotel_aldea_berlin_centrum",
"nh_berlin_mitte",
"best_western_premier_hotel_moa_berlin"
]
},
"debug": {
"request": {
"region_id": 536,
"sort_type": "b2b",
"hotels_limit": 5
},
"key_id": 7705,
"validation_error": null
},
"status": "ok",
"error": null
}