Conventions
The base URL for API v2 ishttps://spaportal.cz/api/v2. The SpaPortal API follows RESTful conventions: resources are read with GET requests, filtered by query parameters. Response bodies are encoded as JSON.
- HTTPS only
- Query parameters for
GETfilters
Paths and field names
API paths are versioned:/hotels, /room-types, /amenity-categories.
IDs
Resources are identified byid — a 24-character hex string.
Dates
Read the dates guide. Date fields use ISO 8601 calendar dates inYYYY-MM-DD format, without a time
or time zone.
Currencies
Read the currencies guide. Fields that use theMoney object return CZK and EUR as integer minor units
(amountMinor). Hotel pet fees use major-unit numbers instead. There is no
currency request parameter.
Images and thumbnails
Hotels and room types can include images as{ url, thumbnailUrl } objects — thumbnailUrl is a smaller generated preview, or null when unavailable.
Localization
Read the localization guide. Set theAccept-Language header (BCP 47 tags) to choose which locale keys localized fields return; omit it to get all of cs-CZ, de, en, ru.
Pagination
Read the pagination guide. List responses are{ data, pagination }; pass the previous response’s nextCursor back as cursor to fetch the next page.
Search
Read the search guide. List endpoints acceptsearch for free-text filtering — case- and
diacritics-insensitive, matched across all supported languages (cs-CZ, de,
en, ru) at once, so a term in any language matches. Each endpoint documents
which field(s) it searches.
Sorting
Read the sorting guide. List endpoints acceptsort as <field>:<direction> (asc or desc), for
example createdAt:desc. Each endpoint documents its sortable fields and
default order.
Expand
Read the expand guide. Useexpand to embed related resources inline (for example expand=hotel)
instead of making a second request. Each endpoint documents the values it
supports.