Skip to main content
GET
/
room-types
List room types
curl --request GET \
  --url https://spaportal.cz/api/v2/room-types \
  --header 'X-SpaPortal-Public-Key: <api-key>'
{
  "data": [
    {
      "id": "66f16191f739705faa020003",
      "hotelId": "66f16191f739705faa020001",
      "code": "SUPERIOR-DBL",
      "category": {
        "cs-CZ": "Superior dvouluzkovy pokoj",
        "de": "Superior Doppelzimmer"
      },
      "beds": 2,
      "facilities": [
        "shower",
        "toilet"
      ],
      "images": [
        {
          "url": "<string>",
          "thumbnailUrl": "<string>"
        }
      ],
      "description": {
        "cs-CZ": "Superior dvouluzkovy pokoj",
        "de": "Superior Doppelzimmer"
      },
      "hotel": {
        "id": "<string>",
        "name": "<string>",
        "stars": 123,
        "destinationId": "<string>"
      }
    }
  ],
  "pagination": {
    "limit": 25,
    "nextCursor": "<string>",
    "hasMore": true,
    "total": 123
  }
}

Authorizations

X-SpaPortal-Public-Key
string
header
required

Headers

Accept-Language
string

Comma-separated BCP 47 language tags selecting which locale keys localized fields return. When omitted, all locale keys are returned.

Example:

"cs-CZ,de"

X-Request-Id
string

Optional client-provided request identifier echoed in error responses.

Query Parameters

limit
integer
default:25

Number of records to return.

Required range: 1 <= x <= 100
cursor
string

Cursor from the previous page's pagination.nextCursor.

hotelId
string

Filter by hotel id.

Pattern: ^[0-9a-fA-F]{24}$
beds
integer

Filter by number of beds.

Required range: 1 <= x <= 10
code
string

Filter by exact room type code.

Full-text search of the localized category name across all supported languages (case- and diacritics-insensitive). To match a code, use code.

include
enum<string>

Set to hotel to embed the hotel in each room type.

Available options:
hotel
sort
enum<string>
default:createdAt:desc

Sort order. Ties are broken by id.

Available options:
createdAt:desc,
createdAt:asc,
id:asc,
id:desc

Response

A page of room types.

data
object[]
required
pagination
object
required