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

Common patterns

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

// 2. Resolve the municipality label for an accounting unit
const municipality = lokacie.find(m => m.kod === unit.sidlo);

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

Response

200 - application/json

Municipalities returned successfully.

lokacie
object[]