/v1/municipalities
List municipalities and regions
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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",
…