---
title: "Ask a question about a hotel (Beta)"
method: GET
path: "/data/hotel/ask"
tags: ["Hotels"]
---

# Ask a question about a hotel (Beta)

`GET /data/hotel/ask`

## 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.

## Query parameters

- `hotelId` string, required
- `query` string, required
- `allowWebSearch` boolean

## Response `200`

OK

- object
  - `data` object
    - `answer` string, required — The answer to the question
    - `citations` string[] — List of citations or sources used to generate the answer
    - `latency_ms` integer — Response latency in milliseconds
    - `search_used` boolean — Whether web search was used to generate the answer

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.net/liteapi/apis/api-search.md) · [All operations](https://skmtc.net/liteapi/apis/api-search/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/liteapi/api-search/versions/315ba2a4dcf4/schema)
