Skip to main content
GET
/
data
/
hotels
/
room-search
Search hotel rooms by image and text (Beta)
curl --request GET \
  --url https://api.liteapi.travel/v3.0/data/hotels/room-search \
  --header 'X-API-Key: <api-key>'
{
  "data": [
    {
      "id": "lp1e4de",
      "name": "The Level Hotel",
      "address": "123 Main Street",
      "city": "Madrid",
      "country": "es",
      "rating": 8.53,
      "rooms": [
        {
          "room_name": "The Level Double Or Twin Room - Mountain View",
          "image_url": "https://static.cupid.travel/rooms-large-pictures/94833838.jpg",
          "similarity": 0.29541015625
        }
      ]
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Query Parameters

query
string
required

Search query describing the room you're looking for. Can be visual (e.g., 'luxury modernist comfort', 'blue accessible bathroom'), amenity-based (e.g., 'twin room with a city view'), or style-based (e.g., 'art deco hotel room', 'brutalist room')

limit
integer

Maximum number of results to return (maps to top_k in the API)

Required range: x >= 1
placeId
string

Place ID. If provided, the search will be limited to hotels within the place's viewport boundaries (or the provided radius if viewport is unavailable). The place's latitude and longitude will be automatically fetched.

latitude
number<float>

Latitude coordinate for geographic filtering. Must be provided together with longitude. Ignored if placeId is provided.

longitude
number<float>

Longitude coordinate for geographic filtering. Must be provided together with latitude. Ignored if placeId is provided.

radius
number<float>

Search radius in kilometers. Only used when latitude/longitude is provided, or when placeId is provided but the place does not have viewport information. When placeId is provided and viewport is available, the viewport boundaries are used instead of this radius. Default is 12km.

Required range: x >= 0
city
string

Filter results by city name. Can be used alone or together with country.

country
string

Filter results by country code (ISO 3166-1 alpha-2 format, e.g., 'FR', 'US'). Can be used alone or together with city.

Response

OK

data
object[]