---
title: "Get available hotels"
method: GET
path: "/hotels"
---

# Get available hotels

`GET /hotels`

Retrieves a list of available hotels, optionally filtered by location.

## Query parameters

- `location` string

## Response `200`

Successfully retrieved hotels.

- object
  - `error` boolean
  - `data` Hotel[]
    - `id` integer
    - `name` string
    - `location` string
    - `available_rooms` integer
    - `price_per_night` number, float
  - `message` string

## Other responses

- `401` — Unauthorized. Invalid or expired token.

---

[API](https://skmtc.dev/google/apis/hotel-booker-api.md) · [All operations](https://skmtc.dev/google/apis/hotel-booker-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/hotel-booker-api/revisions/0d5ee895a4ed/schema)
