Ir al contenido
GET /v1/municipalities

List municipalities and regions

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/kolada-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/kolada-api/v1/municipalities" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/kolada-api/v1/municipalities", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/kolada-api/v1/municipalities");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/kolada-api/v1/municipalities",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "page": 1,
        "count": 60,
        "source": "Kolada (Sweden)",
        "per_page": 60,
        "total_count": 60,
        "municipalities": [
            {
                "id": "0000",
                "type": "region",
                "title": "Riket"
            },
            {
                "id": "0001",
                "type": "region",
                "title": "Region Stockholm"
            },
            {
                "id": "0003",
                "type": "region",
                "title": "Region Uppsala"
            },
            {
                "id": "0004",
                "type": "region",
                "title": "Region Sörmland"
            },
            {
                "id": "0005",
                "type": "region",
                "title": "Region Östergötland"
            },
            {
                "id": "0006",
                "type": "region",
                "title": "Region Jönköpings län"
            },
            {
                "id": "0007",
                "type": "region",
                "title": "Region Kronoberg"
            },
            {
                "id": "0008",
                "type": "region",
                "title": "Region Kalmar"
            },
            {
                "id": "0009",
                "type": "region",
                "title": "Region Gotland"
            },
            {
                "id": "0010",
                "type": "region",
                "title": "Region Blekinge"
            },
            {
                "id": "0012",
                "type": "region",
                "title": "Region Skåne"
            },
            {
                "id": "0013",
                "type": "region",
                "title": "Region Halland"
            },
            {
                "id": "0014",
                "type": "region",
                "title": "Västra Götalandsregionen"
            },
            {
                "id": "0017",
                "type": "region",
                "title": "Region Värmland"
            },
            {
                "id": "0018",
                "type": "region",
                "title": "Region Örebro län"
            },
            {
                "id": "0019",
                "type": "region",
                "title": "Region Västmanland"
            },
            {
                "id": "0020",
                "type": "region",
                "title": "Region Dalarna"
            },
            {
                "id": "0021",
                "type": "region",
                "title": "Region Gävleborg"
            },
            {
                "id": "0022",
                "type": "region",
                "title": "Region Västernorrland"
            },
            {
                "id": "0023",
                "type": "region",
                "title": "Region Jämtland Härjedalen"
            },
            {
                "id": "0024",
                "type": "region",
     
…