Skip to main content
SpaPortal stores selected text fields in multiple locales. Send Accept-Language to choose the localized values you want:
curl \
  -H "X-SpaPortal-Public-Key: <public_key>" \
  -H "Accept-Language: cs-CZ,de-DE,en" \
  "https://spaportal.cz/api/v2/room-types"
API v2 accepts BCP 47 language tags in requests. Supported response locale keys are cs-CZ, de, en, and ru. Regional request tags are matched to the closest supported locale. For example, de-DE and de-AT both return localized fields under de. Localized response fields are objects keyed by supported response locale:
{
  "name": {
    "cs-CZ": "Frantiskovy Lazne",
    "de": "Franzensbad"
  }
}
The response includes Content-Language with the locale tags returned.

Language ranges

Use these request values to select localized fields:
Header valueMeaning
cs-CZCzech for Czechia
de, de-DE, de-ATGerman, returned as de
en, en-US, en-GBEnglish, returned as en
ru, ru-RURussian, returned as ru
When Accept-Language is omitted, the API returns all supported locale keys for that field.