Bir neçə sərhəd buraxılış məntəqəsi API Online
Sıra vəziyyətini və məlumat təzəliyini bir tək sorğuda 20-yə qədər nəzarət nöqtəsi üçün alın. Kvota ⌈(N PPID × alt-məhsullar) / 2⌉ kimi hesablanır — ekvivalent fərdi çağrılardan 50% ucuzdur. Her iki məlumat dəstini eyni vaxtda almaq üçün include=queue,update-info istifadə edin.
GET https://nakordoni.eu/api/v1/data/multi
— kvota sinfi: heavy
| Parametr | Təsvir |
|---|---|
ppids | Comma-separated list of checkpoint IDs (required, max 20) — e.g. id_2,id_13,id_15,id_59 |
include | Comma-separated sub-products to include: queue, update-info (default: queue,update-info) |
lang | Language code for checkpoint names in queue responses (default: en) |
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> | One object per requested checkpoint, keyed by ppid — not an array. A ppid you asked for that we do not monitor is absent. |
data.<ppid>.queue | Present when include contains queue: found, queue_now, wait_min, wait_status, trend_percent, trend_direction, age_min, freshness, name, updated_at. |
data.<ppid>.update_info | Present when include contains update-info: found, timestamp, datetime, timezone, age_seconds, age_minutes, freshness, queue_now. |
meta.ppids_requested | How many ppids the call asked for (envelope level, beside data). |
meta.units_consumed | Quota units this call actually cost — ⌈(ppids × sub-products) / 2⌉. |
curl "https://nakordoni.eu/api/v1/data/multi?ppids=id_2,id_13,id_15&include=queue,update-info&lang=en" \ -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ş