API «Mejor momento para cruzar» Online
Estadísticas de semana típica por puesto fronterizo: matriz 7×24 día-de-semana×hora (mediana + banda p25/p75), día más tranquilo/concurrido, mejores/peores ventanas de 2 horas.
GET https://nakordoni.eu/api/v1/data/day-stats
— clase de cuota: cheap
| Parámetro | Descripción |
|---|---|
ppid | ID del puesto fronterizo |
lang | Código de idioma |
Campos de la respuesta — dentro del objeto data del sobre de respuesta. [] indica una lista, así que data.items[].name es el campo name de cada elemento. Un campo es null, no aparece o es una lista vacía cuando no tenemos valor: nunca un marcador de posición.
| Campo | Descripción |
|---|---|
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"
🔑 Inicia sesión como desarrollador para probar este endpoint en vivo en el sandbox — 50 llamadas de prueba gratuitas al día. Iniciar sesión