API „Najlepszy czas przekroczenia" Online
Statystyki typowego tygodnia dla przejścia: macierz 7×24 dzień-tygodnia×godzina (mediana + zakres p25/p75), najspokojniejszy/najbardziej ruchliwy dzień, najlepsze/najgorsze 2-godzinne okna.
GET https://nakordoni.eu/api/v1/data/day-stats
— klasa limitu: cheap
| Parametr | Opis |
|---|---|
ppid | ID przejścia |
lang | Kod języka |
Pola odpowiedzi — wewnątrz obiektu data w kopercie odpowiedzi. [] oznacza listę, więc data.items[].name to pole name każdego elementu. Pole bywa null, nieobecne lub jest pustą listą, gdy nie mamy wartości — nigdy nie wstawiamy atrapy.
| Pole | Opis |
|---|---|
data.matrix | 7×24 median queue: matrix[dayOfWeek][hour], day 0 = Monday, hours in the checkpoint's timezone (data.tz). |
data.lo | Same 7×24 shape — the p25 floor of the band; hi is the p75 ceiling. |
data.counts | Observations behind each cell — a cell with few counts is a weak median. |
data.weekday_avg | Seven averages, one per weekday; best_day and worst_day index into them. |
data.best_slots[] | Quietest 2-hour windows: dow, hour, v (the value). worst_slots is the same for the busiest. |
data.overall_avg | Average across the whole matrix, with overall_max. |
data.samples | Readings the matrix was built from, over period_days; data_quality grades that sample. |
data.generated_at | When the matrix was last recomputed (unix). It is precomputed daily, not per request. |
curl "https://nakordoni.eu/api/v1/data/day-stats?ppid=id_13&lang=en" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Zaloguj się jako deweloper, aby wypróbować ten endpoint na żywo w piaskownicy — 50 darmowych wywołań testowych dziennie. Zaloguj się