Մի քանի անցակետի API Online
Ստացեք հերթի կարգավիճակը և տվյալների թարմությունը մինչև 5 անցակետի համար մեկ հարցմամբ։ Քվոտան հաշվարկվում է որպես ⌈(N PPID × ենթաարտադրանք) / 2⌉ — 50%-ով ավելի էժան, քան համարժեք առանձին հարցումները։ Օգտագործեք include=queue,update-info՝ երկու տվյալների հավաքածուն միանգամից ստանալու համար։ 2026-08-30-ից 5-ից ավելի PPID պարունակող հարցումը մշակվում է միայն առաջին 5-ի համար․ մնացածն անտեսվում է (վերադարձվում է meta.ppid_cap.ignored դաշտում) և չի հաշվարկվում քվոտայից։
GET https://nakordoni.eu/api/v1/data/multi
— քվոտայի դաս: heavy
| Պարամետր | Նկարագրություն |
|---|---|
ppids | Comma-separated list of checkpoint IDs (required, max 5 from 2026-08-30) — e.g. id_2,id_13,id_15. Extra IDs beyond the fifth are ignored, not rejected. |
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) |
Պատասխանի դաշտերը — պատասխանի ծրարի data օբյեկտի ներսում։ []-ը ցույց է տալիս ցուցակ, ուստի data.items[].name-ը յուրաքանչյուր տարրի name դաշտն է։ Դաշտը լինում է null, բացակայում է կամ դատարկ ցուցակ է, երբ արժեք չունենք․ լցոնող արժեք երբեք չենք դնում։
| Դաշտ | Նկարագրություն |
|---|---|
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_quality. |
data.<ppid>.update_info | Present when include contains update-info: found, timestamp, datetime, timezone, age_seconds, age_minutes, freshness, queue_now, data_quality. |
data.<ppid>.*.data_quality | On both sub-products: high = counted from a real observation source at the crossing, low = a modelled estimate where no counting source exists. Same high|low vocabulary as the checkpoints directory, Border Queue and Best Time to Cross. Both are real answers; a low value is an estimate and should be labelled as one if you show it to drivers. |
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⌉, counted on the checkpoints actually answered. |
meta.ppid_cap | Present ONLY when the call listed more than 5 PPIDs: cap, enforced_from, enforced, ppids_asked, ppids_answered, ignored[] and a plain-language notice. The same event also sets the X-Devapi-Warning response header. |
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"
Թարմացվել է