FREE 44640 requests/month
€0.001 + VAT
FREE requests
The service for checking, obtaining and updating ISTAT city codes and their associated municipalities in real time.
The Search Municipalities service belongs to the API CAP and allows you to check, obtain and update ISTAT city codes and their associated municipalities.
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.
Search Municipalities is identified by the endpoint GET https://cap.openapi.it/cerca_comuni
The service is completely free of charge and allows the ISTAT code to be obtained from a series 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.
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.