5 endpointsEndpoint reference
All endpoints are GET, returning JSON unless the path suffix indicates otherwise. No authentication required for the public tier.
GET/api/v1/legionella/regionialias: /api/v1/legionella/regionsReturns the full regional dataset for the current data year (notified cases, incidence per 100k inhabitants, population).
curl -sS "https://123legionella.com/api/v1/legionella/regioni" -H "Accept: application/json"
The English alias /regions is recommended for international clients; the canonical Italian path /regioni remains supported for backwards compatibility.
GET/api/v1/legionella/regioni/{slug}alias: /api/v1/legionella/regions/{slug}Returns the dataset row for a single region. Slugs follow the canonical Italian region list (e.g. lombardia, lazio, sicilia).
curl -sS "https://123legionella.com/api/v1/legionella/regioni/lombardia"
GET/api/v1/legionella/trendNational-level year-over-year totals: total cases, population and incidence. Useful for time-series visualisations.
curl -sS "https://123legionella.com/api/v1/legionella/trend"
GET/api/v1/legionella/dataset.jsonFull regional dataset as a JSON document. Same payload as /regioni but framed for direct download and reproducible citation.
curl -sS "https://123legionella.com/api/v1/legionella/dataset.json" -o dataset.json
GET/api/v1/legionella/dataset.xmlFull regional dataset as XML, for legacy reporting pipelines and GIS tooling.
curl -sS "https://123legionella.com/api/v1/legionella/dataset.xml" -o dataset.xml