Autocomplete
https://api.worldota.net/api/b2b/v3/search/multicomplete
Autocomplete allows you to find a region or a hotel by just part of its name.
Returns no more than 5 objects for 1 category.
Request example
curl --location 'https://api.worldota.net/api/b2b/v3/search/multicomplete/' \
--header 'Content-Type: application/json' \
--data '{
"query": "Ber",
"language": "en"
}'
Request body
The language.
ℹ️
The possible values:
ar
— Arabic.bg
— Bulgarian.cs
— Czech.de
— German.el
— Greek.en
— English.es
— Spanish.fr
— French.he
— Hebrew.hu
— Hungarian.it
— Italian.ja
— Japanese.kk
— Kazakh.ko
— Korean.nl
— Dutch.pl
— Polish.pt
— Portuguese.pt_PT
— Portuguese (Portugal).ro
— Romanian.ru
— Russian.sq
— Albanian.sr
— Serbian.th
— Thai.tr
— Turkish.uk
— Ukrainian.vi
— Vietnamese.zh_CN
— Simplified Chinese.
Response
The list of hotels and their rates.
The most preferred hotel ID.
ℹ️
- Either this field or the
id
field is required. - The maximum length is
7
characters.
Regions that are meet the request parameters and are available for search.
ℹ️
- The maximum items number is
5
.
The region country code in the ISO 3166-1 alpha-2 format.
Response example
{
"data": {
"hotels": [
{
"id": "bergs_hotel_2",
"hid": 9974510,
"name": "Bergs Spa and Сonference Hotel",
"region_id": 5580
},
{
"id": "gostinitsa_berlin",
"hid": 8066022,
"name": "Berlin Hotel",
"region_id": 1798
},
{
"id": "rp_bergamo_hotel",
"hid": 10575679,
"name": "Bergamo Eco Hotel",
"region_id": 6057804
},
{
"id": "hotel_bereg_svyatoy_sofii",
"hid": 11329575,
"name": "Hotel Bereg Svyatoy Sofii",
"region_id": 965821599
},
{
"id": "guest_house_na_berezovoy_",
"hid": 6509094,
"name": "Na Berezovoi Bashnya Guest House",
"region_id": 965858884
}
],
"regions": [
{
"id": 536,
"name": "Berlin",
"type": "City",
"country_code": "DE"
},
{
"id": 965888340,
"name": "Saint-Philbert-de-Grand-Lieu",
"type": "City",
"country_code": "FR"
},
{
"id": 6055144,
"name": "Berrias-et-Casteljau",
"type": "City",
"country_code": "FR"
},
{
"id": 6340759,
"name": "Montalbert",
"type": "City",
"country_code": "FR"
},
{
"id": 966047519,
"name": "Saint-Philbert-sur-Orne, Normandy",
"type": "City",
"country_code": "FR"
}
]
},
"debug": {
"request": {
"query": "Ber",
"language": "en"
},
"key_id": 7705,
"validation_error": null
},
"status": "ok",
"error": null
}