Skip to content

/suggest

Get suggested search results for a given query.

Endpoint URL

https://partners.api.vio.com/v1/suggest

HTTP Method

GET

Headers

NameRequiredDescription
X-Partner-KeyYesPartner's profile key
Accept-EncodingNogzip, deflate, br

Query parameters

NameRequiredTypeDescriptionExampleDefault
queryNostringFree-text query. Maximum length is 256 characters."Amsterdam"
languageNostringLanguage code of the query. Used to translate suggestions. See supported languages"en""en"
typeNostringFilter suggestions by object type. This value is forwarded as an objectType filter. Examples: place, hotel, address."hotel"
limitNointegerMaximum number of suggestions to return. Non-positive values fall back to the default.3030

Dynamic Click Tracking

Click tracking is available using Dynamic Click Tracking

Examples

Suggest places

bash
curl --location --request GET 'https://partners.api.vio.com/v1/suggest?query=Amsterdam' \
--header 'X-Partner-Key: <profile key>'

Suggest hotels

bash
curl --location --request GET 'https://partners.api.vio.com/v1/suggest?query=Park plaza hotel' \
--header 'X-Partner-Key: <profile key>'

Response

The response payload has the following fields:

FieldRequiredTypeDescription
suggestionsYesSuggestion[]The list of suggestions.

Suggestion

FieldRequiredTypeDescription
objectIDYesstringObject ID.
objectIdYesstringObject ID with legacy casing, preserved for backward compatibility.
objectTypeYesstringObject type: place, hotel, nearby.
placeDisplayNameYesstringAddress display name.
placeTypeNameYesstringSuggested place type: property, country, city, airport, station, area.
valueYesstringFull name of the suggestion.
highlightValueYesstringMarkup text with occurrences highlighted.