Read tourism figures of an Italian comune
leggi_dati_comuneReads one Italian comune's nights, arrivals, bed places, establishments and population for a year, and returns its profilo (altitude, surface, coordinates, UNESCO sites, tourism pressure). Use it with the cod_istat that cerca_comune returns; do not use it for a trend (use leggi_serie_comune instead) or several comuni (use confronta_comuni instead). anno picks the year of nights and arrivals; without it the latest with data is used. Bed places and establishments are the latest published, up to anno when given; population and the profile keep their own years. A missing figure is null; an unknown code or a year outside the comune's span of data is an error saying what to pass. Public, no authentication; 30 requests per minute per client, shared across tools.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cod_istat": "<cod_istat>"
},
"name": "leggi_dati_comune"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anno | No | Year, e.g. 2024; default: the latest year with data. | |
| cod_istat | Yes | 6-digit ISTAT code of the comune, as a string with leading zeros kept ("058091" is Roma). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anno | No | Year of the movement figures (presenze and arrivi): `anno_richiesto`, or the latest year with data when it was omitted; null if the comune has no tourism data. | |
| nome | Yes | Official name of the comune. | |
| nota | No | Notes in English on reading the figures, null when there is nothing to say: from 2025 ISTAT counts include privately rented holiday flats, so any change that spans 2025 includes the new accommodation, not only more tourists; capacity from a year other than `anno`; a year or a comune without movement figures; a comune without a `profilo`. | |
| fonte | Yes | Source to cite with the figures: processed by DatiTuristici.it from institutional data (ISTAT). | |
| scheda | Yes | Link to the comune's public page on datituristici.it, to cite. | |
| profilo | No | The comune's territorial profile, the free Territorial profile section of its page, without the two seasonal indices (leggi_affluenza_mensile gives them): altitude, surface, coordinates, UNESCO World Heritage sites and two tourism-pressure ratios, with the year of each group in `anni` and its own `fonte`. Null when no profile is recorded for the comune or this server does not serve it; `nota` then says which. | |
| regione | No | Region as recorded by ISTAT (Bolzano and Trento are provinces of TRENTINO-ALTO ADIGE); null if not recorded. | |
| esercizi | No | Number of accommodation establishments in `anno_capacita`; null if not available. | |
| cod_istat | Yes | 6-digit ISTAT code of the comune, as a string with leading zeros kept. | |
| provincia | No | Province (or metropolitan city) as recorded by ISTAT; null if not recorded. | |
| popolazione | No | Resident population in `popolazione_anno` (the latest year loaded, whatever `anno` is); null if not available. | |
| posti_letto | No | Bed places in accommodation establishments in `anno_capacita`: the ISTAT total, or hotel plus non-hotel beds where the total is missing, as on the site; null if not available. | |
| anno_capacita | No | Year of the capacity figures (bed places and establishments): with `anno`, the latest year published up to it; without, the latest year published, as on the comune's page. It can be earlier or later than `anno`, and `nota` then gives both years; null if none is published. | |
| arrivi_totali | No | Guest arrivals (check-ins) at accommodation establishments during `anno`; null if not available. | |
| anno_richiesto | No | The `anno` argument as given; null when it was omitted. | |
| arrivi_italiani | No | Arrivals of guests resident in Italy during `anno`; null if not available. | |
| presenze_totali | No | Nights spent by all guests in accommodation establishments during `anno` (one guest staying three nights counts three); null if not available. | |
| anni_disponibili | No | First and last year with movement figures for this comune, the accepted range of `anno`; null if the comune has none. | |
| arrivi_stranieri | No | Arrivals of guests resident abroad during `anno`; null if not available. | |
| popolazione_anno | No | Reference year of `popolazione`; null if not available. | |
| presenze_italiani | No | Nights spent by guests resident in Italy during `anno`; null if not available. | |
| presenze_stranieri | No | Nights spent by guests resident abroad during `anno`; null if not available. |