v1
latestOpenAPI 3.0.02026-07-247251950.2 KBHotels
Ask a question about a hotel (Beta)
Overview
Beta Feature - Ask natural language questions about a specific hotel and get AI-powered answers based on the hotel's information.
When to Use
- Hotel Q&A - Answer customer questions about hotels
- Information lookup - Get specific details about amenities, services, or features
- Conversational interfaces - Build chat interfaces for hotel information
- Detailed inquiries - Ask about specific aspects like restaurants, parking, or amenities
What You Get
- AI-generated answers - Relevant responses to your questions
- Hotel-specific information - Answers based on the hotel's actual data
- Natural language responses - Human-readable answers
Example Questions
- "What amenities does this hotel have?"
- "Is there parking available?"
- "What does a meal at the restaurant look like?"
Key Features
- Web search option - Enable allowWebSearch to get additional information from the web
- Hotel context - Answers are specific to the hotel you're asking about
- Natural language - Ask questions conversationally
Quick Start
Provide the hotelId and your question. Optionally enable allowWebSearch for web-enhanced answers.
Note: This is a beta feature and may be subject to changes.
get/data/hotel/ask
Query parameters
hotelIdstring required
Unique ID of the hotel (liteAPI format)
querystring required
The question to ask about the hotel
allowWebSearchboolean
Whether to allow web search for additional information. Default is false.
Response
OK
Example response
{
"data": {
"answer": "Yes, this hotel allows pets. However, there may be applicable charges.",
"citations": [],
"latency_ms": 1083
}
}