Skip to main content
Menu

← Toate endpointurile

API statistici orare ale punctului de trecere Online

Statistici orare istorice ale cozii pe punct de trecere și dată: 24 de valori orare, media/min/max zilnică, orele de vârf și cele mai liniștite, comparație de la o zi la alta.

GET https://nakordoni.eu/api/v1/data/stats — clasă de cotă: heavy

ParametruDescriere
ppidID punct de control, de ex. id_13 (vezi /api/v1/data/checkpoints)
dateYYYY-MM-DD (implicit: ieri)
compare1 = include ziua precedentă + diferența
langCod de limbă (implicit uk)

Câmpurile răspunsului — în interiorul obiectului data din plicul răspunsului. [] marchează o listă, deci data.items[].name este câmpul name al fiecărui element. Un câmp este null, lipsește sau este o listă goală atunci când nu avem o valoare — niciodată un substitut.

CâmpDescriere
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"
🔑 Autentifică-te ca dezvoltator pentru a testa acest endpoint live în sandbox — 50 de apeluri de test gratuite pe zi. Autentificare