Skip to main content

Hotel Search Suggestions Endpoint

Searches hotel names and destinations by keyword.

  • Endpoint: /api/v1/tourmind/hotels/suggestions
  • Method: GET

Headers

HeaderValueRequiredDescription
Partner-Access-TokenBase64 StringYesYour encrypted AES-256 time-sensitive token.
Acceptapplication/jsonYes

Query Parameters

ParameterTypeRequiredDescription
keywordStringYesHotel name or destination keyword, e.g. Novotel or Bangkok.

Sample Response

{
"result": 1,
"message": "success",
"data": {
"destinations": [
{
"city": "Bangkok (and vicinity)",
"country": "Thailand",
"country_code": "TH",
"type": "destination"
}
],
"hotels": [
{
"id": "92097",
"name": "Novotel Bangkok Future Park Rangsit",
"hotel_code": 18949601,
"slug": "novotel-bangkok-future-park-rangsit-18949601",
"city": "Bangkok (and vicinity)",
"country_code": "TH",
"country": "Thailand",
"star_rating": null,
"image": null,
"type": "hotel"
}
]
}
}

Response Fields

FieldTypeDescription
data.destinationsArrayDestination suggestions related to the keyword.
data.hotelsArrayHotel suggestions related to the keyword.
typeStringSuggestion type: destination or hotel.