> ## Documentation Index
> Fetch the complete documentation index at: https://slovakapi.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# List municipalities

> Returns all municipality codes and labels.

You can use this endpoint to resolve the `sidlo` field from the response on an [Accounting unit](/ruz/api-reference/entity-details/get-accounting-unit) into a human-readable label.

<Info>The source code for this endpoint is the ŠÚSR codelist `0025/LSUJ2`.</Info>

***

## Common patterns

<AccordionGroup>
  <Accordion title="Resolve a municipality code">
    Fetch all municipalities and find the matching label for a `sidlo` code on an accounting unit.

    ```js Resolve a municipality code theme={null}
    // 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);
    ```
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml ruz/openapi.json GET /api/sidla
openapi: 3.1.0
info:
  title: RÚZ API
  description: >-
    Public REST API for Slovakia's Register of Financial Statements (Register
    účtovných závierok). Exposes accounting units, financial statements,
    financial reports, and annual reports in JSON. Data is updated throughout
    the day as records are published.
  version: 2.5.0
  license:
    name: Creative Commons Zero (CC0)
    url: https://creativecommons.org/publicdomain/zero/1.0/
servers:
  - url: https://www.registeruz.sk/cruz-public
    description: Production
security: []
paths:
  /api/sidla:
    get:
      summary: List municipalities
      description: >-
        Returns all municipality codes and labels from ŠÚSR codelist
        `0025/LSUJ2`. No parameters required.


        Use codes to resolve the `sidlo` field on accounting units.
      operationId: listMunicipalities
      responses:
        '200':
          description: Municipalities returned successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LocationList'
components:
  schemas:
    LocationList:
      type: object
      properties:
        lokacie:
          type: array
          items:
            $ref: '#/components/schemas/LocationItem'
    LocationItem:
      type: object
      properties:
        kod:
          type: string
          description: Location code.
        nazov:
          $ref: '#/components/schemas/LocalizedText'
        nadradenaLokacia:
          type: string
          description: Parent location code — present for districts and municipalities.
    LocalizedText:
      type: object
      description: A text value with localized variants.
      properties:
        sk:
          type: string
          description: Slovak label.
        en:
          type: string
          description: English label.

````