Skip to main content
GET
/
data
/
hotel
/
ask
Ask a question about a hotel (Beta)
curl --request GET \
  --url https://api.liteapi.travel/v3.0/data/hotel/ask \
  --header 'X-API-Key: <api-key>'
{
  "data": {
    "answer": "Yes, this hotel allows pets. However, there may be applicable charges.",
    "citations": [],
    "latency_ms": 1083,
    "search_used": false
  }
}

Authorizations

X-API-Key
string
header
required

Query Parameters

hotelId
string
required

Unique ID of the hotel (liteAPI format)

query
string
required

The question to ask about the hotel

Whether to allow web search for additional information. Default is false.

Response

OK

data
object