Read tourism figures of an Italian comune
leggi_dati_comuneReads the tourism figures of one Italian municipality (comune) in one year: nights spent (presenze), arrivals, bed places, accommodation establishments and resident population. Use it when you have the 6-digit cod_istat from cerca_comune; do not use it to look a place up by name (use cerca_comune instead), to follow a comune over the years (use leggi_serie_comune instead) or to put comuni side by side (use confronta_comuni instead). Presenze are nights, not people (one guest staying three nights counts three); anno defaults to the latest year with data, and capacity figures are for anno_capacita: the latest year published, as on the comune's page, or the latest up to anno when anno is given; profilo adds the comune's altitude, surface, coordinates, UNESCO sites and tourism pressure, each group with its own year. Missing figures are null and nota says why (also from 2025, when the counts changed scope, and when profilo is null), and a year outside anni_disponibili or an unknown code returns an error that says what to pass. Read-only, 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 of the figures, e.g. 2024; default: the latest year with data for this comune. A year outside its years with data returns an error that gives them. | |
| cod_istat | Yes | 6-digit ISTAT code of the comune as a string, leading zeros kept ("058091" is Roma); it comes from cerca_comune. |
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 totals and non-hotel figures are not comparable with years before 2025 (hotel figures are); 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 shown on the site: 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. |