This service provides an updated database of italian CAP, COMUNI, ISTAT CODE, PROVINCE and REGIONI
Returns a list of italian COMUNI looking for a specific CAP, ISTAT code, PROVINCIA or Regione
This service returns a list of COMUNI included in a specific CAP
CAP required | string Default: "<string>" Example: 05100 Italian ZipCode aka CAP of the COMUNE needed |
success | boolean |
message | string |
error | integer |
Array of objects (ElencoComuni) [ items ] |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://comuni.openapi.it/cap/%7BCAP%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": {
- "nome_provincia": "Terni",
- "sigla_provincia": "TR",
- "regione": "Umbria",
- "comuni": [
- "Terni"
], - "dettaglio_comuni": [
- {
- "nome": "Terni",
- "popolazione": 109193,
- "codice_catastale": "L117",
- "codice_istat": "055032"
}
]
}, - "success": true,
- "message": "",
- "error": null
}
This service returns a COMUNE with a specific ISTAT code
ISTAT required | string Default: "<string>" Example: 055032 Italian ISTAT code of the COMUNE needed |
success | boolean |
message | string |
error | integer |
Array of objects (ElencoComuni) [ items ] |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://comuni.openapi.it/istat/%7BISTAT%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": {
- "nome_provincia": "Terni",
- "sigla_provincia": "TR",
- "regione": "Umbria",
- "comuni": [
- "Terni"
], - "dettaglio_comuni": [
- {
- "nome": "Terni",
- "popolazione": 109193,
- "codice_catastale": "L117",
- "codice_istat": "055032"
}
]
}, - "success": true,
- "message": "",
- "error": null
}
This service returns a COMUNE with a specific CODICE_CATASTALE
CODICE_CATASTALE required | string Default: "<string>" Example: L117 Italian Codice Catastale of the COMUNE needed |
success | boolean |
message | string |
error | integer |
Array of objects (ElencoComuni) [ items ] |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://comuni.openapi.it/catasto/%7BCODICE_CATASTALE%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": {
- "nome_provincia": "Terni",
- "sigla_provincia": "TR",
- "regione": "Umbria",
- "comuni": [
- "Terni"
], - "dettaglio_comuni": [
- {
- "nome": "Terni",
- "popolazione": 109193,
- "codice_catastale": "L117",
- "codice_istat": "055032"
}
]
}, - "success": true,
- "message": "",
- "error": null
}
This service returns a list of COMUNI included in a specific REGIONE
REGIONE required | string Default: "<string>" Example: umbria Italian region name |
success | boolean |
message | string |
error | integer |
Array of objects (ElencoComuni) [ items ] |
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://comuni.openapi.it/regioni/%7BREGIONE%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
{- "data": {
- "nome_provincia": "Terni",
- "sigla_provincia": "TR",
- "regione": "Umbria",
- "comuni": [
- "Terni"
], - "dettaglio_comuni": [
- {
- "nome": "Terni",
- "popolazione": 109193,
- "codice_catastale": "L117",
- "codice_istat": "055032"
}
]
}, - "success": true,
- "message": "",
- "error": null
}
This service returns a list of COMUNI included in a specific PROVINCIA
PROVINCIA required | string Default: "<string>" Example: TR Italian provincia code |
success | boolean |
message | string |
error | integer |
Array of objects (ElencoComuni) [ items ] |