Skip to main content
GET
/
api
/
kraje
List regions
curl --request GET \
  --url https://www.registeruz.sk/cruz-public/api/kraje
{
  "lokacie": [
    {
      "kod": "<string>",
      "nazov": {
        "sk": "<string>",
        "en": "<string>"
      },
      "nadradenaLokacia": "<string>"
    }
  ]
}
You can use this endpoint to resolve the kraj field from the response on an Accounting unit into a human-readable label.
The source code for this endpoint is the ŠÚSR codelist 0023/RSUJ3.

Common patterns

Fetch all regions and find the matching label for a kraj code on an accounting unit.
Resolve a region code
// 1. Fetch all regions
const { lokacie } = await fetch(`${BASE}/api/kraje`).then(r => r.json());

// 2. Resolve the region label for an accounting unit
const region = lokacie.find(r => r.kod === unit.kraj);

// 3. Log the region label
console.log(region?.nazov?.sk);

Response

200 - application/json

Regions returned successfully.

lokacie
object[]