FREE 1440 requests/day
€0.001 + VAT
FREE requests
The service for checking, obtaining and updating ISTAT city codes and their associated municipalities in real time.
The ISTAT code is a numerical identifier assigned by the Italian National Institute of Statistics to each existing or new municipality and is used for statistical purposes.
This is an alphanumeric code consisting of six digits: the first three digits of the code identify the province to which the municipality belongs, while the next three identify the municipality within its province.
The Municipalities Search service belongs to the API ZIP CODE (CAP) and allows you to check, obtain and update ISTAT city codes and their associated municipalities. Search Municipalities is identified by the endpoint GET https://cap.openapi.it/cerca_comuni
The service provides 44,640 free requests per month and allows the ISTAT code to be obtained from a number of parameters such as:
One or more parameters may be combined in the same request.
The name (city) field provides a textual search and will present all cities containing that name in the results. For example, if the search parameter for city name is ‘Roma’, the response will return other cities that include ‘roma’ such as Campagnano di Roma or Trevignano Romano. It is possible to refine the search using other parameters such as province, region and postal code.
GET /cerca_comuni
This is an example of a request where we chose the municipality of Florence as a parameter:
https://cap.openapi.it/cerca_comuni?comune=Firenze
The response may include one or more cities, depending on the parameters used, with the following information:
GET /cerca_comuni
This is an example of response:
{
"data": {
"istat": "48017",
"comune": "Firenze",
"suppressed":false
}
],
"suppressed": []
},
"success": true,
"message": "",
"error": null
}
In the event of suppression, the six-character alphanumeric code that identified it at the time of suppression remains assigned to the suppressed municipality and is no longer re-assigned. In the event of a change of name, the code remains unchanged and is assigned to the new name.
The ISTAT code obtained can then be used to obtain further information on municipalities via other endpoints, such as Basic or Advance Municipalities.
Do you need help?
Haven't found the answer you're looking for?
Fill in all the details, we will get back to you as soon as possible!
Municipalities Search (in Italian "Cerca Comuni") is an advanced search engine that allows you to obtain information such as the ISTAT (Italian National Institute of Statistics) code, the name of the municipality, and whether it is a suppressed municipality. You can customize the search by selecting various parameters, including municipality name, postal code (CAP), ISTAT code, cadastral code, region, or province. These parameters can be combined to refine the results and obtain more precise information.
Absolutely yes, our APIs provide access to information on all Italian postal codes and municipalities.
The Municipalities Search service includes the following information in the response:
The data is updated every 3 months on average.
Yes, through Openapi's APIs, it is possible to access over 28 services dedicated to the real estate sector:
The services are available through different APIs: Docuengine, Cadastre, Real Estate.
Cerca Comuni provides access to a basic set of essential information and is particularly useful for obtaining the ISTAT code starting from a postal code (CAP) or city name. This code is crucial for accessing more detailed data through the Basic Municipalities and Advanced Municipalities services.
The data is returned in real-time.
The service is free up to 44,640 requests per month; after that, a charge of €0.001 per request applies.