Hotelsort

https://api.worldota.net/api/b2b/v3/search/hotelsort/

Sort order of the hotels in the region based on artificial intelligence.

This method responds with the list of the hotels sorted by popularity of ETG clients (different for B2B and B2C clients).

It could be used to determine the order in which hotel cards are displayed on a third party product.

Request example

curl --location 'https://api.worldota.net/api/b2b/v3/search/hotelsort/' \
--header 'Content-Type: application/json' \
--data '{
    "region_id": 536,
    "sort_type": "b2b",
    "hotels_limit": 50
}'

Request body

hotels_limit Int optional
The maximum number of available hotels in the search response.
region_id Int required
Region identifier.
sort_type String optional

Type of the sort order (differs for b2b and b2c clients).

ℹ️
  • The possible values:
    • b2b.
    • b2c.

Response

hotels [String] required

Hotels of different types that meet request parameters.

ℹ️
  • The maximum items number is 5.

Response example

{
  "data": {
    "hotels": [
      "best_western_hotel_am_spittelmarkt",
      "hotel_amo_by_amano",
      "city_hotel_berlin_east",
      "hotel_alexander_plaza",
      "akzent_hotel_kolumbus"
    ]
  },
  "debug": {
    "request": {
      "region_id": 536,
      "hotels_limit": 5,
      "sort_type": "b2b"
    },
    "key_id": 1234,
    "validation_error": null
  },
  "status": "ok",
  "error": null
}