Run with Postman

Comuni Italiani (1.0.0)

This service provides an updated database of italian CAP, COMUNI, ISTAT CODE, PROVINCE and REGIONI

Elenco Comuni

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

This service returns a list of COMUNI included in a specific CAP

Authorizations:
path Parameters
CAP
required
string
Default: "<string>"
Example: 05100

Italian ZipCode aka CAP of the COMUNE needed

Responses

Response Schema: application/json
success
boolean
message
string
error
integer
Array of objects (ElencoComuni) [ items ]

Request samples

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);

Response samples

Content type
application/json
{
  • "data": {
    },
  • "success": true,
  • "message": "",
  • "error": null
}

This service returns a COMUNE with a specific ISTAT code

This service returns a COMUNE with a specific ISTAT code

Authorizations:
path Parameters
ISTAT
required
string
Default: "<string>"
Example: 055032

Italian ISTAT code of the COMUNE needed

Responses

Response Schema: application/json
success
boolean
message
string
error
integer
Array of objects (ElencoComuni) [ items ]

Request samples

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);

Response samples

Content type
application/json
{
  • "data": {
    },
  • "success": true,
  • "message": "",
  • "error": null
}

This service returns a COMUNE with a specific CODICE_CATASTALE

This service returns a COMUNE with a specific CODICE_CATASTALE

Authorizations:
path Parameters
CODICE_CATASTALE
required
string
Default: "<string>"
Example: L117

Italian Codice Catastale of the COMUNE needed

Responses

Response Schema: application/json
success
boolean
message
string
error
integer
Array of objects (ElencoComuni) [ items ]

Request samples

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);

Response samples

Content type
application/json
{
  • "data": {
    },
  • "success": true,
  • "message": "",
  • "error": null
}

This service returns a COMUNE located in a specific REGIONE

This service returns a list of COMUNI included in a specific REGIONE

Authorizations:
path Parameters
REGIONE
required
string
Default: "<string>"
Example: umbria

Italian region name

Responses

Response Schema: application/json
success
boolean
message
string
error
integer
Array of objects (ElencoComuni) [ items ]

Request samples

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);

Response samples

Content type
application/json
{
  • "data": {
    },
  • "success": true,
  • "message": "",
  • "error": null
}

This service returns a COMUNE with a specific PROVINCIA CODE

This service returns a list of COMUNI included in a specific PROVINCIA

Authorizations:
path Parameters
PROVINCIA
required
string
Default: "<string>"
Example: TR

Italian provincia code

Responses

Response Schema: application/json
success
boolean
message
string
error
integer
Array of objects (ElencoComuni) [ items ]

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://comuni.openapi.it/province/%7BPROVINCIA%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);

Response samples

Content type
application/json
{
  • "data": {
    },
  • "success": true,
  • "message": "",
  • "error": null
}

Elenco Province

Returns a list of italian PROVINCE

This service returns a list of PROVINCE

This service returns a list of PROVINCE

Authorizations:

Responses

Response Schema: application/json
success
boolean
message
string
error
integer
data
object

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://comuni.openapi.it/province/");

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);

Response samples

Content type
application/json
{
  • "data": {
    },
  • "success": true,
  • "message": "107 Risultati",
  • "error": null
}

Elenco Regioni

Returns a list of italian REGIONI

This service returns a list of REGIONI

This service returns a list of REGIONI

Authorizations:

Responses

Response Schema: application/json
success
boolean
message
string
error
integer
data
Array of strings <= 2 items

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://comuni.openapi.it/regioni/");

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);

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "success": true,
  • "message": "20 Risultati",
  • "error": null
}