Hotel Search Suggestions Endpoint
Searches hotel names and destinations by keyword.
- Endpoint:
/api/v1/tourmind/hotels/suggestions - Method:
GET
Headers
| Header | Value | Required | Description |
|---|---|---|---|
Partner-Access-Token | Base64 String | Yes | Your encrypted AES-256 time-sensitive token. |
Accept | application/json | Yes |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
keyword | String | Yes | Hotel 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
| Field | Type | Description |
|---|---|---|
data.destinations | Array | Destination suggestions related to the keyword. |
data.hotels | Array | Hotel suggestions related to the keyword. |
type | String | Suggestion type: destination or hotel. |