List municipalities (shared)
fastighetsbenchmark_list_municipalitiesResolve municipality names or codes to IDs for filtering property unit searches. Provides official municipality codes and names.
Instructions
Read-only. Look up municipality ids — the municipalityId filter of fastighetsbenchmark_search_property_units. Shared reference data, the same for every key. Each row has id, name, countryCode and code (the official municipality code; for Sweden the SCB kommunkod, e.g. '0180'). Example: nameContains 'Stockholm' → id 21. Read-only — never writes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Exact official municipality code (Sweden: SCB kommunkod), e.g. '0180'. | |
| page | No | 1-indexed result page (first page = 1), e.g. 1. | |
| sort | No | Comma-separated sort fields; prefix '-' for descending, e.g. '-name'. | |
| pageSize | No | Rows per page (v2 default 50, max 500), e.g. 50. | |
| countryCode | No | ISO 3166-1 alpha-2 country, e.g. 'SE'. | |
| nameContains | No | Case-insensitive municipality-name fragment, e.g. 'Stockholm'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Municipalities (shared reference data). | |
| page | Yes | The page you are on (1-indexed). | |
| pageSize | No | Rows per page echoed back by v2, e.g. 50. | |
| totalCount | No | Total matching rows across all pages; null/absent when count is skipped. | |
| totalPages | No | Total page count; null/absent when count is skipped. |