Skip to main content
Menu

← Tutti gli endpoint

API Statistiche Orarie dei Valichi Online

Statistiche storiche orarie della coda per valico e data: 24 valori orari, media/min/max giornaliere, ore di punta e ore più tranquille, confronto giorno su giorno.

GET https://nakordoni.eu/api/v1/data/stats — classe di quota: heavy

ParametroDescrizione
ppidID del checkpoint, ad es. id_13 (vedi /api/v1/data/checkpoints)
dateYYYY-MM-DD (predefinito: ieri)
compare1 = includi il giorno precedente + delta
langCodice lingua (predefinito uk)

Campi della risposta — all’interno dell’oggetto data della busta. [] indica una lista, quindi data.items[].name è il campo name di ogni elemento. Un campo è null, assente o una lista vuota quando non abbiamo un valore — mai un segnaposto.

CampoDescrizione
data.ppidCheckpoint the statistics belong to, with checkpoint.name and checkpoint.source_url.
data.dateThe day covered, in the checkpoint's timezone (data.timezone); unit says what the numbers count.
data.hourly[]24 elements: hour, value, data_points (observations behind that hour). value is null for an hour with no data.
data.labelsHour labels for the 24 buckets; values is the bare value series, aligned with them.
data.dailyWhole-day rollup: avg, min, max, total, hours_with_data.
data.peakBusiest hour of the day, and quietest the calmest — both null when the day has too little data.
data.data_availablefalse = we hold nothing for that date; every number above is then empty rather than zero.
data.comparePresent only with compare=1: the same shape for the previous day plus delta_avg.
curl "https://nakordoni.eu/api/v1/data/stats?ppid=id_15&date=2026-06-01&compare=1" \
  -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Accedi come sviluppatore per provare questo endpoint dal vivo nella sandbox — 50 chiamate di prova gratuite al giorno. Accedi