Documentazione API

Dati geografici

API: GeoTree/CH

Recupera l'albero geoprafico per tutte le voci disponibili di un paese, in base a un codice paese ISO (iso).

Funzione

Questa API legge l'albero geografico della Svizzera. Ciò consente di determinare i geoId necessari per ulteriori interrogazioni. Il parametro richiesto è `api_key`. Inoltre, l'output può essere configurato utilizzando altri parametri. I parametri vengono passati come parametri di query nell'URL. In alternativa, l'autorizzazione può avvenire anche nell'intestazione.


Guida interattiva e OpenAPI aperta

OpenAPI 3.0 (Swagger) – Documentazione API interattiva

Apre la documentazione interattiva dell'API con Swagger, dove è possibile testare ed esplorare gli endpoint dell'API.

Scarica le specifiche JSON di OpenAPI

URL per le richieste

Per recuperare i dati, utilizzare il seguente URL. Si prega di prestare attenzione alle maiuscole e alle minuscole.

POST / GET
https://feiertagskalender.ch/api/GeoTree/CH/index.php

Parametri per le richieste

Con le seguenti variabili è possibile completare la query e controllare i risultati delle API.

Parametro Spiegazione Esempi
api_key
richiesto
La vostra chiave API api_key=abc-123-def-456
charset

La codifica desiderata della risposta

Varianti:
UTF-8 (= Standard)
ISO-8859-1

charset=iso-8859-1
format

Il formato di uscita desiderato

Varianti:
JSON (= Standard)
XML
CSV

format=xml
hl

Lingua desiderata dell'uscita

Varianti:
de = Tedesco (= Standard)
fr = Francese
it = Italiano
en = Inglese

hl=en

Esempi (URL / PHP / Python / JavaScript)

Mostra esempi

Valori di ritorno dell'API

Il contenuto delle risposte API deriva da:
- i dati che hai sottoscritto (paesi, vacanze, vacanze scolastiche, anni solari)
- i dati ufficialmente noti dei legislatori
- la disponibilità in base alle nostre ricerche (situazione effettiva del nostro database)

Si prega di notare che l'output in formato CSV è diverso.

Array         Spiegazione Esempio
interface         Versione dell'API  
source: href       URL della fonte dei dati (sito web)  
  description       Nome della fonte dei dati  
copyright href       URL al titolare del copyright (sito web)  
  description       Designazione del titolare del diritto d'autore  
apiName         Identificazione dell'API GeoTree/CH
apiStatus description       Designazione dello stato API. Per le varianti, vedere i Messaggi di errore active
date         Data di esportazione dei dati 01.05.2025
request: iso       Codice ISO del paese, 2 cifre CH
  charset       Codifica dei caratteri di output utf-8
  format       Formato dei dati di uscita json
  hl       Lingua di emissione, secondo la richiesta it
results status description     Stato dell'output. Per le varianti, vedere i Messaggi di errore ok
  location       Unità geografica secondo la richiesta  
    description     Nome dell'unità geografica Svizzera
    type     Designazione del tipo di unità geografica Paese
    geoId     Geo-ID dell'unità geografica. 3056
    iso     Codice ISO del paese, 2 cifre CH
    iso-3166-2     Codice regione secondo ISO 3166-2  
    bfs     Numero comunità UFS (disponibile solo a livello di comunità) NULL
    children     Eventuali unità geografiche subordinate  
      description   Nome dell'unità geografica Argovia
      type   Designazione del tipo di unità geografica Cantone
      geoId   Geo-ID dell'unità geografica. 1
      iso   Codice ISO del paese, 2 cifre CH
      iso-3166-2   Codice regione secondo ISO 3166-2 CH-AG
      bfs   Numero comunità UFS (disponibile solo a livello di comunità)  
      children   Eventuali unità geografiche subordinate
(1-3 livelli, a seconda del cantone)
array

Esempi (JSON / XML / CSV)

JSON

URL:
https://www.feiertagskalender.ch/api/GeoTree/CH/index.php?api_key=YOUR_API_KEY&format=json&charset=utf-8&date_format=Y-m-d

Risposta delle API:

{
    "interface": "fcal API 2.02",
    "source": {
        "href": "https://feiertagskalender.ch",
        "description": "feiertagskalender.ch"
    },
    "copyright": {
        "href": "https://psc.ch",
        "description": "psc Peter Schuetz Informatik-Dienstleistungen, CH Arch"
    },
    "apiName": "GeoTree/CH",
    "apiStatus": {
        "description": "active"
    },
    "date": "2025-02-28",
    "request": {
        "iso": "CH",
        "charset": "utf-8",
        "format": "json",
        "hl": "de"
    },
    "results": {
        "status": {
            "description": "ok"
        },
        "location": {
            "description": "Schweiz",
            "type": "Land",
            "geoId": "3056",
            "iso": "CH",
            "iso-3166-2": "",
            "bfs": null,
            "children": [
                {
                    "description": "Aargau",
                    "type": "Kanton",
                    "geoId": "1",
                    "iso": "CH",
                    "iso-3166-2": "CH-AG",
                    "bfs": null,
                    "children": [
                        {
                            "description": "Aarau",
                            "type": "Bezirk",
                            "geoId": "2",
                            "iso": "CH",
                            "iso-3166-2": "CH-AG",
                            "bfs": null,
                            "children": [
                                {
                                    "description": "Aarau",
                                    "type": "Gemeinde",
                                    "geoId": "3",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4001",
                                    "children": null
                                },
                                {
                                    "description": "Biberstein",
                                    "type": "Gemeinde",
                                    "geoId": "4",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4002",
                                    "children": null
                                },
                                {
                                    "description": "Buchs (AG)",
                                    "type": "Gemeinde",
                                    "geoId": "5",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4003",
                                    "children": null
                                },
                                {
                                    "description": "Densbüren",
                                    "type": "Gemeinde",
                                    "geoId": "6",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4004",
                                    "children": null
                                },
                                {
                                    "description": "Erlinsbach (AG)",
                                    "type": "Gemeinde",
                                    "geoId": "7",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4005",
                                    "children": null
                                },
                                {
                                    "description": "Gränichen",
                                    "type": "Gemeinde",
                                    "geoId": "8",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4006",
                                    "children": null
                                },
                                {
                                    "description": "Hirschthal",
                                    "type": "Gemeinde",
                                    "geoId": "9",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4007",
                                    "children": null
                                },
                                {
                                    "description": "Küttigen",
                                    "type": "Gemeinde",
                                    "geoId": "10",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4008",
                                    "children": null
                                },
                                {
                                    "description": "Muhen",
                                    "type": "Gemeinde",
                                    "geoId": "11",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4009",
                                    "children": null
                                },
                                {
                                    "description": "Oberentfelden",
                                    "type": "Gemeinde",
                                    "geoId": "12",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4010",
                                    "children": null
                                },
                                {
                                    "description": "Suhr",
                                    "type": "Gemeinde",
                                    "geoId": "14",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4012",
                                    "children": null
                                },
                                {
                                    "description": "Unterentfelden",
                                    "type": "Gemeinde",
                                    "geoId": "15",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4013",
                                    "children": null
                                }
                            ]
                        },
                        {
                            "description": "Baden",
                            "type": "Bezirk",
                            "geoId": "16",
                            "iso": "CH",
                            "iso-3166-2": "CH-AG",
                            "bfs": null,
                            "children": [
                                {
                                    "description": "Baden",
                                    "type": "Gemeinde",
                                    "geoId": "17",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4021",
                                    "children": null
                                },
                                {
                                    "description": "Bellikon",
                                    "type": "Gemeinde",
                                    "geoId": "18",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4022",
                                    "children": null
                                },
                                {
                                    "description": "Bergdietikon",
                                    "type": "Gemeinde",
                                    "geoId": "19",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4023",
                                    "children": null
                                },
                                {
                                    "description": "Birmenstorf (AG)",
                                    "type": "Gemeinde",
                                    "geoId": "20",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4024",
                                    "children": null
                                },
                                {
                                    "description": "Ehrendingen",
                                    "type": "Gemeinde",
                                    "geoId": "31",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4049",
                                    "children": null
                                },
                                {
                                    "description": "Ennetbaden",
                                    "type": "Gemeinde",
                                    "geoId": "21",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4026",
                                    "children": null
                                },
                                {
                                    "description": "Fislisbach",
                                    "type": "Gemeinde",
                                    "geoId": "22",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4027",
                                    "children": null
                                },
                                {
                                    "description": "Freienwil",
                                    "type": "Gemeinde",
                                    "geoId": "23",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4028",
                                    "children": null
                                },
                                {
                                    "description": "Gebenstorf",
                                    "type": "Gemeinde",
                                    "geoId": "24",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4029",
                                    "children": null
                                },
                                {
                                    "description": "Killwangen",
                                    "type": "Gemeinde",
                                    "geoId": "25",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4030",
                                    "children": null
                                },
                                {
                                    "description": "Künten",
                                    "type": "Gemeinde",
                                    "geoId": "26",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4031",
                                    "children": null
                                },
                                {
                                    "description": "Mägenwil",
                                    "type": "Gemeinde",
                                    "geoId": "27",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4032",
                                    "children": null
                                },
                                {
                                    "description": "Mellingen",
                                    "type": "Gemeinde",
                                    "geoId": "28",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4033",
                                    "children": null
                                },
                                {
                                    "description": "Neuenhof",
                                    "type": "Gemeinde",
                                    "geoId": "29",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4034",
                                    "children": null
                                },
                                {
                                    "description": "Niederrohrdorf",
                                    "type": "Gemeinde",
                                    "geoId": "30",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4035",
                                    "children": null
                                },
                                {
                                    "description": "Oberrohrdorf",
                                    "type": "Gemeinde",
                                    "geoId": "32",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4037",
                                    "children": null
                                },
                                {
                                    "description": "Obersiggenthal",
                                    "type": "Gemeinde",
                                    "geoId": "33",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4038",
                                    "children": null
                                },
                                {
                                    "description": "Remetschwil",
                                    "type": "Gemeinde",
                                    "geoId": "34",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4039",
                                    "children": null
                                },
                                {
                                    "description": "Spreitenbach",
                                    "type": "Gemeinde",
                                    "geoId": "35",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4040",
                                    "children": null
                                },
                                {
                                    "description": "Stetten (AG)",
                                    "type": "Gemeinde",
                                    "geoId": "36",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4041",
                                    "children": null
                                },
                                {
                                    "description": "Untersiggenthal",
                                    "type": "Gemeinde",
                                    "geoId": "39",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4044",
                                    "children": null
                                },
                                {
                                    "description": "Wettingen",
                                    "type": "Gemeinde",
                                    "geoId": "40",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4045",
                                    "children": null
                                },
                                {
                                    "description": "Wohlenschwil",
                                    "type": "Gemeinde",
                                    "geoId": "41",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4046",
                                    "children": null
                                },
                                {
                                    "description": "Würenlingen",
                                    "type": "Gemeinde",
                                    "geoId": "42",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4047",
                                    "children": null
                                },
                                {
                                    "description": "Würenlos",
                                    "type": "Gemeinde",
                                    "geoId": "43",
                                    "iso": "CH",
                                    "iso-3166-2": "CH-AG",
                                    "bfs": "4048",
                                    "children": null
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    }
}

XML

URL:
https://www.feiertagskalender.ch/api/GeoTree/CH/index.php?api_key=YOUR_API_KEY&format=json&charset=utf-8&date_format=Y-m-d&format=xml

Risposta delle API:

<fcal_api>
<interface>fcal API 2.02</interface>
<source>
<href>https://feiertagskalender.ch</href>
<description>feiertagskalender.ch</description>
</source>
<copyright>
<href>https://psc.ch</href>
<description>psc Peter Schuetz Informatik-Dienstleistungen, CH Bern</description>
</copyright>
<apiStatus>
<description>active</description>
</apiStatus>
<apiName>GeoTree/CH</apiName>
<date>2025-02-28</date>
<request>
<iso>CH</iso>
<charset>utf-8</charset>
<format>xml</format>
<hl>de</hl>
</request>
<results>
<status>
<description>ok</description>
</status>
<location>
<description>Schweiz</description>
<type>Land</type>
<geoId>3056</geoId>
<iso>CH</iso>
<iso-3166-2></iso-3166-2>
<bfs></bfs>
<children>
<child>
<description>Aargau</description>
<type>Kanton</type>
<geoId>1</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs></bfs>
<children>
<child>
<description>Aarau</description>
<type>Bezirk</type>
<geoId>2</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs></bfs>
<children>
<child>
<description>Aarau</description>
<type>Gemeinde</type>
<geoId>3</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4001</bfs>
<children></children>
</child>
<child>
<description>Biberstein</description>
<type>Gemeinde</type>
<geoId>4</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4002</bfs>
<children></children>
</child>
<child>
<description>Buchs (AG)</description>
<type>Gemeinde</type>
<geoId>5</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4003</bfs>
<children></children>
</child>
<child>
<description>Densbüren</description>
<type>Gemeinde</type>
<geoId>6</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4004</bfs>
<children></children>
</child>
<child>
<description>Erlinsbach (AG)</description>
<type>Gemeinde</type>
<geoId>7</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4005</bfs>
<children></children>
</child>
<child>
<description>Gränichen</description>
<type>Gemeinde</type>
<geoId>8</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4006</bfs>
<children></children>
</child>
<child>
<description>Hirschthal</description>
<type>Gemeinde</type>
<geoId>9</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4007</bfs>
<children></children>
</child>
<child>
<description>Küttigen</description>
<type>Gemeinde</type>
<geoId>10</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4008</bfs>
<children></children>
</child>
<child>
<description>Muhen</description>
<type>Gemeinde</type>
<geoId>11</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4009</bfs>
<children></children>
</child>
<child>
<description>Oberentfelden</description>
<type>Gemeinde</type>
<geoId>12</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4010</bfs>
<children></children>
</child>
<child>
<description>Suhr</description>
<type>Gemeinde</type>
<geoId>14</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4012</bfs>
<children></children>
</child>
<child>
<description>Unterentfelden</description>
<type>Gemeinde</type>
<geoId>15</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4013</bfs>
<children></children>
</child>

</children>
</child>
<child>
<description>Baden</description>
<type>Bezirk</type>
<geoId>16</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs></bfs>
<children>
<child>
<description>Baden</description>
<type>Gemeinde</type>
<geoId>17</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4021</bfs>
<children></children>
</child>
<child>
<description>Bellikon</description>
<type>Gemeinde</type>
<geoId>18</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4022</bfs>
<children></children>
</child>
<child>
<description>Bergdietikon</description>
<type>Gemeinde</type>
<geoId>19</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4023</bfs>
<children></children>
</child>
<child>
<description>Birmenstorf (AG)</description>
<type>Gemeinde</type>
<geoId>20</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4024</bfs>
<children></children>
</child>
<child>
<description>Ehrendingen</description>
<type>Gemeinde</type>
<geoId>31</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4049</bfs>
<children></children>
</child>
<child>
<description>Ennetbaden</description>
<type>Gemeinde</type>
<geoId>21</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4026</bfs>
<children></children>
</child>
<child>
<description>Fislisbach</description>
<type>Gemeinde</type>
<geoId>22</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4027</bfs>
<children></children>
</child>
<child>
<description>Freienwil</description>
<type>Gemeinde</type>
<geoId>23</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4028</bfs>
<children></children>
</child>
<child>
<description>Gebenstorf</description>
<type>Gemeinde</type>
<geoId>24</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4029</bfs>
<children></children>
</child>
<child>
<description>Killwangen</description>
<type>Gemeinde</type>
<geoId>25</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4030</bfs>
<children></children>
</child>
<child>
<description>Künten</description>
<type>Gemeinde</type>
<geoId>26</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4031</bfs>
<children></children>
</child>
<child>
<description>Mägenwil</description>
<type>Gemeinde</type>
<geoId>27</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4032</bfs>
<children></children>
</child>
<child>
<description>Mellingen</description>
<type>Gemeinde</type>
<geoId>28</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4033</bfs>
<children></children>
</child>
<child>
<description>Neuenhof</description>
<type>Gemeinde</type>
<geoId>29</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4034</bfs>
<children></children>
</child>
<child>
<description>Niederrohrdorf</description>
<type>Gemeinde</type>
<geoId>30</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4035</bfs>
<children></children>
</child>
<child>
<description>Oberrohrdorf</description>
<type>Gemeinde</type>
<geoId>32</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4037</bfs>
<children></children>
</child>
<child>
<description>Obersiggenthal</description>
<type>Gemeinde</type>
<geoId>33</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4038</bfs>
<children></children>
</child>
<child>
<description>Remetschwil</description>
<type>Gemeinde</type>
<geoId>34</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4039</bfs>
<children></children>
</child>
<child>
<description>Spreitenbach</description>
<type>Gemeinde</type>
<geoId>35</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4040</bfs>
<children></children>
</child>
<child>
<description>Stetten (AG)</description>
<type>Gemeinde</type>
<geoId>36</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4041</bfs>
<children></children>
</child>
<child>
<description>Untersiggenthal</description>
<type>Gemeinde</type>
<geoId>39</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4044</bfs>
<children></children>
</child>
<child>
<description>Wettingen</description>
<type>Gemeinde</type>
<geoId>40</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4045</bfs>
<children></children>
</child>
<child>
<description>Wohlenschwil</description>
<type>Gemeinde</type>
<geoId>41</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4046</bfs>
<children></children>
</child>
<child>
<description>Würenlingen</description>
<type>Gemeinde</type>
<geoId>42</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4047</bfs>
<children></children>
</child>
<child>
<description>Würenlos</description>
<type>Gemeinde</type>
<geoId>43</geoId>
<iso>CH</iso>
<iso-3166-2>CH-AG</iso-3166-2>
<bfs>4048</bfs>
<children></children>
</child>

</children>
</child>


</children>
</child>

</children>
</location>
</results>
</fcal_api>

CSV

Aufruf:
https://www.feiertagskalender.ch/api/GeoTree/CH/index.php?api_key=YOUR_API_KEY&format=json&charset=utf-8&date_format=Y-m-d&format=CSV

Risposta delle API:

"location_L0";"type_L0";"iso";"geoId_L0";"iso-3166-2";"location_L1";"type_L1";"geoId_L1";"location_L2";"type_L2";"geoId_L2";"location_L3";"type_L3";"geoId_L3";"bfs"
"Schweiz";"Land";"CH";"3056";"";"";"";"";"";"";"";"";"";"";""
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"";"";"";"";"";"";""
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Aarau";"Bezirk";"2";"";"";"";""
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Aarau";"Bezirk";"2";"Aarau";"Gemeinde";"3";"4001"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Aarau";"Bezirk";"2";"Biberstein";"Gemeinde";"4";"4002"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Aarau";"Bezirk";"2";"Buchs (AG)";"Gemeinde";"5";"4003"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Aarau";"Bezirk";"2";"Densbüren";"Gemeinde";"6";"4004"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Aarau";"Bezirk";"2";"Erlinsbach (AG)";"Gemeinde";"7";"4005"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Aarau";"Bezirk";"2";"Gränichen";"Gemeinde";"8";"4006"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Aarau";"Bezirk";"2";"Hirschthal";"Gemeinde";"9";"4007"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Aarau";"Bezirk";"2";"Küttigen";"Gemeinde";"10";"4008"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Aarau";"Bezirk";"2";"Muhen";"Gemeinde";"11";"4009"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Aarau";"Bezirk";"2";"Oberentfelden";"Gemeinde";"12";"4010"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Aarau";"Bezirk";"2";"Suhr";"Gemeinde";"14";"4012"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Aarau";"Bezirk";"2";"Unterentfelden";"Gemeinde";"15";"4013"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"";"";"";""
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Baden";"Gemeinde";"17";"4021"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Bellikon";"Gemeinde";"18";"4022"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Bergdietikon";"Gemeinde";"19";"4023"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Birmenstorf (AG)";"Gemeinde";"20";"4024"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Ehrendingen";"Gemeinde";"31";"4049"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Ennetbaden";"Gemeinde";"21";"4026"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Fislisbach";"Gemeinde";"22";"4027"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Freienwil";"Gemeinde";"23";"4028"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Gebenstorf";"Gemeinde";"24";"4029"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Killwangen";"Gemeinde";"25";"4030"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Künten";"Gemeinde";"26";"4031"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Mägenwil";"Gemeinde";"27";"4032"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Mellingen";"Gemeinde";"28";"4033"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Neuenhof";"Gemeinde";"29";"4034"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Niederrohrdorf";"Gemeinde";"30";"4035"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Oberrohrdorf";"Gemeinde";"32";"4037"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Obersiggenthal";"Gemeinde";"33";"4038"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Remetschwil";"Gemeinde";"34";"4039"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Spreitenbach";"Gemeinde";"35";"4040"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Stetten (AG)";"Gemeinde";"36";"4041"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Untersiggenthal";"Gemeinde";"39";"4044"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Wettingen";"Gemeinde";"40";"4045"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Wohlenschwil";"Gemeinde";"41";"4046"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Würenlingen";"Gemeinde";"42";"4047"
"Schweiz";"Land";"CH";"3056";"Aargau";"Kanton";"CH-AG";"1";"Baden";"Bezirk";"16";"Würenlos";"Gemeinde";"43";"4048"

Messaggi di errore

Posizione di uscita Messaggio di errore Spiegazione
apiStatus
apiStatus: description invalid usage L'uso di questa API non è abilitato per questo utente.
apiStatus: description invalid key Chiave API non valida.
apiStatus: description invalid referer Accesso non valido. Non sono ammessi link da pagine web (front-end).
apiStatus: description inactive L'API non è ancora stata attivata per l'uso.
apiStatus: description expired Il periodo di utilizzo secondo il contratto è scaduto.
© 2003 - 2025 psc Peter Schütz Informatik Dienstleistungen, CH-Arch