Nəzarət məntəqəsinin saatlıq statistikası API Online
Nəzarət məntəqəsi və tarix üzrə saatlıq tarixi növbə statistikası: 24 saatlıq dəyər, günlük orta/min/maks, pik və ən sakit saatlar, gündən-günə müqayisə.
GET https://nakordoni.eu/api/v1/data/stats
— kvota sinfi: heavy
| Parametr | Təsvir |
|---|---|
ppid | Yoxlama nöqtəsinin ID-si, məs. id_13 (bax /api/v1/data/checkpoints) |
date | YYYY-MM-DD (standart: dünən) |
compare | 1 = əvvəlki günü daxil et + delta |
lang | Dil kodu (standart uk) |
Cavab sahələri — cavab zərfindəki data obyektinin içində. [] siyahını bildirir, yəni data.items[].name hər elementin name sahəsidir. Dəyəri olmayan sahə null olur, ümumiyyətlə görünmür və ya boş siyahı qaytarır — heç vaxt doldurucu qoymuruq.
| Sahə | Təsvir |
|---|---|
data.ppid | Checkpoint the statistics belong to, with checkpoint.name and checkpoint.source_url. |
data.date | The 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.labels | Hour labels for the 24 buckets; values is the bare value series, aligned with them. |
data.daily | Whole-day rollup: avg, min, max, total, hours_with_data. |
data.peak | Busiest hour of the day, and quietest the calmest — both null when the day has too little data. |
data.data_available | false = we hold nothing for that date; every number above is then empty rather than zero. |
data.compare | Present 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"
🔑 Bu son nöqtəni sınaq mühitində canlı yoxlamaq üçün developer kimi daxil olun — gündə 50 pulsuz test sorğusu. Giriş