Hauptinhalt

Copy-paste Beispiele

Direkt im Terminal ausführen:

curl -s "https://openleg.ch/api/v1/municipalities?kanton=all&order_by=name" | jq .
curl -s "https://openleg.ch/api/v1/municipalities/261/tariffs?year=2026" | jq .
curl -s "https://openleg.ch/api/v1/municipalities/261/leg-potential?year=2026&participants=10" | jq .