L'attribuzione è obbligatoria, in tutti i pianiAttribution is required, on every plan
Prova, Personale, Professionale o Enterprise: ogni app, sito o prodotto che usa questa API dice da dove vengono i dati, con un link visibile a trafficoadesso.it accanto. Il testo richiesto è “Dati: Traffico Adesso”, con link a https://trafficoadesso.it. Da copiare:Trial, Personal, Professional or Enterprise: every app, site or product using this API says where the data comes from, with a visible link to trafficoadesso.it next to it. The required text is “Dati: Traffico Adesso”, linking to https://trafficoadesso.it. Copy this:
Dati: <a href="https://trafficoadesso.it">Traffico Adesso</a>
Mantieni anche il credito della fonte originale quando la risposta lo riporta (i campi source e sourceUrl di ogni evento: CCISS Viaggiare Informati (Ministero delle Infrastrutture e dei Trasporti), Autostrada del Brennero (A22), Provincia autonoma di Bolzano, Comune di Bologna, Comune di Firenze, Comune di Milano). Ogni risposta porta l'attribuzione nel campo attribution e nell'header X-Attribution.Also keep the credit to the original source when the response includes it (the source and sourceUrl fields of each event: CCISS Viaggiare Informati (Ministero delle Infrastrutture e dei Trasporti), Autostrada del Brennero (A22), Provincia autonoma di Bolzano, Comune di Bologna, Comune di Firenze, Comune di Milano). Every response carries the attribution in the attribution field and in the X-Attribution header.
Per iniziareGetting started
Crea una chiave di prova con il modulo qui sotto e aggiungila alla richiesta. Apri questo nel browser, con la tua chiave in fondo, e hai i dati:Create a trial key with the form below and add it to your request. Open this in your browser, with your key at the end, and you have the data:
https://trafficoadesso.it/api/v1/incidents?district=lombardia&key=tad_…
Risponde in GeoJSON, pronto per una mappa. Per JSON semplice, aggiungi &format=json. In un programma, meglio la chiave nell'header:It responds in GeoJSON, ready for a map. For plain JSON, add &format=json. In a program, it is better to send the key in the header:
curl -H "X-API-Key: tad_…" "https://trafficoadesso.it/api/v1/incidents?district=lombardia&type=accident&format=json"
La chiaveThe key
Dall'8 ottobre 2026 l'API è a pagamento e ogni richiesta porta una chiave. La chiave che crei qui è di prova: vale 5 giorni dalla prima richiesta, con 120 richieste all'ora, per capire se l'API serve a quello che stai costruendo. Per continuare dopo, scrivi a [email protected] con il nome del progetto e l'uso previsto: ti rispondiamo con il piano e la fattura.Since 8 October 2026 the API has been paid and every request carries a key. The key you create here is a trial key: it lasts 5 days from the first request, with 120 requests an hour, so you can see whether the API fits what you are building. To carry on after that, write to [email protected] with the project name and intended use: we will reply with the plan and the invoice.
Chiediamo nome, email e uso per tre ragioni concrete: per avvisarti quando una fonte ufficiale cade o cambia formato; per sapere cosa manca all'API a chi la usa davvero; e perché una chiave revocabile protegge tutti da un ciclo impazzito.We ask for a name, email and use for three practical reasons: to warn you when an official source goes down or changes format; to learn what the API is missing for the people who actually use it; and because a revocable key protects everyone from a runaway loop.
La chiave va nell'header X-API-Key, in Authorization: Bearer … o nel parametro key. Fino alla fine del 13 ottobre 2026 l'API risponde ancora senza chiave, con un avviso nell'header X-API-Notice e nel corpo; dal 14, senza chiave risponde 401.The key goes in the X-API-Key header, in Authorization: Bearer … or in the key parameter. Until the end of 13 October 2026 the API still responds without a key, with a notice in the X-API-Notice header and in the body; from the 14th, a request without a key gets 401.
Eventi in corso: /api/v1/incidentsCurrent events: /api/v1/incidents
Quello che le fonti ufficiali pubblicano adesso: cantieri, chiusure, code, incidenti e avvisi meteo che toccano la strada. Le fonti si leggono ogni pochi minuti e si servono dal nostro archivio.What the official sources are publishing right now: roadworks, closures, queues, crashes and weather warnings affecting the road. Sources are read every few minutes and served from our store.
GET https://trafficoadesso.it/api/v1/incidents
ParametriParameters
| ParametroParameter | ValoriValues | A cosa serveWhat it does |
|---|---|---|
district | lombardia, lazio, trentino-alto-adige… | Una delle 20 regioni, per slug o per nome. Lo stesso slug di /traffico/lombardia.One of the 20 regions, by slug or by name. The same slug as /traffico/lombardia. |
type | accident, closure, traffic, weather | Filtra per tipo; ne accetta più di uno separati da virgole. Senza, arrivano tutti.Filters by type; accepts more than one, separated by commas. Without it, you get all of them. |
format | geojson (predefinito), jsongeojson (default), json | GeoJSON per le mappe; JSON per le liste.GeoJSON for maps; JSON for lists. |
since | 2026-10-01 | Eventi iniziati dopo questa data, anche quelli già finiti ancora in archivio.Events that started after this date, including ones already over that are still in the store. |
debug | 1 | Lo stato di ogni fonte: quanti eventi, quando ha pubblicato l'ultima volta, se tace.The status of each source: how many events, when it last published, whether it has gone quiet. |
key | tad_… | La tua chiave, se non la mandi nell'header.Your key, if you do not send it in the header. |
Esempio di richiesta e risposta in JSONExample request and response in JSON
https://trafficoadesso.it/api/v1/incidents?district=lombardia&type=accident&format=json
{
"attribution": { "text": "Dati: Traffico Adesso", "url": "https://trafficoadesso.it" },
"count": 1,
"incidents": [
{
"id": "cciss-f8fa0b00d6f3f6d8",
"type": "accident",
"severity": "high",
"status": "active",
"lat": 45.40693,
"lon": 9.14785,
"title": "Incidente · A7 (Assago)",
"description": "A7 Milano-Genova: incidente tra Svincolo Assago e Allacciamento Tangenziale Ovest Di Milano in direzione Genova.",
"source": "cciss",
"sourceUrl": "https://www.cciss.it/",
"road": "A7",
"district": "Lombardia",
"startedAt": "2026-10-08T21:39:00.000Z",
"updatedAt": "2026-10-08T21:39:00.000Z"
}
]
}In GeoJSONIn GeoJSON
https://trafficoadesso.it/api/v1/incidents?district=lombardia
{
"attribution": { "text": "Dati: Traffico Adesso", "url": "https://trafficoadesso.it" },
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": "cciss-d4a261d890222646",
"geometry": { "type": "Point", "coordinates": [9.19855, 45.57051] },
"properties": {
"id": "cciss-d4a261d890222646",
"type": "accident",
"severity": "high",
"status": "active",
"title": "Incidente · A52 (SP151 Cinisello B.Nord: Zona Industriale)",
"description": "A52 Tangenziale Nord Di Milano: 1 km con traffico bloccato causa incidente tra Svincolo SP151 Cinisello B.Nord: Zona Industriale e Svincolo SP9 Vecchia Valassina in direzione Svincolo SP44 Milano-Meda: Lentate-Bruzzano.",
"source": "cciss",
"sourceUrl": "https://www.cciss.it/",
"road": "A52",
"district": "Lombardia",
"startedAt": "2026-10-08T21:38:00.000Z",
"updatedAt": "2026-10-08T21:38:00.000Z"
}
}
]
}Risposte reali dell'API, ridotte a un evento. In GeoJSON i campi stanno in properties e le coordinate nell'ordine GeoJSON: longitudine, latitudine.Real API responses, trimmed to one event. In GeoJSON the fields sit in properties and the coordinates are in GeoJSON order: longitude, latitude.
I campi di ogni eventoFields of each event
| CampoField | Che cos'èWhat it is |
|---|---|
id | Identificativo stabile, con il prefisso della fonte (cciss-, a22-, bz-, bologna-, firenze-…).Stable identifier, prefixed with the source (cciss-, a22-, bz-, bologna-, firenze-…). |
type | accident, closure (cantieri e chiusure), traffic (code e rallentamenti) o weather.accident, closure (roadworks and closures), traffic (queues and slow traffic) or weather. |
severity | info, low, medium, high o critical, secondo quello che pubblica la fonte.info, low, medium, high or critical, according to what the source publishes. |
status | active in corso, scheduled annunciato per più avanti.active for ongoing, scheduled for announced for later. |
lat lon | Coordinate WGS84 del punto.WGS84 coordinates of the point. |
title | Titolo breve: causa, strada e località.Short title: cause, road and place. |
description | Testo completo, con tratta e direzione.Full text, with section and direction. |
source | cciss, it-a22, it-bolzano, it-bologna, it-firenze, it-milano o it-reggio-emilia. Va mantenuto quando mostri i dati.cciss, it-a22, it-bolzano, it-bologna, it-firenze, it-milano or it-reggio-emilia. Must be kept when you show the data. |
sourceUrl | La pagina ufficiale della fonte.The source's official page. |
road | La strada (A1, A22, SS36…), quando la fonte la indica.The road (A1, A22, SS36…), when the source gives it. |
district | La regione.The region. |
startedAt updatedAt | Inizio e ultimo aggiornamento, in ISO 8601 (UTC).Start and last update, in ISO 8601 (UTC). |
Gli eventi del CCISS non hanno coordinate alla fonte: le ricaviamo dagli svincoli nominati nel testo, su una base di svincoli di OpenStreetMap. Un evento che non si può collocare così non entra.CCISS events have no coordinates at source: we derive them from the junctions named in the text, using a junction database from OpenStreetMap. An event that cannot be placed this way is left out.
Diagnostica: ?debug=1Diagnostics: ?debug=1
https://trafficoadesso.it/api/v1/incidents?debug=1
{
"attribution": { "text": "Dati: Traffico Adesso", "url": "https://trafficoadesso.it" },
"generatedAt": "2026-10-08T21:45:30.460Z",
"liveCount": 400,
"totalCount": 400,
"supplementedFromMocks": false,
"sources": [
{
"name": "cciss",
"configured": true,
"ok": true,
"count": 196,
"newestAt": "2026-10-08T21:42:00.000Z",
"stale": false,
"byType": { "accident": 11, "closure": 157, "traffic": 13, "weather": 15 },
"bySeverity": { "high": 42, "medium": 68, "low": 86 }
}
]
}Utile quando un numero sembra strano: dice quale fonte tace. Esempio reale, ridotto a una fonte.Useful when a number looks odd: it tells you which source has gone quiet. A real example, trimmed to one source.
Codici di rispostaResponse codes
| CodiceCode | QuandoWhen |
|---|---|
200 | Tutto bene. Header utili: X-API-Plan, X-API-Trial-Ends (fine della prova), X-RateLimit-Remaining, X-Attribution.All good. Useful headers: X-API-Plan, X-API-Trial-Ends (end of the trial), X-RateLimit-Remaining, X-Attribution. |
401 | Senza chiave, o con una chiave che non esiste (dal 14 ottobre 2026).No key, or a key that does not exist (from 14 October 2026). |
402 | La prova di 5 giorni è finita e la chiave non ha un piano a pagamento.The 5-day trial has ended and the key has no paid plan. |
403 | Chiave revocata. Il corpo dice il motivo.Key revoked. The body gives the reason. |
429 | Limite del piano superato. L'header Retry-After dice quanti secondi aspettare.Plan limit exceeded. The Retry-After header says how many seconds to wait. |
HTTP/1.1 401 Unauthorized
{
"error": "Chiave necessaria",
"detail": "L'API di Traffico Adesso non risponde più senza chiave. Crea una chiave di prova su https://trafficoadesso.it/api-pubblica (vale 5 giorni) o chiedi un piano a pagamento a [email protected].",
"chiave": "https://trafficoadesso.it/api-pubblica",
"contatto": "[email protected]",
"attribuzione": "L'attribuzione è obbligatoria in tutti i piani: ...",
"attribution": { "text": "Dati: Traffico Adesso", "url": "https://trafficoadesso.it" }
}HTTP/1.1 402 Payment Required
{
"error": "Periodo di prova terminato",
"detail": "Questa chiave era di prova ed è scaduta il 15 ottobre 2026. Per continuare a usare l'API, scrivi a [email protected] ...",
"piani": "https://trafficoadesso.it/api-pubblica",
"contatto": "[email protected]",
"attribuzione": "L'attribuzione è obbligatoria in tutti i piani: ...",
"attribution": { "text": "Dati: Traffico Adesso", "url": "https://trafficoadesso.it" }
}LimitiLimits
La prova accetta 120 richieste all'ora. I piani a pagamento si contano al giorno: 10.000 richieste nel Personale e 100.000 nel Professionale; Enterprise, quanto concordato. Si conta per chiave e non per IP, così un'app con molti utenti non viene frenata da uno di loro. Oltre il limite ricevi un 429 con l'attesa in Retry-After.The trial accepts 120 requests an hour. Paid plans are counted per day: 10,000 requests on Personal and 100,000 on Professional; Enterprise, as agreed. Counting is per key, not per IP, so an app with many users is not held back by one of them. Over the limit you get a 429 with the wait time in Retry-After.
Le fonti si leggono ogni pochi minuti e la risposta ha una cache di 30 secondi: chiedere più di due volte al minuto non porta nessun dato nuovo. Chi tocca il limite è quasi sempre un ciclo dimenticato.Sources are read every few minutes and responses are cached for 30 seconds: asking more than twice a minute brings no new data. Whoever hits the limit is almost always a forgotten loop.
Il CORS è aperto: puoi chiamare direttamente dal browser, senza server in mezzo. In quel caso la chiave è visibile a chiunque apra la pagina.CORS is open: you can call it straight from the browser, with no server in between. In that case the key is visible to anyone who opens the page.
Piani e prezziPlans and pricing
ProvaTrial
Per tuttiFor everyone
GratisFree
- 5 giorni dalla prima richiesta5 days from the first request
- 120 richieste all'ora120 requests an hour
- Attribuzione obbligatoriaAttribution required
Modulo qui sopra, due minuti.Form above, two minutes.
PersonalePersonal
Progetti personali o piccoli, senza ricavi rilevantiPersonal or small projects, without significant revenue
13 € / mese13 € / month
IVA inclusaVAT included
- Circa 10.000 richieste al giornoAbout 10,000 requests a day
- Solo ItaliaItaly only
- Attribuzione obbligatoriaAttribution required
ProfessionaleProfessional
App commerciali, siti con pubblicità, uso in aziendaCommercial apps, sites with ads, business use
69 € / mese69 € / month
IVA inclusaVAT included
- Circa 100.000 richieste al giornoAbout 100,000 requests a day
- Attribuzione obbligatoriaAttribution required
Enterprise
Flotte, assicurazioni, media, più paesi, SLAFleets, insurers, media, multiple countries, SLA
ParliamoneLet's talk
- Più paesi, tramite RoadscoreMultiple countries, via Roadscore
- Volume e disponibilità concordatiAgreed volume and availability
- Attribuzione obbligatoriaAttribution required
Tramite Roadscore e [email protected].Via Roadscore and [email protected].
Cosa paghi: l'accesso al servizio, cioè l'API stessa, i limiti del piano e l'assistenza. Non i dati: gli eventi sono degli enti che li pubblicano (CCISS Viaggiare Informati (Ministero delle Infrastrutture e dei Trasporti), Autostrada del Brennero (A22), Provincia autonoma di Bolzano, Comune di Bologna, Comune di Firenze, Comune di Milano), non sono nostri e non ne concediamo licenze. Per questo ogni evento conserva la sua fonte, e chi lo mostra mantiene quel credito.What you pay for: access to the service, meaning the API itself, the plan limits and support. Not the data: the events belong to the agencies that publish them (CCISS Viaggiare Informati (Ministero delle Infrastrutture e dei Trasporti), Autostrada del Brennero (A22), Provincia autonoma di Bolzano, Comune di Bologna, Comune di Firenze, Comune di Milano), they are not ours and we do not license them. That is why every event keeps its source, and whoever shows it keeps that credit.
Come si paga: per ora, via email e fattura. Scrivi a [email protected] con il nome del progetto, l'uso previsto e il piano che ti interessa: ti rispondiamo con la fattura. Al pagamento la tua chiave di prova passa al piano e non scade più. Prezzi al mese, IVA inclusa.How to pay: for now, by email and invoice. Write to [email protected] with the project name, intended use and the plan you are interested in: we will reply with the invoice. Once paid, your trial key moves onto the plan and no longer expires. Prices are per month, VAT included.
Condizioni e attribuzioneConditions and attribution
L'attribuzione è obbligatoria, in tutti i pianiAttribution is required, on every plan
Prova, Personale, Professionale o Enterprise: ogni app, sito o prodotto che usa questa API dice da dove vengono i dati, con un link visibile a trafficoadesso.it accanto. Il testo richiesto è “Dati: Traffico Adesso”, con link a https://trafficoadesso.it. Da copiare:Trial, Personal, Professional or Enterprise: every app, site or product using this API says where the data comes from, with a visible link to trafficoadesso.it next to it. The required text is “Dati: Traffico Adesso”, linking to https://trafficoadesso.it. Copy this:
Dati: <a href="https://trafficoadesso.it">Traffico Adesso</a>
Mantieni anche il credito della fonte originale quando la risposta lo riporta (i campi source e sourceUrl di ogni evento: CCISS Viaggiare Informati (Ministero delle Infrastrutture e dei Trasporti), Autostrada del Brennero (A22), Provincia autonoma di Bolzano, Comune di Bologna, Comune di Firenze, Comune di Milano). Ogni risposta porta l'attribuzione nel campo attribution e nell'header X-Attribution.Also keep the credit to the original source when the response includes it (the source and sourceUrl fields of each event: CCISS Viaggiare Informati (Ministero delle Infrastrutture e dei Trasporti), Autostrada del Brennero (A22), Provincia autonoma di Bolzano, Comune di Bologna, Comune di Firenze, Comune di Milano). Every response carries the attribution in the attribution field and in the X-Attribution header.
- Costruire un prodotto sull'API senza piano a pagamento, finita la prova, o senza attribuzione, non è un uso autorizzato.Building a product on the API without a paid plan once the trial is over, or without attribution, is not authorised use.
- La chiave è del progetto: non si condivide e non si pubblica. Se finisce in giro, scrivici e ne emettiamo un'altra.The key belongs to the project: do not share or publish it. If it leaks, write to us and we will issue a new one.
- Una chiave può essere revocata se usata per altro rispetto all'uso dichiarato, o senza attribuzione.A key can be revoked if it is used for something other than the declared use, or without attribution.
- Le posizioni degli eventi CCISS vengono da OpenStreetMap (© contributori di OpenStreetMap, ODbL).CCISS event positions come from OpenStreetMap (© OpenStreetMap contributors, ODbL).
- Più dettagli nei termini d'uso e, sui dati di chi ha una chiave, nell'informativa privacy.More detail in the terms of use and, on the data of key holders, in the privacy notice.
Onestà sulla coperturaHonesty about coverage
Questa API restituisce quello che pubblicano le fonti ufficiali, non quello che succede sulla strada. Una strada senza eventi nella risposta non è una strada libera: è una strada su cui nessuno ha pubblicato niente. Le strade urbane e molte provinciali sono coperte poco, fuori da Bolzano, Bologna, Firenze e Milano.This API returns what the official sources publish, not what is happening on the road. A road with no events in the response is not a clear road: it is a road nobody has published anything about. City streets and many provincial roads have little coverage outside Bolzano, Bologna, Firenze and Milano.
Se ci costruisci degli avvisi, dillo a chi li riceve. E non usarla per decisioni di emergenza: in emergenza, 112.If you build alerts on it, tell the people who receive them. And do not use it for emergency decisions: in an emergency, call 112.
Lo stato di ogni fonte, in diretta, è in ?debug=1.The live status of each source is in ?debug=1.
ContattiContact
Per un piano a pagamento, volume, fatture, una chiave persa o qualsiasi domanda sull'API: [email protected]. Rispondiamo noi, non un sistema di ticket. Per dati di più paesi o un accordo con SLA, guarda Roadscore.For a paid plan, volume, invoices, a lost key or any question about the API: [email protected]. A person replies, not a ticketing system. For data from several countries or an agreement with an SLA, see Roadscore.